Skip to content
OpenAdvisories
High · 7.5 CVE-2026-59870 EUVD-2026-42300GHSA-724g-mxrg-4qvm

js-yaml quadratic-complexity denial of service via YAML11_SCHEMA !!omap parsing

Published Jul 8, 2026 · Updated Oct 6, 2026 · Assigned by GitHub_M

Description

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.

Affected products

VendorProductAffectedFixed
nodeca js-yaml >= 5.0.0, < 5.2.1, >= 3.0.0, < 3.15.1, >= 4.0.0, < 4.3.1 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu 26.10 node-js-yaml No fix yet —
Ubuntu 26.04 LTS node-js-yaml No fix yet —
Ubuntu 25.10 node-js-yaml No fix yet —
Ubuntu 24.04 LTS node-js-yaml No fix yet —
Ubuntu 22.04 LTS node-js-yaml No fix yet —
Show 2 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS node-js-yaml No fix yet —
Ubuntu 18.04 LTS node-js-yaml No fix yet —
ReleasePackageFixed inAdvisory
Red Hat Hardened Images 1 dotnet8.0 +4 8.0.128-1.hum1 RHSA-2026:26994
Red Hat Hardened Images 1 nodejs20 +6 20.20.2-1.hum1 RHSA-2026:9455
Red Hat Hardened Images 1 nodejs20-npm 10.8.2-1.20.20.2.1.hum1 RHSA-2026:9455
Red Hat Hardened Images 1 nodejs22 +6 1:22.23.1-2.hum1 RHSA-2026:35272
Red Hat Hardened Images 1 nodejs22-npm 1:10.9.8-1.22.23.1.2.hum1 RHSA-2026:35272
Red Hat Hardened Images 1 nodejs24 +6 1:24.18.0-0.2.hum1 RHSA-2026:34478
Red Hat Hardened Images 1 nodejs24-npm 1:11.16.0-1.24.18.0.0.2.hum1 RHSA-2026:34478
Red Hat Hardened Images 1 nodejs25 +6 25.9.0-1.1.hum1 RHSA-2026:7378
Red Hat Hardened Images 1 nodejs25-npm 11.12.1-1.25.9.0.1.1.hum1 RHSA-2026:7378
Red Hat Hardened Images 1 nodejs26 +6 1:26.4.0-1.3.hum1 RHSA-2026:33866
Red Hat Hardened Images 1 nodejs26-npm 1:11.17.0-1.26.4.0.1.3.hum1 RHSA-2026:33866
Red Hat Hardened Images 1 rust +18 1.96.1-1.hum1 RHSA-2026:34975
Red Hat Hardened Images 1 v8-13.6-devel 3:13.6.233.17-1.24.18.0.0.2.hum1 RHSA-2026:34478
Red Hat Hardened Images 1 v8-14.6-devel 3:14.6.202.34-1.26.4.0.1.3.hum1 RHSA-2026:33866
Red Hat Hardened Images 1 yarnpkg 1.22.22-18.1.hum1 RHSA-2026:7655

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling renovate 44.3.2-r0 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm js-yaml >= 5.0.0, < 5.2.1 5.2.1 GHSA-724g-mxrg-4qvm

Advisories 9

References