CVE-2026-40345

Source
https://cve.org/CVERecord?id=CVE-2026-40345
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-40345.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-40345
Aliases
Related
Published
2026-08-20T16:33:52.702Z
Modified
2026-08-23T03:42:37.391414149Z
Severity
  • 8.2 (High) CVSS_V4 - 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 CVSS Calculator
Summary
deepmerge-ts: Stack exhaustion when merging recursive object graphs
Details

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.

Database specific
{
    "cwe_ids": [
        "CWE-674"
    ],
    "cna_assigner": "GitHub_M",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40345.json"
}
References

Affected packages

Git / github.com/rebeccastevens/deepmerge-ts

Affected ranges

Type
GIT
Repo
https://github.com/rebeccastevens/deepmerge-ts
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Fixed
Database specific
Show details
{
    "source": [
        "AFFECTED_FIELD",
        "REFERENCES"
    ],
    "extracted_events": [
        {
            "introduced": "0"
        },
        {
            "fixed": "8.0.0"
        }
    ]
}

Affected versions

v1.*
v1.0.0
v1.0.1
v1.1.0
v1.1.1
v1.1.2
v1.1.3
v1.1.4
v1.1.5
v1.1.6
v1.1.7
v2.*
v2.0.0
v2.0.1
v3.*
v3.0.0
v3.0.1
v4.*
v4.0.0
v4.0.1
v4.0.2
v4.0.3
v4.0.4
v4.1.0
v4.2.0
v4.2.1
v4.2.2
v4.3.0
v5.*
v5.0.0
v5.1.0
v6.*
v6.0.0
v6.0.1
v6.0.2
v6.0.3
v7.*
v7.0.0
v7.0.1
v7.0.2
v7.0.3
v7.1.0
v7.1.1
v7.1.2
v7.1.3
v7.1.4
v7.1.5
v7.1.6

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-40345.json"