← Terug naar overzicht

CVE-2026-85061 affects MapLibre GL JS, a web browser vector tile map library, in versions prior to 6.4.1. The vulnerability resides in the DOM.sanitize() function in src/util/dom.ts, which iterates over a live NamedNodeMap while simultaneously removing attributes, causing index shifts that allow dangerous attributes to be skipped. An attacker who controls third-party style attribution strings or custom attributions can craft consecutive dangerous attributes (e.g., onload, ontoggle) that survive sanitization. The surviving event handler attributes are then injected into innerHTML, enabling cross-site scripting (XSS) execution. Exploitation requires a victim to render the affected map content. The vulnerability has been patched in MapLibre GL JS version 6.4.1.

Affected products

  • MapLibre GL JS

Related CVE's

  • CVE-2026-85061

Categories

  • Web Technologies