CVE Professor
/
All CVEs
CVE-2026-142241

CVE-2026-142241 — CWE-306

HIGH CVSS 7.5 ⚡ EPSS 0.8% NVD

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.

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.

CVSS v3.1 Vector Metrics
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Attack Vector Network AV:N
Attack Complexity Low AC:L
Privileges Req. None PR:N
User Interaction None UI:N
Scope Unchanged S:U
Confidentiality High C:H
Integrity None I:N
Availability None A:N
EPSS — Exploit Prediction Scoring System
0.8%
30-day probability
In the 57. percentile of all CVEs — higher exploitation probability than most vulnerabilities.
AI Security Analysis & Remediation

🎯 What is this vulnerability?

Technical flaw
The vulnerability is a classic Missing Authentication (CWE‑306).
In Mljar Mercury versions 3.0.1 – 3.2.11 the MercuryContentsHandler – the HTTP handler that serves the /api/contents REST endpoint – does not perform any authentication check before returning the contents of a notebook file.

The handler accepts both GET and PUT requests for any file under the configured contents root and returns the full notebook JSON (cell source, metadata, and any cached outputs). Because the handler bypasses the token‑ or password‑based authentication that the rest of the API normally enforces, an unauthenticated attacker can read any .ipynb file that the Mercury instance can access.

Why it matters

  • The notebook JSON can contain arbitrary Python code, data, and even secrets that were previously stored in the notebook (e.g., API keys, database credentials, personal data).

  • No additional privileges are required; the attacker only needs network connectivity to the Mercury instance.

  • The flaw is purely an information‑leak; it does not provide RCE or privilege escalation, but the confidentiality impact is high.
  • CVSS

  • Attack Vector: Network (AV:N)

  • Attack Complexity: Low (AC:L) – a simple HTTP request suffices

  • Privileges Required: None (PR:N)

  • User Interaction: None (UI:N)

  • Scope: Unchanged (S:U)

  • Confidentiality Impact: High (C:H)

  • Integrity & Availability: None (I:N/A:N)

  • ⚡ Attack Chain

    Below is a realistic, step‑by‑step chain that an attacker could follow, assuming the target is a publicly reachable or internally exposed Mljar Mercury instance.

    StepDescriptionExample / PoC
    1. Discovery & Reconnaissance• Identify that the target hosts Mljar Mercury.<br>• Determine the version (e.g., via a GET /api/version endpoint, or by inspecting the Server header or a robots.txt hint).<br>• Verify that the version is < 3.2.12.``bash<br># Enumerate API endpoints (simple GET to root)<br>curl -s -I http://target/grep -i 'Server'\n# If the response contains 'Mljar Mercury 3.1.4', the target is vulnerable.\n`
    2. Exploitation• Craft a request to /api/contents/<path>.ipynb.<br>• No authentication header is required; the handler will return the notebook JSON.<br>• The attacker can use GET for read or PUT to overwrite (though the CVE focuses on read).`bash<br># PoC – read a notebook named 'secret.ipynb' located under the root\ncurl -s http://target/api/contents/secret.ipynb\n# The response will be the full JSON representation of the notebook.\n`
    3. Post‑Exploitation• Parse the JSON to extract code cells, outputs, and metadata.<br>• Look for hard‑coded secrets, API keys, database passwords, or any sensitive data.<br>• If the notebook contains executable code, the attacker can copy it and run it locally or on another system to further compromise the environment.`python<br>import json, sys\nnotebook = json.load(open('secret.ipynb'))\nfor cell in notebook['cells']:\n if cell['cell_type'] == 'code':\n print('--- CODE CELL ---')\n print(''.join(cell['source']))\n``
    Note: The /api/contents route is the only endpoint explicitly mentioned in the CVE. If an attacker discovers a different route that serves notebooks (e.g., /api/notebooks/<id>), the same principle applies – the handler must enforce authentication. The examples above are illustrative of the vulnerability class.

    🌍 Real World Impact

    ImpactDetail
    ConfidentialityHigh – the attacker can read any notebook file, potentially exposing code, data, and secrets.
    IntegrityNone – the flaw does not allow modification of files (though PUT is accepted, the CVE focuses on read).
    AvailabilityNone – the vulnerability does not affect service uptime.

    Practical consequences

    1. Data exfiltration – Sensitive data embedded in notebooks (e.g., customer data, internal metrics) can be harvested.
    2. Credential theft – Hard‑coded API keys, database passwords, or OAuth tokens can be extracted.
    3. Code reuse – Attackers can copy malicious code cells and re‑inject them into other notebooks or systems.
    4. Compliance violations – Exposure of personal data or regulated information can trigger legal penalties.


    🛡️ Remediation & Mitigation

    1. Patch

    AffectedFixed
    Mljar Mercury 3.0.1 – 3.2.11Upgrade to 3.2.12 or later.
    Action: Download the latest release from the official repository or package manager and apply the update. Verify the version with GET /api/version after the upgrade.

    2. Workarounds (if patching is not immediately possible)

    ApproachImplementation
    Reverse‑proxy authenticationPlace a reverse proxy (NGINX, Apache, Traefik) in front of Mercury and enforce HTTP Basic Auth or OAuth for /api/contents. Example NGINX snippet:
    ``nginx<br>location /api/contents/ {<br> auth_basic "Restricted";<br> auth_basic_user_file /etc/nginx/.htpasswd;<br> proxy_pass http://localhost:8000; <br>}<br>`
    WAF / ModSecurity ruleBlock unauthenticated requests to /api/contents/*.ipynb. Example ModSecurity rule:
    `apache<br># Block GET/PUT to /api/contents/*.ipynb without Authorization header<br>SecRule REQUEST_URI "@beginsWith /api/contents/" "phase:1,block,log,id:1001,deny,status:403,msg:'Unauthenticated access to notebook content'\nSecRule REQUEST_URI "@endsWith .ipynb" "phase:1,block,log,id:1002,deny,status:403,msg:'Unauthenticated access to notebook content'\nSecRule REQUEST_HEADERS:Authorization \"\" \"phase:1,block,log,id:1003,deny,status:403,msg:'Missing Authorization header'\n`
    File‑system ACLsRestrict the contents root directory to only the Mercury user (e.g., chmod 700 /var/mercury/notebooks). This prevents the web process from reading notebooks that are not meant to be exposed.
    Disable the endpointIf notebooks are not needed via the API, comment out or remove the route registration for /api/contents` in the Mercury configuration.

    3. Detection

    Log PatternIoC
    GET /api/contents/.*\.ipynb from an unknown IPUnauthenticated read attempt
    PUT /api/contents/.*\.ipynb from an unknown IPPotential overwrite attempt
    Repeated requests to /api/contents/ within a short time windowAutomated scanning activity
    Response status 200 with JSON payload containing "cells" fieldSuccessful notebook exfiltration

    Sample WAF log entry

    [2026-12-02T14:32:07Z] 192.0.2.123 - - [02/Dec/2026:14:32:07 +0000] "GET /api/contents/secret.ipynb HTTP/1.1" 200 15234 "-" "curl/7.68.0"

    ⚠️ Urgency

  • CVSS Score: 7.5 (High) – indicates a serious confidentiality risk.
  • Exploit Complexity: Low – a single HTTP request suffices.
  • CISA KEV: No – but the vulnerability is not yet in the KEV list; however, the lack of a KEV designation does not mitigate the risk.
  • Potential Impact: Immediate data leakage; no patch delay is acceptable.
Recommended priority: Critical for environments that store sensitive data in notebooks or rely on Mercury for internal analytics. Patch timeline: Apply the 3.2.12 update within 48 hours of discovery. If immediate patching is impossible, implement at least the reverse‑proxy authentication or WAF rule to block unauthenticated access.
[🤖 CVE Professor AI Security Engine]
Target Reconnaissance Queries (FOFA & Shodan)
PoC & Exploit Intelligence (GitHub)
Technical reference / advisory repository for CVE-2026-142241
Technical reference / advisory repository for CVE-2026-142241
Technical reference / advisory repository for CVE-2026-142241
Technical reference / advisory repository for CVE-2026-142241
CVSS Score
7.5 / 10 · CVSS HIGH
Weakness Types (CWE)
CWE-306
Related CVEs
9.8
CVE-2026-121827
ZohoCorp ManageEngine Applications Manager versions 182800 and below were affected by an remote command execut
8.8
CVE-2026-77417
Local CI is a ground-up rewrite of the GitHub Actions orchestration layer that runs entirely on a personal mac
8.8
CVE-2026-105102
An authentication bypass vulnerability in the Boa web interface of BDCOM routers allows unauthenticated attack
8.8
CVE-2026-118966
A missing authentication vulnerability in the SSH server of Nokia SR Linux allows an unauthenticated attacker
8.2
CVE-2026-145258
ag-ui-adk 0.8.0 before 0.14.0 contains a missing authentication vulnerability because add_adk_fastapi_endpoint
8.1
CVE-2026-145359
MCPJungle 0.1.11 through 0.4.7 contains a missing authentication vulnerability in the POST /init endpoint that
7.4
CVE-2026-145360
bb-browser 0.12.0 through 0.14.2 contains a missing authentication vulnerability that allows remote attackers