CyberRota Analysis
AI-GeneratedMapLibre GL JS versions prior to 6.4.1 are vulnerable due to a flaw in the DOM.sanitize() function, which fails to properly sanitize dangerous attributes from user-supplied content. This vulnerability allows attackers to inject malicious scripts that can execute when the affected map content is rendered, potentially leading to severe security breaches. Organizations using this library should prioritize upgrading to version 6.4.1 to mitigate the risk of exploitation.
Public Exploit Signal
A public exploit, PoC, GitHub repository or Metasploit reference was detected for this CVE.
Note: these links are listed for security research and verification purposes only.
Original NVD 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.