GHSA-xxvw-45rp-3mj2

    Dashboard / Vulnerabilities / GHSA-xxvw-45rp-3mj2

    GHSA-xxvw-45rp-3mj2

    Published: 24 Oct 2017Last Modified: 8 Nov 2023
    Aliases:

    Summary: Deserialization Code Execution in js-yaml

    Details: Versions 2.0.4 and earlier of `js-yaml` are affected by a code execution vulnerability in the YAML deserializer. ## Proof of Concept ``` const yaml = require('js-yaml'); const x = `test: !!js/function > function f() { console.log(1); }();` yaml.load(x); ``` ## Recommendation Update js-yaml to version 2.0.5 or later, and ensure that all instances where the `.load()` method is called are updated to use `.safeLoad()` instead.

    Affected packages

    Package

    Name: js-yaml

    Purl: pkg:npm/js-yaml

    Affected ranges

    Type: SEMVER

    Events:

    Introduced- 0
    Fixed -2.0.5

    Affected versions

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    GHSA-xxvw-45rp-3mj2 | CVE-DB