js-yaml@4.1.0 vulnerabilities

YAML 1.2 parser and serializer

  • latest version

    4.1.1

  • latest non vulnerable version

  • first published

    14 years ago

  • latest version published

    6 days ago

  • licenses detected

  • Direct Vulnerabilities

    Known vulnerabilities in the js-yaml 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
    Prototype Pollution

    js-yaml is a human-friendly data serialization language.

    Affected versions of this package are vulnerable to Prototype Pollution via the merge function. An attacker can alter object prototypes by supplying specially crafted YAML documents containing __proto__ properties. This can lead to unexpected behavior or security issues in applications that process untrusted YAML input.

    How to fix Prototype Pollution?

    Upgrade js-yaml to version 3.14.2, 4.1.1 or higher.

    <3.14.2>=4.0.0 <4.1.1