AploSec / Disclosures / CVE-2026-142241
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
- Referencehttps://github.com/mljar/mercury/security/advisories/GHSA-w823-3v59-v22p
- VulnCheck advisoryhttps://www.vulncheck.com/advisories/mercury-3.0.1-before-3.2.12-missing-authentication-via-api-contents-notebook-handler
- Vulnerable codehttps://github.com/mljar/mercury/blob/v3.2.11/mercury_app/custom_contents_handler.py#L31-L44
- Fix commithttps://github.com/mljar/mercury/commit/9a2ae9221673c44b69b10c062b268beee2960060
- Releasehttps://github.com/mljar/mercury/releases/tag/v3.2.12
- CVE recordhttps://www.cve.org/CVERecord?id=CVE-2026-142241
- NVD recordhttps://nvd.nist.gov/vuln/detail/CVE-2026-142241
- 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