Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. maplibre-gl
  4. ›
  5. CVE-2026-85061

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

September 8, 2026

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.

References

  • github.com/advisories/GHSA-jrc7-96c5-q579
  • github.com/maplibre/maplibre-gl-js/commit/1da69f3cd913a39fa948708e01478663bf48bc27
  • github.com/maplibre/maplibre-gl-js/pull/8189
  • github.com/maplibre/maplibre-gl-js/releases/tag/v6.4.1
  • github.com/maplibre/maplibre-gl-js/security/advisories/GHSA-jrc7-96c5-q579
  • nvd.nist.gov/vuln/detail/CVE-2026-85061

Code Behaviors & Features

Detect and mitigate CVE-2026-85061 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 6.4.1

Fixed versions

  • 6.4.1

Solution

Upgrade to version 6.4.1 or above.

Impact 10 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

npm/maplibre-gl/CVE-2026-85061.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 22 Sep 2026 12:19:41 +0000.