CVE-2026-85061: maplibre-gl-js · Cross-site Scripting
Affects maplibre-gl-jsSource CVE Database V5
Not known to be exploited · CVSS 10.0 Critical : upgrade to 6.4.1 as a priority.
Data as of 2 Dec 2026, 18:37 UTC
- EPSS
- 0.3% chance of exploitation in 30 days – higher than 36% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- 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 2 Dec 2026.
What to do
Upgrade maplibre-gl-js and maplibre-gl to 6.4.1; maplibre-gl to 5.24.1.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| maplibremaplibre-gl-js | Affected
| Fixed in
|
npmmaplibre-glpkg:npm/maplibre-glOther threats | Affected
| Fixed in
|
npmmaplibre-glpkg:npm/maplibre-glOther threats | 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
A fix is available in maplibre-gl-js version 6.4.1. Users and administrators should upgrade to version 6.4.1 or later to remediate this vulnerability. No other mitigation or temporary workaround is documented. Patch status is confirmed by the vendor advisory indicating the issue is fixed in 6.4.1.
Description
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.
References
- github.com/maplibre/maplibre-gl-js/security/advisories/GHSA-jrc7-96c5-q579 (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/releases/tag/v6.4.1 (opens in a new tab)