CVE-2026-40345

High

Description

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.

SeverityHigh
CVSS8.2
Exploit probability—
ProductDeepmerge-ts
PublishedAug 20, 2026
First seenAug 20, 2026
Weakness typeCWE-674CWE-674

How to fix

Update
  • deepmerge-ts8.0.0 or later

Affected products

ProductAffected versionsFixed in
deepmerge-tsnpmv < 8.0.08.0.0

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.