MediumGHSA-2pr6-76vf-7546
Denial of Service in js-yaml
Published 5 Jun 2019 · Updated 4 Aug 2021
Is your project on an affected js-yaml?
Look after several JavaScript apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
js-yamlnpm
- Affected
- <3.13.0
- Fixed in
- 3.13.0
Update to the fixed version for your release line, for example:
npm install js-yaml@3.13.0Details
Versions of js-yaml prior to 3.13.0 are vulnerable to Denial of Service. By parsing a carefully-crafted YAML file, the node process stalls and may exhaust system resources leading to a Denial of Service.
Recommendation
Upgrade to version 3.13.0.
Is GHSA-2pr6-76vf-7546 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected js-yaml, and gives you the command that fixes it.
More advisories for js-yaml
- MediumGHSA-r3ph-w7gj-g6xmjs-yaml: maxTotalMergeKeys does not limit CPU use for empty merge sources · 29 Sept 2026
- HighCVE-2026-84375js-yaml: maxTotalMergeKeys does not limit CPU use for empty merge sources · 8 Sept 2026
- HighGHSA-5p4m-2wfm-xmqjJS-YAML: Quadratic CPU consumption in !!omap resolution (3.x and 4.x) — CVE-2026-59870 fix not backported · 6 Aug 2026
- HighCVE-2026-73643js-yaml: Exponential parsing time in flow collections leads to denial of service · 24 Jul 2026
- MediumCVE-2026-59868js-yaml: YAML merge-key chains can force quadratic CPU consumption in js-yaml · 20 Jul 2026
- HighCVE-2026-59869js-yaml: YAML merge-key chains can force quadratic CPU consumption · 20 Jul 2026
References
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.