{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "3.6.0a5"
                  },
                  {
                    "last_affected": "3.6.0a16"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              }
            ]
          },
          "events": [
            {
              "introduced": "9d450c170f0350c31aad67b21ac4c7c1f81583a8"
            },
            {
              "last_affected": "95a96728556af51ee3a4e3885584e072eefbd350"
            }
          ],
          "repo": "https://github.com/papermerge/papermerge-core",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-269"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142278.json"
  },
  "details": "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.",
  "id": "CVE-2026-142278",
  "modified": "2026-12-02T17:45:16.898158641Z",
  "published": "2026-12-02T16:49:18.844Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/142xxx/CVE-2026-142278.json"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/papermerge/papermerge-core"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/papermerge/papermerge-core/blob/3.6.0a16/papermerge/core/features/api_tokens/router.py#L35-L53"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/papermerge/papermerge-core/blob/3.6.0a16/papermerge/core/features/auth/__init__.py#L151-L157"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/papermerge/papermerge-core/blob/3.6.0a16/papermerge/core/features/users/db/api.py#L616-L617"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-142278"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/papermerge-core-3.6-0a5-through-3.6-0a16-privilege-escalation-via-api-token-scopes"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Papermerge Core 3.6.0a5 through 3.6.0a16 Privilege Escalation via API Token Scopes"
}