devalue@2.0.0 vulnerabilities

Gets the job done when JSON.stringify can't

  • latest version

    5.4.1

  • latest non vulnerable version

  • first published

    7 years ago

  • latest version published

    3 days ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the devalue 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
    • C
    Prototype Pollution

    devalue is a JSON.stringify, but handles cyclical references, repeated references, undefined, regular expressions, dates, Map and Set.

    Affected versions of this package are vulnerable to Prototype Pollution via the parse function. An attacker can manipulate object prototypes or assign array prototype methods to object properties by crafting malicious payloads, potentially leading to property overwrites or bypassing server-side validation.

    How to fix Prototype Pollution?

    Upgrade devalue to version 5.3.2 or higher.

    <5.3.2
    • M
    Cross-site Scripting (XSS)

    devalue is a JSON.stringify, but handles cyclical references, repeated references, undefined, regular expressions, dates, Map and Set.

    Affected versions of this package are vulnerable to Cross-site Scripting (XSS). It does not properly mitigate against unsafe characters in serialized regular expressions.

    How to fix Cross-site Scripting (XSS)?

    Upgrade devalue to version 2.0.1 or higher.

    <2.0.1