CVE-2026-85061
### Impact `DOM.sanitize()` in `src/util/dom.ts` iterated `elem.attributes` (a live `NamedNodeMap`) while calling `elem.removeAttribute()` in the same loop. Removing an attribute shifts subsequent attributes down by one index, causing the iterator to skip the adjacent attribute. An attacker can provide an HTML payload with consecutive dangerous attributes (such as `<details open onload="1" ontoggle="...">`). The first attribute is stripped while the second survives and executes upon insertion into `innerHTML` via the attribution control without requiring user interaction (zero-click XSS). Applications rendering untrusted/third-party style attribution strings or user-supplied custom attributions are impacted. ### Patches The issue has been resolved by creating a static snapshot of attributes using `Array.from(elem.attributes)` before iteration. Please upgrade to `maplibre-gl` version **6.4.1** (or latest). ### Workarounds Sanitizing the attribute field of a source before passing it down to maplibre
Properties
- severity
- critical
- summary
- MapLibre GL JS: XSS Sanitizer Bypass in DOM.sanitize() via Live NamedNodeMap Removal Skip
- epss_score
- 0.00309
- cvss_score
- 10
- ghsa_published
- 2026-09-08T20:50:47Z
- source_url
- https://github.com/advisories/GHSA-jrc7-96c5-q579
- ghsa_updated
- 2026-09-08T20:50:48Z
- ghsa_id
- GHSA-jrc7-96c5-q579
- cve_id
- CVE-2026-85061
- cvss_vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N
- is_ghsa_only
- false
- epss_percentile
- 0.23298
Related Entities (5)
ENRICHED_BY (1)
REPORTED_BY (1)
VULNERABLE_TO (1)
AFFECTS (1)
HAS_WEAKNESS (1)
Explore deeper with Ninja Signal's threat intelligence graph