{"answers":{"affected":"2 open source packages ship an affected version, including mercury.","exploited":"There is no known exploitation of CVE-2026-111058 in the wild and no public exploit code.","fix":"Upgrade mercury to 3.2.6 or later.","what":"CVE-2026-111058 is a critical code injection vulnerability in mljar mercury, published on 19 Oct 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-111058 and fix it if it is affected.\n\nWhat it is: CVE-2026-111058 is a critical code injection vulnerability in mljar mercury, published on 19 Oct 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: There is no known exploitation of CVE-2026-111058 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- mercury (PyPI): affected all versions; fixed in 3.2.6\n- mercury (PyPI): affected all versions; fixed in 3.2.6\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-111058/ (Markdown: https://insights.sbomify.com/CVE-2026-111058/index.md)","id":"CVE-2026-111058","markdown":"https://insights.sbomify.com/CVE-2026-111058/index.md","name":"CVE-2026-111058","record":{"aliases":["GHSA-rv4m-xm3f-3ccq"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Python notebook framework","requires_auth":"none","summary":"Unauthenticated attackers can execute arbitrary Python code via the /api/kernels endpoint in default Mercury deployments.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":9.8,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-862","name":"Missing Authorization"}],"description":"Mercury is a Python framework for sharing Jupyter notebooks as web applications and dashboards. Prior to 3.2.6, default tokenless deployments allow anonymous clients to create Jupyter kernels and send execute_request messages containing arbitrary Python. The endpoint blocklist does not cover /api/kernels, and the websocket wrapper previously tracked idle activity without authorizing executable messages. This issue is fixed in version 3.2.6.","ecosystems":["PyPI"],"exploits":{"exploitdb":0,"first_seen":"2026-10-20","github_poc":1,"max_poc_stars":0,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-10-20T04:38:18Z","kind":"github_poc","ref":"https://github.com/ExDev994/CVE-2026-111058-CVE-2026-111057-mercury-rce","stars":0,"title":"Mercury unauth RCE combo: CVE-2026-111058 (kernels) + CVE-2026-111057 (terminals). By 0xNuts (@ExDev994). Authorized testing only."}],"tier":"poc_unverified"},"has_fix":true,"headline":"Mercury: Unauthenticated Remote Code Execution via /api/kernels","id":"CVE-2026-111058","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":null,"products":[],"type":"code_injection","year":"2026"},"n_packages":2,"n_references":3,"next":{"headline":"Mercury: Stored / DOM Cross-Site Scripting (XSS): mr.Markdown renders untrusted content as raw, unsanitized HTML","id":"CVE-2026-111059"},"packages":[{"ecosystem":"PyPI","fixed":["3.2.6"],"introduced":["0"],"last_affected":[],"package":"mercury","purl":null,"source":"GHSA-rv4m-xm3f-3ccq"},{"ecosystem":"PyPI","fixed":["3.2.6"],"introduced":["0"],"last_affected":[],"package":"mercury","purl":"pkg:pypi/mercury","source":"GHSA-rv4m-xm3f-3ccq"}],"prev":{"headline":"Mercury: Unauthenticated Remote Code Execution in /api/terminals - access control bypass","id":"CVE-2026-111057"},"products":["mercury"],"published":"2026-10-19","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-10-19","vendors":["mljar"]},"summary":"Unauthenticated attackers can execute arbitrary Python code via the /api/kernels endpoint in default Mercury deployments.","url":"https://insights.sbomify.com/CVE-2026-111058/"}