{"id":"CVE-2026-85061","published":"2026-09-03T20:18:50Z","modified":"2026-09-04T18:37:12Z","title":"MapLibre GL JS: XSS Sanitizer Bypass in DOM.sanitize() via Live NamedNodeMap Removal Skip","vendor":"maplibre","product":"maplibre-gl-js","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":10,"severity":"CRITICAL","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00522,"percentile":0.37674,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/maplibre/maplibre-gl-js/security/advisories/GHSA-jrc7-96c5-q579","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/maplibre/maplibre-gl-js/pull/8189","tags":["x_refsource_MISC"]},{"url":"https://github.com/maplibre/maplibre-gl-js/commit/1da69f3cd913a39fa948708e01478663bf48bc27","tags":["x_refsource_MISC"]},{"url":"https://github.com/maplibre/maplibre-gl-js/releases/tag/v6.4.1","tags":["x_refsource_MISC"]}],"priority":{"score":14.5,"factors":[{"name":"EPSS percentile","points":7.53},{"name":"CVSS severity","points":7.0}]},"vendorSlug":"maplibre","affectedVersions":[{"vendor":"maplibre","product":"maplibre-gl-js","versions":["< 6.4.1"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"total","timestamp":"2026-09-04T18:36:59.472100Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"maplibre-gl","vulnerableRanges":["<6.4.1"],"patched":["6.4.1"],"from":["GHSA-jrc7-96c5-q579"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-70734","exploited":false,"provenance":"source"}}