CVE-2013-4660
MEDIUM 6.8CVSS 2.0Deserialization Code Execution in js-yaml
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
- 28 Jun 2013
- Last modified
- 16 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-20
- Also known as
- GHSA-xxvw-45rp-3mj2
- Sources
- NVDJSONOSV GHSA-xxvw-45rp-3mj2JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 6.8 | AV:N/AC:M/Au:N/C:P/I:P/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | nodeca | js-yamlcpe:2.3:a:nodeca:js-yaml:*:*:*:*:*:*:*:* |
<= 2.0.4 | |
| NVD | nodeca | js-yamlcpe:2.3:a:nodeca:js-yaml:0.2.0:*:*:*:*:*:*:* |
= 0.2.0 | |
| NVD | nodeca | js-yamlcpe:2.3:a:nodeca:js-yaml:0.2.1:*:*:*:*:*:*:* |
= 0.2.1 | |
| NVD | nodeca | js-yamlcpe:2.3:a:nodeca:js-yaml:0.2.2:*:*:*:*:*:*:* |
= 0.2.2 | |
| NVD | nodeca | js-yamlcpe:2.3:a:nodeca:js-yaml:0.3.0:*:*:*:*:*:*:* |
= 0.3.0 | |
| NVD | nodeca | js-yamlcpe:2.3:a:nodeca:js-yaml:0.3.1:*:*:*:*:*:*:* |
= 0.3.1 | |
| NVD | nodeca | js-yamlcpe:2.3:a:nodeca:js-yaml:0.3.2:*:*:*:*:*:*:* |
= 0.3.2 | |
| NVD | nodeca | js-yamlcpe:2.3:a:nodeca:js-yaml:0.3.3:*:*:*:*:*:*:* |
= 0.3.3 | |
| NVD | nodeca | js-yamlcpe:2.3:a:nodeca:js-yaml:0.3.4:*:*:*:*:*:*:* |
= 0.3.4 | |
| NVD | nodeca | js-yamlcpe:2.3:a:nodeca:js-yaml:0.3.5:*:*:*:*:*:*:* |
= 0.3.5 | |
| NVD | nodeca | js-yamlcpe:2.3:a:nodeca:js-yaml:0.3.6:*:*:*:*:*:*:* |
= 0.3.6 | |
| NVD | nodeca | js-yamlcpe:2.3:a:nodeca:js-yaml:0.3.7:*:*:*:*:*:*:* |
= 0.3.7 | |
| NVD | nodeca | js-yamlcpe:2.3:a:nodeca:js-yaml:1.0.0:*:*:*:*:*:*:* |
= 1.0.0 | |
| NVD | nodeca | js-yamlcpe:2.3:a:nodeca:js-yaml:1.0.1:*:*:*:*:*:*:* |
= 1.0.1 | |
| NVD | nodeca | js-yamlcpe:2.3:a:nodeca:js-yaml:1.0.2:*:*:*:*:*:*:* |
= 1.0.2 | |
| NVD | nodeca | js-yamlcpe:2.3:a:nodeca:js-yaml:1.0.3:*:*:*:*:*:*:* |
= 1.0.3 | |
| NVD | nodeca | js-yamlcpe:2.3:a:nodeca:js-yaml:2.0.0:*:*:*:*:*:*:* |
= 2.0.0 | |
| NVD | nodeca | js-yamlcpe:2.3:a:nodeca:js-yaml:2.0.1:*:*:*:*:*:*:* |
= 2.0.1 | |
| NVD | nodeca | js-yamlcpe:2.3:a:nodeca:js-yaml:2.0.2:*:*:*:*:*:*:* |
= 2.0.2 | |
| NVD | nodeca | js-yamlcpe:2.3:a:nodeca:js-yaml:2.0.3:*:*:*:*:*:*:* |
= 2.0.3 | |
| OSV | npm | js-yaml | < 2.0.5 | 2.0.5 |
References
- http://portal.nodesecurity.io/advisories/js-yaml · Vendor Advisory
- https://nealpoole.com/blog/2013/06/code-execution-via-yaml-in-js-yaml-nodejs-module/ · Exploit, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2013-4660 · ADVISORY
- https://github.com/advisories/GHSA-xxvw-45rp-3mj2 · ADVISORY
- https://www.npmjs.com/advisories/16 · WEB
History
- 25 Nov 2026 20:17 UTC · NVD: first stored (published 28 Jun 2013)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 24 Oct 2017)