CVE-2026-142278: Papermerge Core 3.6.0a5 through 3.6.0a16 Privilege Escalation via API Token Scopes
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 issuperuser to gain administrative control over all documents.
Affected Software
Event History
Frequently Asked Questions
Who can exploit this issue?
Any authenticated user in the affected Papermerge Core versions can exploit it. The attack requires an account that can access the API, but does not require prior administrative privileges or user interaction.
What access does an attacker gain after exploitation?
The attacker can set their account's is_superuser attribute and obtain administrative control over all documents.
How is the privilege escalation performed?
An authenticated attacker creates an API token through POST /tokens with the user.update scope, then uses that token to send PATCH /users/{id} with is_superuser set. This elevates the targeted account to superuser status.