Improper input validation in Nodeca Js-Yaml
CVE-2013-4660
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.
Published · last modified .
CVSS v2 metric
CVSS v2 base score 6.8 (Medium). Vector: AV:N/AC:M/Au:N/C:P/I:P/A:P. This CVE predates CVSS v3 and has no v3 score from NVD.
EPSS exploit prediction
EPSS 0.172, 97.1th percentile (last changed ); unchanged over 30 days. About EPSS.
Affected products
- Nodeca Js-Yaml — versions 0.2.0, 0.2.1, 0.2.2
Weakness classification (CWE)
Public exploits and proof-of-concept code
Metasploit modules
1 public repository with exploit or proof-of-concept code for this CVE:
- leehunkoo/cve-2013-4660_PoC (last pushed 2026-06-11)
Also mentioned in 2 other repositories (ContainerSolutions/node-hack, lalyos/docker-security-course). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- nealpoole.com/blog/2013/06/code-execution-via-yaml-in-js-yaml-nodejs-module/ (Exploit, Vendor Advisory)
- portal.nodesecurity.io/advisories/js-yaml (Vendor Advisory)
This CVE has public exploit evidence. See the latest CVEs with public exploits.