Skip to main content
VulnerabilityPublished Updated

CVE-2026-85061: MapLibre GL JS · XSS Sanitizer Bypass in DOM.sanitize() via Live NamedNodeMap Removal Skip

Affects maplibre-glSource GCVE Database

0
Compare
Authoritative record:CVE-2026-85061· Critical 10.0

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

CVSS 3.1 base score
10.0Critical
How severe the flaw is on the 0–10 CVSS scale.
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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 3 Sep 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
npmmaplibre-glAffected
  • >=6.0.0 <6.4.1
Fixed in
  • 6.4.1
npmmaplibre-glAffected
  • <5.24.1
Fixed in
  • 5.24.1

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

Community reviews

Loading reviews…