CVE-2026-59870

NameCVE-2026-59870
Descriptionjs-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.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
node-js-yaml (PTS)bullseye3.14.1+dfsg+~3.12.6-2fixed
bookworm, trixie4.1.0+dfsg+~4.0.5-7fixed
forky, sid4.2.0+~4.0.9-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
node-js-yamlsource(unstable)(not affected)

Notes

- node-js-yaml <not-affected> (Vulnerable code not present)
https://github.com/nodeca/js-yaml/security/advisories/GHSA-724g-mxrg-4qvm
Fixed by: https://github.com/nodeca/js-yaml/commit/39f3211a2f01b3c6982710cf21434ab7060acefe (5.2.1)

Search for package or bug name: Reporting problems