Vulnerability library
Security checkSeptember 08, 2026

MapLibre GL JS: XSS Sanitizer Bypass in DOM.sanitize() via Live NamedNodeMap Removal Skip

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

High severitynpmmaplibre-gl

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

DOM.sanitize() in src/util/dom.ts iterated elem.attributes (a live NamedNodeMap) while calling elem.removeAttribute() in the same loop. Removing an attribute shifts subsequent attributes down by one index, causing the iterator to skip the adjacent attribute.

Recommendation

Update the maplibre-gl package to the latest compatible version. Followings are version details:

  • Affected version(s): <= 6.4.0
  • Patched version(s): 6.4.1

References

Could your website be exposed too?

SmartScanner can check your website for MapLibre GL JS: XSS Sanitizer Bypass in DOM.sanitize() via Live NamedNodeMap Removal Skip and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated September 08, 2026