{"answers":{"affected":"2 open source packages ship an affected version, including deepmerge-ts.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-40345 exists.","fix":"Upgrade deepmerge-ts to 8.0.0 or later.","what":"CVE-2026-40345 is a high-severity denial of service vulnerability in RebeccaStevens deepmerge-ts, published on 20 Aug 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-40345 and fix it if it is affected.\n\nWhat it is: CVE-2026-40345 is a high-severity denial of service vulnerability in RebeccaStevens deepmerge-ts, published on 20 Aug 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-40345 exists.\n\nAffected packages and fixed versions:\n- deepmerge-ts (npm): affected all versions; fixed in 8.0.0\n- deepmerge-ts (npm): affected all versions; fixed in 8.0.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-40345/ (Markdown: https://insights.sbomify.com/CVE-2026-40345/index.md)","id":"CVE-2026-40345","markdown":"https://insights.sbomify.com/CVE-2026-40345/index.md","name":"CVE-2026-40345","record":{"aliases":["CLEANSTART-2026-ML15245","CLSA-2026-1790420043","CLSA-2026-1790609747","CLSA-2026-1790870726","CLSA-2026-1792476546","ECHO-097f-3757-c05a","GHSA-ggr8-5vv4-36mx"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"yes","non_default_config":false,"product_category":"TypeScript deep merge library","requires_auth":"none","summary":"Attackers can crash applications by supplying recursive object graphs to deepmerge-ts, causing stack exhaustion and process termination.","user_interaction":"not_required","vuln_class":"denial_of_service"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":8.2,"severity":"high","source":"cna","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","version":"4.0"},"cwes":[{"id":"CWE-674","name":"Uncontrolled Recursion"}],"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.","ecosystems":["npm"],"exploits":{"exploitdb":0,"first_seen":"2026-08-17","github_poc":1,"max_poc_stars":6,"metasploit":0,"nuclei":0,"refs":[{"date":"2026-08-17T14:06:41Z","kind":"github_poc","ref":"https://github.com/Jvr2022/CVE-2026-40345","stars":6,"title":"A poc and write-up for CVE-2026-40345"}],"tier":"weaponised"},"has_fix":true,"headline":"deepmerge-ts: Stack exhaustion when merging recursive object graphs","id":"CVE-2026-40345","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"npm","product":null,"products":[],"type":"denial_of_service","year":"2026"},"n_packages":2,"n_references":4,"next":{"headline":"NocoBase has SSRF in Workflow HTTP Request and Custom Request Plugins","id":"CVE-2026-40346"},"packages":[{"ecosystem":"npm","fixed":["8.0.0"],"introduced":["0"],"last_affected":[],"package":"deepmerge-ts","purl":null,"source":"GHSA-ggr8-5vv4-36mx"},{"ecosystem":"npm","fixed":["8.0.0"],"introduced":["0"],"last_affected":[],"package":"deepmerge-ts","purl":"pkg:npm/deepmerge-ts","source":"GHSA-ggr8-5vv4-36mx"}],"prev":{"headline":"MinIO has an Unauthenticated Object Write via Missing Signature Verification in Unsigned-Trailer Uploads","id":"CVE-2026-40344"},"products":["deepmerge-ts"],"published":"2026-08-20","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-08-21","vendors":["RebeccaStevens"]},"summary":"Attackers can crash applications by supplying recursive object graphs to deepmerge-ts, causing stack exhaustion and process termination.","url":"https://insights.sbomify.com/CVE-2026-40345/"}