MapLibre GL JS: XSS Sanitizer Bypass in DOM.sanitize() via Live NamedNodeMap Removal Skip
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- High · High · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-79.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| maplibre | maplibre-gl-js | before 6.4.1 | 6.4.1 | Patch available | CNA |
| — | maplibre-gl (npm) | before 6.4.1 | 6.4.1 | Patch available | GHSA-jrc7-96c5-q579 |
- maplibre-gl-js Vendormaplibre Affected before 6.4.1 Fixed in 6.4.1 Patch available CNA
- maplibre-gl (npm) Vendor— Affected before 6.4.1 Fixed in 6.4.1 Patch available GHSA-jrc7-96c5-q579
Remediation
- Fix · CNA maplibre-gl-js (maplibre) Fixed in 6.4.1
- Fix · GHSA-jrc7-96c5-q579 maplibre-gl (npm) Fixed in 6.4.1 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-85061
- 2026-10-03 Alias added: GHSA-jrc7-96c5-q579
References
Other 5
- https://github.com/maplibre/maplibre-gl-js/security/advisories/GHSA-jrc7-96c5-q579
- https://github.com/maplibre/maplibre-gl-js/pull/8189
- https://github.com/maplibre/maplibre-gl-js/commit/1da69f3cd913a39fa948708e01478663bf48bc27
- https://github.com/maplibre/maplibre-gl-js/releases/tag/v6.4.1
- https://github.com/maplibre/maplibre-gl-js
Sources
- CVE-2026-85061 · CVE Program
- CVE-2026-85061 · NVD
- FIRST EPSS
- GHSA-jrc7-96c5-q579 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences