CVE-2026-142278
Description
Papermerge Core 3.6.0a5 through 3.6.0a16 contains a privilege escalation vulnerability that allows authenticated users to obtain superuser rights by minting API tokens with unrestricted scopes. Attackers can create a token via POST /tokens carrying user.update, then call PATCH /users/{id} setting is_superuser to gain administrative control over all documents.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or — if you've already worked around this in production — publish your fix to the community-verified tier.
Propose a mitigation on Community Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
References
- https://github.com/papermerge/papermerge-core/blob/3.6.0a16/papermerge/core/features/api_tokens/router.py#L35-L53
- https://github.com/papermerge/papermerge-core/blob/3.6.0a16/papermerge/core/features/auth/__init__.py#L151-L157
- https://github.com/papermerge/papermerge-core/blob/3.6.0a16/papermerge/core/features/users/db/api.py#L616-L617
- https://www.vulncheck.com/advisories/papermerge-core-3.6-0a5-through-3.6-0a16-privilege-escalation-via-api-token-scopes
CWEs
CWE-269
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.