Skip to main content
EPSS 0.5%top 57%

CVE-2026-85061: CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in maplibre maplibre-gl-js

0
Critical
VulnerabilityCVE-2026-85061cvecve-2026-85061cwe-79
Published: 09/03/2026 (09/03/2026, 20:18:50 UTC)
Source: CVE Database V5
Vendor/Project: maplibre
Product: 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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:N

Affected software

maplibre

maplibre-gl-js

Affected versions
<6.4.1

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/07/2026, 11:58:02 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses