CVE-2026-40345
CVE-2026-40345 · deepmerge-ts: Stack exhaustion when merging recursive object graphs
Cette page présente des faits issus de sources publiques. Consultez l’avis original avant toute mise à jour.
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.
CVSS 8.2 · Élevée · EPSS 0,5% · Correctif disponible
- Publication
- Mise à jour
Pile logicielle: node
Produits et versions concernés
deepmerge-ts
- Versions du logiciel
- < 8.0.0: Concernée
Aucun correctif publié
deepmerge-ts npm
- Plages de versions concernées
- SEMVER: < 8.0.0
Mettez à jour vers 8.0.0
Sources originales
- https://github.com/RebeccaStevens/deepmerge-ts/security/advisories/GHSA-ggr8-5vv4-36mx
- https://github.com/RebeccaStevens/deepmerge-ts/pull/707
- https://github.com/RebeccaStevens/deepmerge-ts/commit/398492757b3f22a0d7d89b09ce1ae9cd32806c9a
- https://github.com/RebeccaStevens/deepmerge-ts/releases/tag/v8.0.0
- https://nvd.nist.gov/vuln/detail/CVE-2026-40345