Vulnerability
CVE-2026-85061
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.
29 advisories report this vulnerability, across 3 ecosystems.
Advisories
- CGA-28h7-2m6m-83mw
- CGA-2x6r-rp6w-m4jv
- CGA-34jf-68j7-j97p
- CGA-3wpc-j4wj-2f2f
- CGA-62pg-vvx9-7jqw
- CGA-668g-8jq5-5hcc
- CGA-7565-qm9w-3chq
- CGA-795h-vg2m-9cqx
- CGA-7xq5-hqpg-vc5p
- CGA-8ggv-7pjm-394g
- CGA-8x55-gxr8-gph4
- CGA-hfjc-mggw-gr74
- CGA-hvcf-hwp5-9pqq
- CGA-j7f5-65cq-p4vx
- CGA-jqvm-8qh9-45xf
- CGA-m65m-2xmm-3q5x
- CGA-m8wg-pff4-f9vp
- CGA-mqpx-5xxw-6cj9
- CGA-mwr3-6xgp-993w
- CGA-pcw5-g42g-23h4
- CGA-r282-47wc-74cx
- CGA-r787-v96w-fw27
- CGA-r9hh-grvx-f5mf
- CGA-v4fw-6mvr-9xpg
- CGA-w886-g8xw-f7j6
- CGA-xmpp-7gp6-hrgp
- CGA-xpq4-wfv8-9547
- CGA-xqpv-4xx3-vx6v
-
GHSA-jrc7-96c5-q579
MapLibre GL JS: XSS Sanitizer Bypass in DOM.sanitize() via Live NamedNodeMap Removal Skip