Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAttacker supplies malicious custom/third-party attribution string
-
DeliveryConsecutive dangerous attributes evade DOM.sanitize skip bug
-
ExploitAttribution control writes payload to innerHTML
-
ExecutionVictim renders map, event handler fires
-
ImpactArbitrary JS runs in victim browser session
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires that the deploying application feeds attacker-controllable text into MapLibre's attribution control - specifically untrusted third-party style attribution strings or user-supplied custom attributions rendered by the attribution control (which writes to innerHTML). The malicious input must contain at least two consecutive dangerous attributes so the sanitizer skips the second (e.g. an |
| Impact | The vendor CVSS of 10.0 (AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N) substantially overstates real-world risk for a sanitizer-bypass XSS. Exploitation is not truly no-interaction or no-precondition: the attacker must control the attribution text, which requires an application that renders untrusted third-party style attributions or accepts user-supplied custom attributions - a usage-dependent condition rather than a default state - and a victim must render that specific map content. Impact is script execution confined to the victim's browser session (session/token theft, actions as the user), which is why scope-change S:C is defensible but C:H/I:H is aggressive for a client-side XSS. There is no EPSS, KEV, or public weaponized exploit in the provided data; however the upstream fix embeds concrete payloads as tests, so a working POC is effectively public. Net: a real, easily-triggered XSS for apps that display untrusted attributions, but the blanket 10.0 rating conflates worst-case with typical deployment. Treat as a priority for any product that renders third-party or user-controlled attribution strings; lower urgency for apps that only ever show trusted, first-party attributions. |
| Exploit ScenarioDerived | A mapping application lets community users add custom map layers along with an attribution string, or loads a third-party map style whose attribution field is attacker-influenced. The attacker submits an attribution containing two consecutive event-handler attributes such as |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 03, 2026
Cross-site scripting in MapLibre GL JS before 6.4.1 lets an attacker who controls map style attribution strings or user-supplied custom attributions bypass the library's HTML sanitizer and run arbitrary JavaScript in the victim's browser. The flaw is a sanitizer bug in DOM.sanitize(): iterating the live attributes collection while deleting attributes shifts indexes, so a dangerous event handler placed immediately after another removed attribute (e.g. onload/ontoggle) survives cleaning and fires when the attribution control writes the content to innerHTML. No public exploit or KEV listing exists, but the fix commit ships working payloads (e.g. <details open onload ontoggle=alert(1)>) as regression tests, making a POC trivially reconstructable.
RemediationAI
Vendor-released patch: 6.4.1 - upgrade the maplibre-gl dependency to 6.4.1 or later (npm install maplibre-gl@^6.4.1) and rebuild/redeploy any bundles that embed it. If an immediate upgrade is not possible, the actionable compensating controls are to stop rendering untrusted attribution content: disable or hard-code the attribution control rather than sourcing it from third-party styles, and reject or server-side-sanitize any user-supplied custom attribution strings before they reach the map (trade-off: loses dynamic/community attribution display and may violate tile-provider attribution requirements). Applying a strict Content-Security-Policy without unsafe-inline reduces the impact of injected inline handlers as defense-in-depth but does not fully fix DOM-based handler execution in all browsers. Refer to GHSA-jrc7-96c5-q579 for details.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in npm, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
MapLibre GL JS (CPE cpe:2.3:a:maplibre:maplibre-gl-js) is a widely used open-source WebGL vector-tile map rendering library, the community fork of Mapbox GL JS. The affected code, src/util/dom.ts DOM.sanitize(), builds an allowlist sanitizer intended to strip event handlers and dangerous attributes before content is inserted via innerHTML in the attribution control. The root cause (CWE-79, DOM-based XSS) is a classic live-collection mutation bug: elem.attributes returns a live NamedNodeMap, and calling removeAttribute() during a for-of loop over that collection re-indexes remaining entries, causing the iterator to skip the attribute directly following each removed one. Two consecutive dangerous attributes therefore let the second slip through. The fix in PR #8189 snapshots the collection with Array.from(elem.attributes) before iterating, and adds regression tests for consecutive/adjacent dangerous attributes.
Know when Maplibre Gl Js gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N
AC:H and UI:R because the app must render attacker-controlled attributions and a victim must load the map; client-side XSS gives S:C but only C:L/I:L, not the vendor's C:H/I:H.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
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.
Blast Radius
ecosystem impact- 2 npm packages depend on maplibre-gl (2 direct, 0 indirect)
Ecosystem-wide dependent count for version 6.0.0.
Technical POC Analysis
CWE-79, XSS via improper neutralization.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
The MapLibre GL JS library before version 6.4.1 contains a critical security flaw that enables attackers to execute malicious code in the browsers of users viewing maps, putting user credentials and sessions at immediate risk. Organizations using this library in any customer-facing application should prioritize immediate patching to prevent potential account compromise and data theft.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
EUVD-2026-70734
GHSA-jrc7-96c5-q579
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB