External risk intelligence

MapLibre GL JS Attribute Sanitization Bypass Executes Malicious Scripts.

CVE advisorySeverity: CRITICAL (CVSS 10.0)

CVE-2026-85061

MapLibre GL JS is a client-side JavaScript library integrated into web applications to render maps. It does not run as a standalone public-facing server, gateway, or edge service; the vulnerability exists within the client-side code executed in the user's browser, making it a client-side library issue rather than a public-internet-facing network service.

Cross-site Scripting

Halo Surface Signal: 1 out of 5 — much less likely to be public-facing.

External exposure likelihood

Horizon Alert

Summary of the vulnerability and why it matters

A security vulnerability has been identified in MapLibre GL JS, a library used for interactive maps in web browsers. This issue could allow attackers to execute malicious scripts within a user's browser by manipulating map attribution strings, potentially leading to significant data compromise. The main concern is confirming whether our applications utilize this specific library and are exposed to this threat.

  • Malicious scripts can run in user browsers.
  • Affects web-based map rendering libraries.
  • Confirm use and assess exposure risk.

Attack Path

How an attacker could exploit the issue

An attacker could exploit this by supplying specially crafted attribution strings. These strings, when processed by the vulnerable MapLibre GL JS library, could bypass security checks and inject malicious code, such as an `onload` event handler. This code would then execute in the user's browser when the map content is rendered, potentially leading to the described risks.

  • No authentication or special access needed.
  • Malicious attribution string processed by the library.
  • Arbitrary script execution in the user's browser.

Live Threat

Current exploitation, exposure, and threat context

A critical vulnerability in MapLibre GL JS could allow an attacker to execute arbitrary scripts within a user's browser when they view a map with specially crafted attribution strings. This occurs when the sanitization process for DOM attributes is bypassed, enabling malicious code like `onload` or `ontoggle` events to run, potentially impacting the user's session and browser.

  • Arbitrary script execution in browser.
  • Malicious attribution strings exploit sanitization.
  • Compromised user session and browser.

Operational Fix

Recommended remediation, mitigation, and detection steps

Application owners integrating MapLibre GL JS are primarily responsible for addressing this vulnerability, as it affects a client-side library used within web applications. The first practical step involves identifying all instances of the affected library across your web properties, confirming which are exposed to users or handle untrusted data, and then determining the accountable application owner for remediation planning.

  • Identify application owners and affected maps.
  • Verify exposure of maps to untrusted data.
  • Plan remediation or upgrade MapLibre JS.

Supplementary metadata

Validate whether this threat affects your internet-facing exposure.

Halo Threat Intelligence helps prioritize remediation with Halo Surface Signal and H/A/L/O context. Start exposure validation with a free external attack surface trial.

Frequently asked questions

What is MapLibre GL JS?

MapLibre GL JS is a popular, open-source JavaScript library that developers integrate into their websites to render interactive, vector-based maps. Because it runs entirely within a user's web browser, it allows applications to display custom map data, markers, and layers directly on the client side without needing a dedicated map server for every interaction.

What does CVE-2026-85061 mean for security?

This CVE represents a Cross-Site Scripting (CWE-79) vulnerability. In technical terms, the library's sanitization function incorrectly handles the removal of dangerous HTML attributes. By providing a specific sequence of attributes, an attacker can trick the library into ignoring harmful code, such as 'onload' or 'ontoggle' events, which then execute unexpectedly in the victim's browser session.

How does an attacker trigger this vulnerability?

An attacker triggers this by supplying malicious, crafted attribution strings—the text typically found in the corner of a map—that the application then renders. This only works if the library processes these dangerous inputs; simply hosting a map library does not trigger the bug. If the attribution strings are static or originate from a trusted, controlled source, the vulnerability cannot be exploited.

Is my web application at risk?

According to Halo Surface Signal, this is a client-side library issue rather than a traditional public-internet-facing service. The risk depends on whether your website allows untrusted users to provide or influence the custom attribution strings rendered by MapLibre. If your application only uses fixed, internal attribution text, the practical risk is significantly lower.

How do I fix this in my application?

The primary response is to update your project to MapLibre GL JS version 6.4.1 or later, which contains the corrected sanitization logic. Start by auditing your codebase to locate where the library is used, determine if those specific maps display user-supplied content, and coordinate with your development team to prioritize the version upgrade across all affected web properties.

References