CVE catalog

CVE-2026-73643

js-yaml is a JavaScript YAML parser and dumper. From 5.0.0 until 5.2.2, parsing a small YAML document can take exponential time when an application calls load() or loadAll() on untrusted input. In src

[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.49% · Oct 25, 2026

js-yaml is a JavaScript YAML parser and dumper. From 5.0.0 until 5.2.2, parsing a small YAML document can take exponential time when an application calls load() or loadAll() on untrusted input. In src/parser/parser.ts, readFlowCollection uses restoreState and calls parseNode a second time when a flow-sequence entry is recognized as a key: value pair. If the key is a nested flow sequence of the same shape, every level is parsed twice, causing O(2^n) work and allowing an input under 200 bytes to keep one CPU busy for minutes, block the Node.js event loop, and stall the process. No anchors, aliases, merges, tags, or nondefault options are required. This issue is fixed in version 5.2.2.

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.2fixed

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.2Not reportedGHSA-PM4M-PH32-GHV5Not 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