Security mailing lists by PureSourceCode

CVE-2026-85061

CRITICAL 10.0CVSS 3.1

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

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.

Published
3 Sep 2026
Last modified
1 Dec 2026
Assigned by
security-advisories@github.com
NVD status
Deferred
Weakness
CWE-79
Also known as
GHSA-jrc7-96c5-q579
Sources
NVDJSONOSV GHSA-jrc7-96c5-q579JSON

Scores

SourceScored byVersionScoreVector / decision
NVD security-advisories@github.com (Secondary) CVSS 3.1 CRITICAL 10.0 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N
OSV GitHub CVSS 3.1 CRITICAL 10.0 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV npm maplibre-gl >= 6.0.0, < 6.4.1 6.4.1
OSV npm maplibre-gl < 5.24.1 5.24.1

References

History

  • 1 Dec 2026 15:49 UTC · OSV: affected list changed (2 entries); 2 references added
  • 25 Nov 2026 21:05 UTC · NVD: first stored (published 3 Sep 2026)
  • 25 Nov 2026 20:11 UTC · OSV: first stored (published 8 Sep 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.