CVE-2026-40345
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
deepmerge-tsnpm | < 8.0.0 | 8.0.0 |
Affected products
13- osv-coords12 versionspkg:apk/chainguard/langfuse-fips-3pkg:apk/wolfi/langfuse-3pkg:apk/chainguard/langfuse-fips-4-workerpkg:apk/chainguard/authentik-2026.5pkg:apk/chainguard/authentik-fips-2026.5pkg:apk/chainguard/langfuse-3pkg:apk/chainguard/langfuse-3-workerpkg:apk/chainguard/langfuse-fips-3-workerpkg:apk/chainguard/langfuse-fips-4pkg:apk/wolfi/langfuse-3-workerpkg:apk/chainguard/langfuse-4-workerpkg:apk/chainguard/langfuse-4
< 3.225.5-r0+ 11 more
- (no CPE)range: < 3.225.5-r0
- (no CPE)range: < 3.225.5-r0
- (no CPE)range: < 4.16.0-r0
- (no CPE)range: < 2026.5.6-r15
- (no CPE)range: < 2026.5.6-r16
- (no CPE)range: < 3.225.5-r0
- (no CPE)range: < 3.225.5-r0
- (no CPE)range: < 3.225.5-r0
- (no CPE)range: < 4.16.0-r0
- (no CPE)range: < 3.225.5-r0
- (no CPE)range: < 4.16.0-r0
- (no CPE)range: < 4.16.0-r0
- Range: <8.0.0
Patches
Vulnerability mechanics
References
5- github.com/advisories/GHSA-ggr8-5vv4-36mxghsaADVISORY
- github.com/RebeccaStevens/deepmerge-ts/releases/tag/v8.0.0nvdWEB
- github.com/RebeccaStevens/deepmerge-ts/security/advisories/GHSA-ggr8-5vv4-36mxnvdWEB
- github.com/RebeccaStevens/deepmerge-ts/commit/398492757b3f22a0d7d89b09ce1ae9cd32806c9anvd
- github.com/RebeccaStevens/deepmerge-ts/pull/707nvd
News mentions
0No linked articles in our index yet.