MediumGHSA-2pr6-76vf-7546

Denial of Service in js-yaml

Published 5 Jun 2019 · Updated 4 Aug 2021

Affected package

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.0

Details

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.

References

Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.