AploSec / Disclosures / CVE-2026-142241

High 8.7ReportedFixed in 3.2.12CWE-306Multiple credited contributorsPyPI

Mercury 3.0.1 before 3.2.12 Missing Authentication via /api/contents Notebook Handler

CVE-2026-142241 · published 2026-12-02

In plain words: this type of bug lets someone get past the login or identity check (authentication bypass). A fixed release is listed.

Summary

CVE-2026-142241 affects Mercury (PyPI) >= 3.0.1, < 3.2.12: Missing Authentication via /api/contents Notebook Handler (CWE-306). Fixed in 3.2.12. CVSS 4.0 base score 8.7 (High), assigned by VulnCheck. Published 2026-12-02 by VulnCheck. Credit: Zachariah Mithani (AploSec), AliAAlMousa, kemrec, manus-use, boymirza-rejavaliyev.

Mljar Mercury from 3.0.1 before 3.2.12 contains a missing authentication vulnerability in MercuryContentsHandler that allows unauthenticated attackers to read notebooks via the /api/contents route. Attackers can send GET or PUT requests for any .ipynb file under the contents root to retrieve full notebook JSON, including cell source and saved outputs, despite token or password authentication.

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

Upgrade Mercury to 3.2.12 or later. Releases in the affected range (>= 3.0.1, < 3.2.12) are vulnerable. See the linked advisory for details on affected release lines.

Timeline

  • 2026-12-02 CVE published

References

Severity
High 8.7CVSS 4.0, scored by VulnCheck in the CVE record
Package
Mercury
Ecosystem
PyPI
Affected
>= 3.0.1, < 3.2.12
Fixed
3.2.12
Weakness
CWE-306
CNA
VulnCheck
Credit
Zachariah Mithani (AploSec)finderAliAAlMousafinderkemrecfindermanus-usefinderboymirza-rejavaliyevfinder