Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. deepmerge-ts
  4. ›
  5. CVE-2026-40345

CVE-2026-40345: DeepmergeTS has stack exhaustion when merging recursive object graphs

August 17, 2026

deepmerge() and deepmergeInto() can be crashed with a crafted recursive object graph. When both merged values contain self-references at the same property path, the library recurses until Node throws RangeError: Maximum call stack size exceeded.

References

  • github.com/RebeccaStevens/deepmerge-ts/releases/tag/v8.0.0
  • github.com/RebeccaStevens/deepmerge-ts/security/advisories/GHSA-ggr8-5vv4-36mx
  • github.com/advisories/GHSA-ggr8-5vv4-36mx
  • nvd.nist.gov/vuln/detail/CVE-2026-40345

Code Behaviors & Features

Detect and mitigate CVE-2026-40345 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 8.0.0

Fixed versions

  • 8.0.0

Solution

Upgrade to version 8.0.0 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-674: Uncontrolled Recursion

Source file

npm/deepmerge-ts/CVE-2026-40345.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:11 +0000.