CVE-2026-85061: MapLibre GL JS · XSS Sanitizer Bypass in DOM.sanitize() via Live NamedNodeMap Removal Skip
Affects maplibre-glSource GCVE Database
Not known to be exploited · CVSS 10.0 Critical : upgrade to 6.4.1 as a priority.
Data as of 1 Dec 2026, 18:33 UTC
- Patch
- Available – fixed in 6.4.1, 5.24.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:NExploitation evidence
Disclosed: evidence found.
CVE published 3 Sep 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 1 Dec 2026.
What to do
Upgrade maplibre-gl to 6.4.1; maplibre-gl to 5.24.1.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| npmmaplibre-gl | Affected
| Fixed in
|
| npmmaplibre-gl | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade MapLibre GL JS to version 6.4.1 or later, or 5.24.1 or later, where the vulnerability is fixed. As a workaround, sanitize the attribute fields of any source data before passing it to MapLibre GL JS to prevent injection of malicious attributes. No other vendor advisories indicate that no action is required.
Description
MapLibre GL JS versions prior to 6.4.1 and before 5.24.1 contain a critical cross-site scripting (XSS) vulnerability in the DOM.sanitize() function. The vulnerability arises because the code iterates over a live NamedNodeMap of element attributes while removing attributes in the same loop, causing some dangerous attributes to be skipped and remain in the sanitized output. This allows an attacker to inject malicious HTML attributes that execute automatically when inserted into innerHTML, enabling zero-click XSS attacks. Applications that render untrusted or user-supplied attribution strings are affected. The issue is fixed in versions 6.4.1 and 5.24.1 by iterating over a static snapshot of attributes. Users should upgrade to these versions or later to remediate the vulnerability.
References
- github.com/maplibre/maplibre-gl-js/security/advisories/GHSA-jrc7-96c5-q579 (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2026-85061 (opens in a new tab)
- github.com/maplibre/maplibre-gl-js/pull/8189 (opens in a new tab)
- github.com/maplibre/maplibre-gl-js/commit/1da69f3cd913a39fa948708e01478663bf48bc27 (opens in a new tab)
- github.com/maplibre/maplibre-gl-js/commit/a00cf153baba8225432540a84146fdb1a001633f (opens in a new tab)
- github.com/maplibre/maplibre-gl-js (opens in a new tab)
- github.com/maplibre/maplibre-gl-js/releases/tag/v5.24.1 (opens in a new tab)
- github.com/maplibre/maplibre-gl-js/releases/tag/v6.4.1 (opens in a new tab)