cve.bz

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

7.5 highExploit referenceEPSS 0.6%Fix available

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

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

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.6% (unchanged from 0.6% a week ago; 0.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 52nd 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-09. 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
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2026-59868 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-59868?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-59868?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-59868 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.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-g796-fgmg-93mvnpmjs-yaml>=5.0.0 <5.2.05.2.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Ubuntu18.04:LTS, 20.04:LTS, 22.04:LTS and 4 morenode-js-yamlno fix listedUBUNTU-CVE-2026-59868
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.1.x are vulnerable to a denial of service. When merge keys ('<<') are enabled during YAML parsing, js-yaml re-merges the accumulated mapping into each subsequent mapping in a chain. A document consisting of a linear chain of mappings that each merge the previous one causes quadratic (O(n^2)) CPU consumption relative to input size, even though the document size itself grows only linearly. This can be triggered via yaml.load() on untrusted YAML input that uses merge keys. Fixed in js-yaml 5.2.0.

Red Hat's mitigation

Upgrade to js-yaml 5.2.0 or later. Where an immediate upgrade is not possible, avoid parsing untrusted YAML documents that use merge keys ('<<'), or apply size and time limits when parsing untrusted YAML input.

ProductPackageStateAdvisory
Red Hat Discovery 2discovery/discovery-ui-rhel9:1788206196Fixed 2026-08-31RHSA-2026:61783
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
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-59868.

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