MapLibre GL JS versions 6.4.0 and earlier contain CVE-2026-85061 (GHSA-jrc7-96c5-q579), a critical cross-site scripting flaw that can permit zero-click JavaScript execution in applications rendering attacker-controlled map data. The defect lies in DOM.sanitize(), which removes attributes while iterating over a live NamedNodeMap; index shifts can cause consecutive malicious attributes, including event handlers, to evade sanitization before content is inserted through innerHTML.
An attacker can deliver crafted HTML via untrusted map-style metadata, attribution text, or custom attribution fields without requiring authentication, privileges, or user interaction. Successful exploitation can support session theft, unauthorized actions, data exposure, phishing redirects, and map-content manipulation. MapLibre corrected the issue in version 6.4.1 by processing a static copy of element attributes; organizations should upgrade and review applications that ingest untrusted mapping metadata or attribution content.

See affected versions and whether adversaries are exploiting it.
2 events from the most recent confirmed update back to the earliest known activity.
MapLibre maintainers fixed CVE-2026-85061 in maplibre-gl version 6.4.1 by making a static copy of element attributes before inspecting and removing unsafe attributes.
CVE-2026-85061 (GHSA-jrc7-96c5-q579) was identified in MapLibre GL JS versions 6.4.0 and earlier. The DOM.sanitize() routine could skip adjacent malicious attributes while iterating over a live NamedNodeMap, permitting zero-click JavaScript execution through untrusted attribution or map metadata.
Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.
See whether adversaries are exploiting this yet, and where the affected versions run in your environment.
2 references tracked. Mallory keeps watching after this page renders.
Map indicators from this story to your assets and identify affected systems in minutes.
Every observed campaign, victim, and pivot linked to actors named in this story.
Malware, exploits, and IOCs connected to the activity described here.
YARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Get matching new stories delivered to your team as they break — not the next morning.
Ask questions about this story and take action on the answers.