CVE-2026-40345: deepmerge-ts: Stack exhaustion when merging recursive object graphs
CVE-2026-40345 key facts
- CISA KEV
- Not listed (catalogue checked )
- Highest advisory rating
- Critical
- CVSS vector
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· base score 8.2, scored by GitHub_MAttack vector: network. Attack complexity: low. Attack requirements: present. Privileges required: none. User interaction: none. Confidentiality impact on the vulnerable system: none. Integrity impact on the vulnerable system: none. Availability impact on the vulnerable system: high. Confidentiality impact on subsequent systems: none. Integrity impact on subsequent systems: none. Availability impact on subsequent systems: none.- Weakness
- CWE-674: Uncontrolled Recursion
- EPSS
- 0.52% chance of exploitation in the next 30 days (45th percentile). FIRST EPSS, .
- CISA SSVC
- Exploitation: proof of concept exists. Automatable: no. Technical impact: partial. CISA, .
- Vendor advisories
- 1 from Veeam
- Assigned by
- GitHub_M (CNA)
- CVE record published
- Listed by VulniPulse
- Record changed
Ratings, versions and fixes are quoted from the vendor advisories that cover only CVE-2026-40345; each belongs to its advisory, not to every product listed. How records are collected and checked.
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.
Text from the CVE.org record (GitHub_M).
Vendor advisories for CVE-2026-40345
Veeam
1 advisory- Advisory severityCritical
Critical [CVE-2020-14040 +123] List of Security Fixes and Improvements in Veeam Kasten for Kubernetes
KB4825Source published
This bulletin covers 124 CVEs. The products, versions, score and guidance below describe the bulletin; check its source for applicability to this specific CVE.
List of Security Fixes and Improvements in Veeam Kasten for Kubernetes KB ID: 4825 Product: Kasten K10 by Veeam | 3 | 5 | 5.5 | 6 | 6.5 Published: 2026-03-02 Last Modified: Purpose This article aims to provide our customers' security and compliance teams with detailed information on security improvements. - Veeam Kasten for Kubernetes — Release Notes - Improved the protection of credentials used by block mode data mover operations and file recovery sessions. - Hardened the FileRecoverySession CR and file recovery pod with stricter input validation, restrictive mount options and a read-only SFTP service. - Passwords in proxy URLs are now masked in logs and the support bundle. - The multi-cluster proxy no longer forwards the caller's session and authentication credentials to secondary…
- Affected products in this advisory
- Veeam Kasten for Kubernetes
- Source-reported affected versions
- Affected-version details not available in this record.
- Source-reported fixed versions
- 8.5.10
- 8.5.5
- 1.26.1
- 8.5.3
20 more entries in the full advisory.
- Mitigation guidance
- List of Security Fixes and Improvements in Veeam Kasten for Kubernetes KB ID: 4825 Product: Veeam Kasten for Kubernetes | 7 | 7.5 | 8 | 8.5 | 9 Kasten K10 by Veeam | 3 | 5 | 5.5 | 6 | 6.5 Published: 2026-03-02 Last Modified: 2026-11-16 Purpose This article describes all security-related fixes and improvements introduced in each release or update of Veeam Kasten for Kubernetes.
- It is recommended to upgrade Veeam Kasten and to refresh the token by manually logging out.
- Mitigation: Configure a bucket-level Default Object Lock retention so the object store stamps new objects at write time, or upgrade to Kasten 8.5.10.
- Veeam Kasten for Kubernetes 8.5.5 Upgrade to Go 1.26.1 to address CVE-2026-25679 and CVE-2026-27142 Updated the UBI base image to address CVE-2026-4111 Veeam Kasten for Kubernetes 8.5.3 Upgrade to Go 1.25.7 to address CVE-2025-61732.
4 more entries in the full advisory.
- Workarounds
- Improved the protection of credentials used by block mode data mover operations and file recovery sessions.
- Veeam Kasten for Kubernetes 8.0.14 Improved logging security for specific block mode datamover upload Pod invocations.
References
- CVE-2026-40345 recordCVE.org
- CVE-2026-40345 detailNVD
- https://github.com/RebeccaStevens/deepmerge-ts/security/advisories/GHSA-ggr8-5vv4-36mxx_refsource_confirm
- https://github.com/RebeccaStevens/deepmerge-ts/pull/707x_refsource_misc
- https://github.com/RebeccaStevens/deepmerge-ts/commit/398492757b3f22a0d7d89b09ce1ae9cd32806c9ax_refsource_misc
- https://github.com/RebeccaStevens/deepmerge-ts/releases/tag/v8.0.0x_refsource_misc
Timeline
- First vendor advisory listed by VulniPulse
- CVE record published
- CVE record last updated
More Veeam advisories
CVE-2026-113425Nov 20, 2026NGINX2ROOT Impact StatementCVE-2026-98432Nov 6, 2026Impact StatementCVE-2023-22793Oct 29, 2026Vulnerabilities Resolved in Veeam Management Pack for Microsoft System Center 13.1CVE-2025-64394Oct 27, 2026Vulnerabilities Resolved in Veeam Backup for Microsoft 365 8.6CVE-2026-105477Oct 27, 2026Release Information for Veeam Backup & Replication 13 and UpdatesKB4857Oct 27, 2026List of Security Fixes and Improvements in Veeam Recovery Orchestrator
Get an email when Veeam publishes the next one.
See Veeam's last 90 days first. Live alerts for one product are free for life; every vendor is US$15 a month after a free month.