CVE catalog

CVE-2026-59870

js-yaml is a JavaScript YAML parser and dumper. Prior to 3.15.1, 4.3.1, and 5.2.1, YAML11_SCHEMA support for the !!omap tag in src/tag/sequence/omap.ts uses omapTag.addItem() to perform a linear dupli

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

js-yaml is a JavaScript YAML parser and dumper. Prior to 3.15.1, 4.3.1, and 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. In v3 and v4, !!omap is active and exploitable by default. v5 doesn't use !!omap by default, and the chances of activating it are very low.This issue is fixed in 3.15.1, 4.3.1, and 5.2.1.

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
Cpejs-yamlNot reported5.2.1fixed
Npmjs-yamlNot reported5.2.1fixed
Cpejs-yamlNot reported5.2.1fixed

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
Cpejs-yamlcpeNot reported5.2.1Not reportedNot reportedNot reported
Npmjs-yamlnpmNot reported5.2.1Not reportedNot reportedNot reported
Cpejs-yamlcpeNot reported5.2.1Not reportedNVD-CVE-2026-59870Not 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