logo

CVE-2013-4660 js-yaml

Package

Manager: npm
Name: js-yaml
Vulnerable Version: >=0 <2.0.5

Severity

Level: Critical

CVSS v3.1: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N/E:U/RL:O/RC:C

CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N

EPSS: 0.64507 pctl0.98395

Details

Deserialization Code Execution in js-yaml 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.

Metadata

Created: 2017-10-24T18:33:37Z
Modified: 2021-09-22T18:27:56Z
Source: https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2017/10/GHSA-xxvw-45rp-3mj2/GHSA-xxvw-45rp-3mj2.json
CWE IDs: ["CWE-20"]
Alternative ID: GHSA-xxvw-45rp-3mj2
Finding: F184
Auto approve: 1