org.webjars.npm:js-cookie@2.1.4

  • latest version

    3.0.8

  • latest non vulnerable version

  • first published

    10 years ago

  • latest version published

    1 months ago

  • licenses detected

  • package registry

  • Direct Vulnerabilities

    Known vulnerabilities in the org.webjars.npm:js-cookie 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
    • H
    Prototype Pollution

    org.webjars.npm:js-cookie is an A simple, lightweight JavaScript API for handling cookies

    Affected versions of this package are vulnerable to Prototype Pollution via the assign function. An attacker can inject arbitrary cookie attributes by supplying a crafted JSON object containing a __proto__ property, which results in the merged attributes object inheriting attacker-controlled keys. This allows manipulation of cookie parameters such as domain, secure, samesite, expires, and path by passing malicious input to cookie-setting methods.

    How to fix Prototype Pollution?

    Upgrade org.webjars.npm:js-cookie to version 3.0.8 or higher.

    [2.0.3,3.0.8)