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

- Severity: Critical 10.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.40%, higher than 36% of CVEs (2026-12-01)
- Published: 2026-09-03T20:18:50.854Z
- Modified: 2026-12-01T15:15:08.038Z
- Also known as: GHSA-jrc7-96c5-q579
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- maplibre maplibre-gl-js: < 6.4.1
- maplibre-gl (npm): from 6.0.0 before 6.4.1; before 5.24.1

## Every score

- GitHub_M: CVSS:3.1 10.0 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N`
- GitHub: CVSS:3.1 10.0 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N`

## References

- <https://github.com/maplibre/maplibre-gl-js/security/advisories/GHSA-jrc7-96c5-q579> (web)
- <https://github.com/maplibre/maplibre-gl-js/pull/8189> (web)
- <https://github.com/maplibre/maplibre-gl-js/commit/1da69f3cd913a39fa948708e01478663bf48bc27> (web)
- <https://github.com/maplibre/maplibre-gl-js/releases/tag/v6.4.1> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-85061> (advisory)
- <https://github.com/maplibre/maplibre-gl-js/commit/a00cf153baba8225432540a84146fdb1a001633f> (web)
- <https://github.com/maplibre/maplibre-gl-js> (package)
- <https://github.com/maplibre/maplibre-gl-js/releases/tag/v5.24.1> (web)

## Sources

- CVE List: [CVE-2026-85061](https://www.cve.org/CVERecord?id=CVE-2026-85061), CVE Terms of Use, modified 2026-09-04
- GitHub Advisory Database: [GHSA-jrc7-96c5-q579](https://github.com/advisories/GHSA-jrc7-96c5-q579), CC-BY-4.0, modified 2026-12-01
- NVD: [CVE-2026-85061](https://nvd.nist.gov/vuln/detail/CVE-2026-85061), Public domain, modified 2026-09-09

---

Page: https://cve.day/CVE-2026-85061 · Whole record: https://cve.day/CVE-2026-85061.json · Rebuilt by cve.day 2026-12-01T15:37:26.324Z
