CVE-2013-4660 Deserialization Code Execution in js-yaml
Remote attackers can execute arbitrary code by sending crafted YAML strings to applications using the vulnerable JS-YAML library.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2013-4660?
CVE-2013-4660 is a medium-severity code injection vulnerability in n/a, published on 28 Jun 2013. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
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.
Weakness: CWE-20
Which versions are affected by CVE-2013-4660?
2 open source packages ship an affected version, including js-yaml. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
js-yaml npm | All versions | 2.0.5 |
js-yaml npm | All versions | 2.0.5 |
Products include Nodeca Js-Yaml.
How do I fix CVE-2013-4660?
Upgrade js-yaml to 2.0.5 or later.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2013-4660 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2013-4660 exists.
Public exploit code: 1 Metasploit module and 1 Exploit-DB entry.
Other vulnerabilities in n/a
- CVE-2026-59869 js-yaml: YAML merge-key chains can force quadratic CPU consumption
- CVE-2026-59870 js-yaml quadratic-complexity denial of service via YAML11_SCHEMA !!omap parsing
- CVE-2026-59868 js-yaml: YAML merge-key chains can force quadratic CPU consumption
- CVE-2026-53550 js-yaml: Quadratic-complexity DoS in merge key handling via repeated aliases
- CVE-2025-64718 js-yaml has prototype pollution in merge (<<)
Sources
Also known as GHSA-xxvw-45rp-3mj2.