VDB

CVE-2026-40345

CVE-2026-40345 PUBLISHED CVSS 8.2 HIGH

deepmerge-ts: Stack exhaustion when merging recursive object graphs

Reported by github_m · Published August 20, 2026

deepmerge-ts is a typescript library providing functionality to deep merging of javascript objects. Prior to 8.0.0, the deepmerge, deepmergeCustom, deepmergeInto, and deepmergeIntoCustom APIs do not track visited objects or object pairs when recursively merging records. When two input values contain self-references at the same property path, the merge logic repeatedly revisits the same pair until Node.js raises RangeError: Maximum call stack size exceeded. Applications that merge attacker-controlled recursive object graphs can synchronously crash the affected process or cause repeated worker restarts. Plain JSON input alone cannot create the recursive graph required to trigger the issue. This issue is fixed in version 8.0.0.

Risk scores

CVSS 4.0
8.2
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N

Affected products

VendorProductVersions
RebeccaStevensdeepmerge-ts< 8.0.0
RebeccaStevensdeepmerge-ts0
chainguardlangfuse-40
npmdeepmerge-ts0
chainguardlangfuse-fips-40
wolfilangfuse-30, 0
chainguardlangfuse-fips-30
chainguardlangfuse-30, 0
chainguardauthentik-fips-2026.50
chainguardauthentik-2026.50

Timeline

  • Aug 17, 2026 CVE Published
  • Aug 21, 2026 CVE Updated
  • Aug 22, 2026 Coalition ESS Score
  • Aug 24, 2026 EPSS Score (24 in total, the first dated here)
  • Sep 3, 2026 Security Advisory

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2026-40345
vulnetix vdb fixes CVE-2026-40345

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2026-40345/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›