cve.bz

CVE-2026-59870 nodeca js-yaml: Inefficient Algorithmic Complexity

7.5 highExploit referenceEPSS 0.7%Fix available

High (7.5) in nodeca js-yaml. EPSS 0.7% estimated probability of exploitation activity in the next 30 days. Fixed in js-yaml 5.2.1.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
0.7% (unchanged from 0.7% a week ago; 0.7% 30 days ago) estimated probability of exploitation activity in the next 30 days; 56th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: partial, assessed 2026-07-08. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-770 Allocation of Resources Without Limits or Throttling
CWE-407 Inefficient Algorithmic Complexity
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-59870 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-59870?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-59870?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-59870 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
nodeca:js-yamlfrom 5.0.0 before 5.2.1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-724g-mxrg-4qvmnpmjs-yaml>=5.0.0 <5.2.15.2.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Ubuntu18.04:LTS, 20.04:LTS, 22.04:LTS and 4 morenode-js-yamlno fix listedUBUNTU-CVE-2026-59870
Red Hathummingbird:1dotnet8.0, dotnet-sdk-8.0, dotnet-sdk-dbg-8.0 and 2 more0:8.0.128-1.hum1RHSA-2026:26994
Red Hathummingbird:1nodejs20, nodejs20-bin, nodejs20-docs and 4 more0:20.20.2-1.hum1RHSA-2026:9455
Red Hathummingbird:1nodejs20-npm0:10.8.2-1.20.20.2.1.hum1RHSA-2026:9455
Red Hathummingbird:1nodejs22, nodejs22-bin, nodejs22-docs and 4 more1:22.23.1-2.hum1RHSA-2026:35272
Red Hathummingbird:1nodejs22-npm1:10.9.8-1.22.23.1.2.hum1RHSA-2026:35272
Red Hathummingbird:1nodejs24, nodejs24-bin, nodejs24-docs and 4 more1:24.18.0-0.2.hum1RHSA-2026:34478
Red Hathummingbird:1nodejs24-npm1:11.16.0-1.24.18.0.0.2.hum1RHSA-2026:34478
Red Hathummingbird:1nodejs25, nodejs25-bin, nodejs25-docs and 4 more0:25.9.0-1.1.hum1RHSA-2026:7378
Red Hathummingbird:1nodejs25-npm0:11.12.1-1.25.9.0.1.1.hum1RHSA-2026:7378
Red Hathummingbird:1nodejs26, nodejs26-bin, nodejs26-docs and 4 more1:26.4.0-1.3.hum1RHSA-2026:33866
Red Hathummingbird:1nodejs26-npm1:11.17.0-1.26.4.0.1.3.hum1RHSA-2026:33866
Red Hathummingbird:1v8-13.6-devel3:13.6.233.17-1.24.18.0.0.2.hum1RHSA-2026:34478
2 more for Red Hat in the JSON and on Red Hat's page.

From the distributions' data via OSV.dev: Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Ubuntu · Red Hat.

Red Hat

Red Hat rates this Important.

Red Hat's statement

js-yaml versions 5.0.0 through 5.2.0 are vulnerable to a denial of service via the omapTag.addItem() O(n^2) duplicate-key scan when parsing crafted YAML ordered-map documents with the YAML11_SCHEMA. This affects yaml.load() calls using that schema. Fixed in 5.2.1.

Red Hat's mitigation

Avoid using the YAML11_SCHEMA when parsing untrusted YAML input, or upgrade to js-yaml 5.2.1 or later. Applications using the default schema (CORE_SCHEMA) are not affected.

ProductPackageStateAdvisory
Red Hat Hardened Imagesdotnet8-0-main-8.0.128-1.hum1Fixed 2026-06-18RHSA-2026:26994
Red Hat Hardened Imagesnodejs26-main-11.17.0-1.26.4.0.1.3.hum1Fixed 2026-06-30RHSA-2026:33866
Red Hat Hardened Imagesnodejs26-main-26.4.0-1.3.hum1Fixed 2026-06-30RHSA-2026:33866
Red Hat Hardened Imagesnodejs24-main-11.16.0-1.24.18.0.0.2.hum1Fixed 2026-07-01RHSA-2026:34478
Red Hat Hardened Imagesnodejs24-main-24.18.0-0.2.hum1Fixed 2026-07-01RHSA-2026:34478
Red Hat Hardened Imagesrust-main-1.96.1-1.hum1Fixed 2026-07-02RHSA-2026:34975
Red Hat Hardened Imagesnodejs22-main-10.9.8-1.22.23.1.2.hum1Fixed 2026-07-03RHSA-2026:35272
Red Hat Hardened Imagesnodejs22-main-22.23.1-2.hum1Fixed 2026-07-03RHSA-2026:35272
Red Hat Hardened Imagesnodejs25-main-11.12.1-1.25.9.0.1.1.hum1Fixed 2026-04-10RHSA-2026:7378
Red Hat Hardened Imagesnodejs25-main-25.9.0-1.1.hum1Fixed 2026-04-10RHSA-2026:7378
Cryostat 4cryostat/cryostat-openshift-console-plugin-rhel9Not affected
Cryostat 4cryostat-openshift-console-plugin-npmNot affected
Cryostat 4grafana-infinity-datasource-npmNot affected
Cryostat 4js-yamlNot affected
Gatekeeper 3gatekeeper/gatekeeper-rhel9Not affected
Migration Toolkit for Applications 8mta/mta-ui-rhel8Not affected
Migration Toolkit for Applications 8mta/mta-ui-rhel9Not affected
Migration Toolkit for Containersrhmtc/openshift-migration-ui-rhel8Not affected
Multicluster Engine for Kubernetesmulticluster-engine/console-mce-rhel9Not affected
Network Observability Operatornetwork-observability/network-observability-console-plugin-pf5-rhel9Not affected
120 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-59870.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-770 (20).

References

Check your stackJSON