CVE catalog

CVE-2026-59868

js-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 chai

[CVE catalog]

Severity
High · CVSS 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Published
Source
[NVD] · [CVE record]
EPSS
0.64% · Oct 25, 2026

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

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debiannode-js-yamlsid4.3.2+~4.0.9-1not affected
Debiannode-js-yamlforky4.3.2+~4.0.9-1not affected
Debiannode-js-yamltrixie4.1.0+dfsg+~4.0.5-7not affected
Debiannode-js-yamlbookworm4.1.0+dfsg+~4.0.5-7not affected
Npmjs-yamlNot reported5.2.0fixed
Cpejs-yamlNot reported5.2.0fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiannode-js-yamlsourcesidNot affectedunimportantNot reportedNot reported
Debiannode-js-yamlsourceforkyNot affectedunimportantNot reportedNot reported
Debiannode-js-yamlsourcetrixieNot affectedunimportantNot reportedNot reported
Debiannode-js-yamlsourcebookwormNot affectedunimportantNot reportedNot reported
Npmjs-yamlnpmNot reported5.2.0Not reportedNot reportedNot reported
Cpejs-yamlcpeNot reported5.2.0Not reportedNVD-CVE-2026-59868Not reported

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [node-js-yaml]Not affected
    Details (2)
    • 4.1.0+dfsg+~4.0.5-7 · all · bookworm

      Not affected

      nvd · node-js-yaml · debian · bookworm

    • 4.1.0+dfsg+~4.0.5-7 · all · bookworm

      Not affected

      nvd · node-js-yaml · debian · bookworm

Observed:

References