CVE-2026-85061
CRITICAL 10.0CVSS 3.1MapLibre GL JS: XSS Sanitizer Bypass in DOM.sanitize() via Live NamedNodeMap Removal Skip
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.
- Published
- 3 Sep 2026
- Last modified
- 1 Dec 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-79
- Also known as
- GHSA-jrc7-96c5-q579
- Sources
- NVDJSONOSV GHSA-jrc7-96c5-q579JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | CRITICAL 10.0 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N |
| OSV | GitHub | CVSS 3.1 | CRITICAL 10.0 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | npm | maplibre-gl | >= 6.0.0, < 6.4.1 | 6.4.1 |
| OSV | npm | maplibre-gl | < 5.24.1 | 5.24.1 |
References
- https://github.com/maplibre/maplibre-gl-js/commit/1da69f3cd913a39fa948708e01478663bf48bc27 · WEB
- https://github.com/maplibre/maplibre-gl-js/pull/8189 · WEB
- https://github.com/maplibre/maplibre-gl-js/releases/tag/v6.4.1 · WEB
- https://github.com/maplibre/maplibre-gl-js/security/advisories/GHSA-jrc7-96c5-q579 · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-85061 · ADVISORY
- https://github.com/maplibre/maplibre-gl-js/commit/a00cf153baba8225432540a84146fdb1a001633f · WEB
- https://github.com/maplibre/maplibre-gl-js · PACKAGE
- https://github.com/maplibre/maplibre-gl-js/releases/tag/v5.24.1 · WEB
History
- 1 Dec 2026 15:49 UTC · OSV: affected list changed (2 entries); 2 references added
- 25 Nov 2026 21:05 UTC · NVD: first stored (published 3 Sep 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 8 Sep 2026)