AploSec / Disclosures / CVE-2026-142278
Papermerge Core 3.6.0a5 through 3.6.0a16 Privilege Escalation via API Token Scopes
CVE-2026-142278 · published 2026-12-02
In plain words: this type of bug lets a user see or change things that belong to someone else (broken access control). No fixed release is listed yet.
Summary
CVE-2026-142278 affects Papermerge Core (Server) >= 3.6.0a5, <= 3.6.0a16: Privilege Escalation via API Token Scopes (CWE-269). No fixed release is listed. CVSS 4.0 base score 8.7 (High), assigned by VulnCheck. Published 2026-12-02 by VulnCheck. Credit: Zachariah Mithani (AploSec).
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.
Evidence
Reported to the maintainer. The public advisory and references below describe the evidence and preconditions; reporting status alone does not establish independent reproduction.
Remediation
No fixed release is listed in the advisory. Check the references for upstream status.
References
- VulnCheck advisoryhttps://www.vulncheck.com/advisories/papermerge-core-3.6-0a5-through-3.6-0a16-privilege-escalation-via-api-token-scopes
- Vulnerable codehttps://github.com/papermerge/papermerge-core/blob/3.6.0a16/papermerge/core/features/api_tokens/router.py#L35-L53
- Vulnerable codehttps://github.com/papermerge/papermerge-core/blob/3.6.0a16/papermerge/core/features/auth/__init__.py#L151-L157
- Vulnerable codehttps://github.com/papermerge/papermerge-core/blob/3.6.0a16/papermerge/core/features/users/db/api.py#L616-L617
- CVE recordhttps://www.cve.org/CVERecord?id=CVE-2026-142278
- Severity
- High 8.7CVSS 4.0, scored by VulnCheck in the CVE record
- Package
- Papermerge Core
- Ecosystem
- Server
- Affected
- >= 3.6.0a5, <= 3.6.0a16
- Fixed
- None
- Weakness
- CWE-269
- CNA
- VulnCheck
- Credit
- Zachariah Mithani (AploSec)finder