CVE-2013-4660
mediumpriority · track · 43EPSS 0.173 · 97 %ileexploit · weaponizedEUUSEPSS · scored 2026-10-22
The JS-YAML module before 2.0.5 for Node.js parses input without properly considering the unsafe !!js/function tag, which allows remote attackers to execute arbitrary code via a crafted string that triggers an eval operation.
cvss
Technical severity, 0–10. One row per scoring source.
base score 0–10 · higher = more severe · hover a vector to decode
weaknesses
The CWE weakness classes this flaw belongs to.
exploits (2)
Public proof-of-concept and weaponised exploit code.
- exploit/multi/fileformat/nodejs_js_yaml_load_code_execNodejs js-yaml load() Code Executionweaponized · metasploit
- EDB-28655Nodejs - 'js-yaml load()' Code Exec (Metasploit)functional · exploit_db
affected products (22)
Products and version ranges known to be affected.
advisories (1)
Vendor and ecosystem advisories describing this.
- GHSA-xxvw-45rp-3mj2Deserialization Code Execution in js-yaml2017-10-24ghsa · osvUS
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.
also known as (3)
Other names and identifiers for this entity.
sources
Which sources assert this record, and when.
references (6)
External citations — patches, advisories, analysis.
- http://portal.nodesecurity.io/advisories/js-yamlcnnvd
- https://nealpoole.com/blog/2013/06/code-execution-via-yaml-in-js-yaml-nodejs-module/cnnvd
- http://portal.nodesecurity.io/advisories/js-yamlenisa_euvd
- https://nealpoole.com/blog/2013/06/code-execution-via-yaml-in-js-yaml-nodejs-module/enisa_euvd
- http://portal.nodesecurity.io/advisories/js-yamlVendor Advisorynvd
- https://nealpoole.com/blog/2013/06/code-execution-via-yaml-in-js-yaml-nodejs-module/ExploitVendor Advisorynvd
Attackers weaponise vulnerabilities like this against internet-exposed services. See what is exposed on your perimeter with a free passive scan.
Free scan