Vulnerabilities / CVE-2026-85061

critical

CVE-2026-85061

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

Published Modified CWE 79
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

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

Trivy's own label is CRITICAL. Rated critical by GHSA.

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.

Affected packages and fixed versions

SourcePackageFixed in
npm::GitHub Security Advisory npmmaplibre-gl6.4.1
chainguardopensearch-dashboards-2, opensearch-dashboards-2-fips, opensearch-dashboards-3 and 3 more2.19.7-r0 and 2 more
echo npm::Echo OSVmaplibre-gl6.4.1
minimosopensearch-dashboards-3-plugin-dashboards-maps3.9.0.0-r0
wolfiopensearch-dashboards-3, tileserver-gl3.9.0-r0 and 1 more
Show all 11 entries from 5 sources
SourcePackageFixed in
npm::GitHub Security Advisory npmmaplibre-gl6.4.1
chainguardopensearch-dashboards-22.19.7-r0
chainguardopensearch-dashboards-2-fips2.19.7-r0
chainguardopensearch-dashboards-33.9.0-r0
chainguardopensearch-dashboards-3-fips3.9.0-r0
chainguardtileserver-gl5.7.0-r0
chainguardtileserver-gl-fips5.7.0-r0
echo npm::Echo OSVmaplibre-gl6.4.1
minimosopensearch-dashboards-3-plugin-dashboards-maps3.9.0.0-r0
wolfiopensearch-dashboards-33.9.0-r0
wolfitileserver-gl5.7.0-r0

References

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.