CVE-2013-4660 nodeca js-yaml: Improper Input Validation
nodeca js-yaml: no CVSS score yet. EPSS 17% estimated probability of exploitation activity in the next 30 days. Fixed in js-yaml 2.0.5.
On this page
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.
- EPSS
- 17% (unchanged from 17% a week ago; 17% 30 days ago) estimated probability of exploitation activity in the next 30 days; 97th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
- CWE
- CWE-20 Improper Input Validation
- OWASP Top 10
- A05:2025 Injection
- Published
- Modified
- NVD analysis
- Analyzed, since modified
- Record from
- the NVD, synced
Fix and patched versions
js-yaml(npm): fixed in 2.0.5- Vendor advisory: http://portal.nodesecurity.io/advisories/js-yaml
- Vendor advisory: https://nealpoole.com/blog/2013/06/code-execution-via-yaml-in-js-yaml-nodejs-module/
Ask an AI about this CVE
Show the prompt
Explain CVE-2013-4660 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2013-4660?via=ask-ai-copy and https://cve.bz/cve/CVE-2013-4660?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2013-4660 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.
Affected
Versions
From the NVD's CPE matches.
| Product | Affected |
|---|---|
| nodeca:js-yaml | through 2.0.4 |
| nodeca:js-yaml | 0.2.0 |
| nodeca:js-yaml | 0.2.1 |
| nodeca:js-yaml | 0.2.2 |
| nodeca:js-yaml | 0.3.0 |
| nodeca:js-yaml | 0.3.1 |
| nodeca:js-yaml | 0.3.2 |
| nodeca:js-yaml | 0.3.3 |
| nodeca:js-yaml | 0.3.4 |
| nodeca:js-yaml | 0.3.5 |
| nodeca:js-yaml | 0.3.6 |
| nodeca:js-yaml | 0.3.7 |
| nodeca:js-yaml | 1.0.0 |
| nodeca:js-yaml | 1.0.1 |
| nodeca:js-yaml | 1.0.2 |
| nodeca:js-yaml | 1.0.3 |
| nodeca:js-yaml | 2.0.0 |
| nodeca:js-yaml | 2.0.1 |
| nodeca:js-yaml | 2.0.2 |
| nodeca:js-yaml | 2.0.3 |
Packages (OSV)
| Advisory | Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|---|
| GHSA-xxvw-45rp-3mj2 | npm | js-yaml | <2.0.5 | 2.0.5 |
Public exploits
- Exploit-DB Nodejs - 'js-yaml load()' Code Exec (Metasploit)
- Metasploit Nodejs js-yaml load() Code Execution
Attack patterns (CAPEC)
The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-20 (51).