js-yaml
npm8 known CVEs affecting this package
Aggregated from OSV, GitHub Security Advisories, NVD, and vendor advisories. Each CVE links to its full detail page with vendor advisories, patches, fixed versions, and remediation guidance.
CVEs affecting js-yamlpage 1 of 1
- CVE-2013-4660MEDIUMCVSS v2 6.8EG 6.8fixed in 2.0.52013-06-28
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.
- CVE-2025-64718MEDIUMCVSS 5.3EG 5.3fixed in 4.1.1 or 3.14.2, by version range2025-11-13
js-yaml is a JavaScript YAML parser and dumper. In js-yaml before 4.1.1 and 3.14.2, it's possible for an attacker to modify the prototype of the result of a parsed yaml document via prototype pollution (`__proto__`). All users who parse un…
- CVE-2026-53550MEDIUMCVSS 5.3EG 5.3fixed in 4.2.0 or 3.15.0, by version range2026-06-15
js-yaml is a JavaScript YAML parser and dumper. Prior to 4.2.0 and 3.15.0, a crafted YAML document can trigger algorithmic CPU exhaustion in js-yaml merge-key processing (<<) by repeating the same alias many times in a merge sequence. This…
- CVE-2026-59868HIGHCVSS 7.5EG 7.5fixed in 5.2.02026-07-08
js-yaml is a JavaScript YAML parser and dumper. From 5.0.0 before 5.2.0, when merge keys are enabled, js-yaml can spend quadratic CPU time parsing a document whose size grows only linearly when a chain of mappings uses merge keys where eac…
- CVE-2026-59869HIGHCVSS 7.5EG 7.5fixed in 3.15.0 or 4.3.0, by version range2026-07-08
js-yaml is a JavaScript YAML parser and dumper. From 3.0.0 before 3.15.0 and from 4.0.0 before 4.3.0, js-yaml can spend quadratic CPU time parsing a document whose size grows only linearly when a chain of mappings uses merge keys where eac…
- CVE-2026-59870HIGHCVSS 7.5EG 7.5fixed in 5.2.12026-07-08
js-yaml is a JavaScript YAML parser and dumper. Prior to 3.15.1, 4.3.1, and 5.2.1, YAML11_SCHEMA support for the !!omap tag in src/tag/sequence/omap.ts uses omapTag.addItem() to perform a linear duplicate-key scan on every insertion, causi…
- CVE-2026-73643HIGHCVSS 7.5EG 7.5fixed in 5.2.22026-07-24
js-yaml is a JavaScript YAML parser and dumper. From 5.0.0 until 5.2.2, parsing a small YAML document can take exponential time when an application calls load() or loadAll() on untrusted input. In src/parser/parser.ts, readFlowCollection u…
- CVE-2026-84375HIGHCVSS 7.5EG 7.5fixed in 4.3.2 or 3.15.2, by version range2026-09-01
js-yaml is a JavaScript YAML parser and dumper. From 3.0.0 until 3.15.2, 4.3.2, and 5.4.1, maxTotalMergeKeys in lib/js-yaml/loader.js and lib/loader.js does not count empty mapping sources while processing the merge key <<. An attacker can…
Check whether js-yaml is used in your infrastructure
EchelonGraph scans your cloud and SBOMs to map every package to your actual deployments. See blast radius for js-yaml CVEs against the assets you own.
Book a Demo →