org.webjars.npm:maplibre-gl@5.24.0

  • latest version

    6.4.1

  • latest non vulnerable version

  • first published

    3 years ago

  • latest version published

    1 months ago

  • licenses detected

  • package registry

  • Direct Vulnerabilities

    Known vulnerabilities in the org.webjars.npm:maplibre-gl package. This does not include vulnerabilities belonging to this package’s dependencies.

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    Fix for free
    VulnerabilityVulnerable Version
    • M
    Cross-site Scripting (XSS)

    org.webjars.npm:maplibre-gl is a BSD licensed community fork of mapbox-gl, a WebGL interactive maps library

    Affected versions of this package are vulnerable to Cross-site Scripting (XSS) via the DOM.removeAttributes function, which iterates over a live NamedNodeMap while simultaneously calling removeAttribute. Because removing an attribute shifts the live collection's indices, the attribute immediately following each removed one is skipped, allowing a second dangerous attribute to survive DOM.sanitize and be injected into the DOM. An attacker who can supply malicious map content can thereby execute arbitrary JavaScript in the victim's browser.

    How to fix Cross-site Scripting (XSS)?

    Upgrade org.webjars.npm:maplibre-gl to version 6.4.1 or higher.

    [,6.4.1)