CVE-2026-85061: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in maplibre maplibre-gl-js
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.
CVSS v3.1
Score 10.0critical
Affected software
maplibre
maplibre-gl-js
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
MapLibre GL JS versions prior to 6.4.1 contain a cross-site scripting vulnerability due to improper neutralization of input during web page generation. The DOM.sanitize() function in src/util/dom.ts iterates over elem.attributes as a live NamedNodeMap while simultaneously removing attributes, causing index shifts and skipping adjacent dangerous attributes. An attacker controlling untrusted third-party style attribution strings or user-supplied custom attributions can supply consecutive dangerous attributes, allowing malicious event handlers such as onload or ontoggle to survive sanitization and execute when inserted into innerHTML by the attribution control. This vulnerability is resolved in version 6.4.1.
Potential Impact
Successful exploitation allows an attacker to execute arbitrary scripts in the context of the affected web page without user interaction, potentially leading to full compromise of confidentiality and integrity of the affected application. The CVSS score is 10.0 (critical), indicating network attack vector, no privileges required, no user interaction, and complete confidentiality and integrity impact. Availability is not affected.
Mitigation Recommendations
A fix is available in maplibre-gl-js version 6.4.1. Users and administrators should upgrade to version 6.4.1 or later to remediate this vulnerability. No other mitigation or temporary workaround is documented. Patch status is confirmed by the vendor advisory indicating the issue is fixed in 6.4.1.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-09-02T21:21:01.774Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6a99d71facd9273b496a6d0b
Added to database: 09/03/2026, 20:22:55 UTC
Last enriched: 09/07/2026, 11:58:02 UTC
Last updated: 10/18/2026, 18:48:24 UTC
Views: 92
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.