CVE-2026-59868

NameCVE-2026-59868
Descriptionjs-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 each mapping merges the previous one. This issue is fixed in version 5.2.0.
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-g796-fgmg-93mv
Fixed by: https://github.com/nodeca/js-yaml/commit/3105455b81dee69e0fd36e09ac0b2ccfdb54adc1 (5.2.0)

Search for package or bug name: Reporting problems