CVE-2026-59870
js-yaml is a JavaScript YAML parser and dumper. From 5.0.0 before …
js-yaml is a JavaScript YAML parser and dumper. From 5.0.0 before 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, causing O(n^2) CPU consumption when yaml.load() parses a crafted ordered-map document. This issue is fixed in version 5.2.1.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/nodeca/js-yaml/commit/39f3211a2f01b3c6982710cf21434ab7060acefe
- github.com/nodeca/js-yaml/releases/tag/5.2.1
- github.com/nodeca/js-yaml/security/advisories/GHSA-724g-mxrg-4qvm
- nvd.nist.gov/vuln/detail/CVE-2026-59870
- github.com/advisories/GHSA-724g-mxrg-4qvm
- github.com/nodeca/js-yaml/commit/22a8071ef032117bc6249c330b240ac3aa2d3ded
- github.com/nodeca/js-yaml/commit/c3cc4b0bb9ddb9af2dd9b61e0d56f5ce7983cd4a
- github.com/nodeca/js-yaml/releases/tag/3.15.1
- nvd.nist.gov/vuln/detail/CVE-2026-59870
- cve.org/CVERecord?id=CVE-2026-59870
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.