{"answers":{"affected":"2 open source packages ship an affected version, including maplibre-gl.","exploited":"There is no known exploitation of CVE-2026-85061 in the wild and no public exploit code.","fix":"Upgrade maplibre-gl to 6.4.1 or later.","what":"CVE-2026-85061 is a critical cross-site scripting vulnerability in maplibre-gl-js, published on 3 Sep 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-85061 and fix it if it is affected.\n\nWhat it is: CVE-2026-85061 is a critical cross-site scripting vulnerability in maplibre-gl-js, published on 3 Sep 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-85061 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- maplibre-gl (npm): affected all versions; fixed in 6.4.1\n- maplibre-gl (npm): affected all versions; fixed in 6.4.1\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-85061/ (Markdown: https://insights.sbomify.com/CVE-2026-85061/index.md)","id":"CVE-2026-85061","markdown":"https://insights.sbomify.com/CVE-2026-85061/index.md","name":"CVE-2026-85061","record":{"aliases":["CLSA-2026-1789160133","ECHO-0a66-ea63-71bc","GHSA-jrc7-96c5-q579","MINI-6xfw-h7qv-j78h","MINI-8x25-29x8-wqhx","MINI-jvvw-jvpg-fr4c","MINI-rc8h-9hrw-57cr","MINI-wrgf-wpq9-v9pv"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"JavaScript map library","requires_auth":"none","summary":"Attackers can bypass XSS sanitization in MapLibre GL JS by exploiting a live NamedNodeMap iteration bug, allowing script execution via malicious attribution strings.","user_interaction":"not_required","vuln_class":"xss"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":10,"severity":"critical","source":"cna","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N","version":"3.1"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"description":"MapLibre GL JS is an interactive vector tile map library for web browsers. Prior to 6.4.1, DOM.sanitize() in src/util/dom.ts iterates elem.attributes as a live NamedNodeMap while removeAttributes() removes attributes from the same collection, shifting indexes and skipping an adjacent dangerous attribute. An attacker who controls untrusted third-party style attribution strings or user-supplied custom attributions can supply consecutive dangerous attributes, causing an attribute such as onload or ontoggle to survive sanitization and execute when the attribution control inserts the content into innerHTML. A victim must render the affected map content for the script to execute. This issue is fixed in version 6.4.1.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"MapLibre GL JS: XSS Sanitizer Bypass in DOM.sanitize() via Live NamedNodeMap Removal Skip","id":"CVE-2026-85061","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"xss","year":"2026"},"n_packages":2,"n_references":4,"next":{"headline":"Colord: Slow rejection of oversized malformed color strings","id":"CVE-2026-85062"},"packages":[{"ecosystem":"npm","fixed":["6.4.1"],"introduced":["0"],"last_affected":[],"package":"maplibre-gl","purl":null,"source":"GHSA-jrc7-96c5-q579"},{"ecosystem":"npm","fixed":["6.4.1"],"introduced":["0"],"last_affected":[],"package":"maplibre-gl","purl":"pkg:npm/maplibre-gl","source":"GHSA-jrc7-96c5-q579"}],"prev":{"headline":"Moquette: Missing Authorization in io.moquette:moquette-broker","id":"CVE-2026-85058"},"products":["maplibre-gl-js"],"published":"2026-09-03","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)"}],"ssvc":{"automatable":"yes","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-09-04","vendors":["maplibre"]},"summary":"Attackers can bypass XSS sanitization in MapLibre GL JS by exploiting a live NamedNodeMap iteration bug, allowing script execution via malicious attribution strings.","url":"https://insights.sbomify.com/CVE-2026-85061/"}