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

CVE-2026-12644: ts-deepmerge: Prototype Method Override leads to DoS

June 19, 2026

Versions of the package ts-deepmerge before 8.0.0 are vulnerable to Uncaught Exception due to the improper handling of built-in Object.prototype methods (such as toString, valueOf). When user-controlled input contains these keys with non-function values, the resulting merged object becomes broken — any string context operation throws a TypeError, crashing the application.

References

  • gist.github.com/igorg1312/775fa00114c4d47df6ae0551779ab407
  • github.com/advisories/GHSA-87mf-gv2c-c62c
  • github.com/voodoocreation/ts-deepmerge/commit/305a05831a462fb2c353d3cbbff55a0733286f8c
  • nvd.nist.gov/vuln/detail/CVE-2026-12644
  • security.snyk.io/vuln/SNYK-JS-TSDEEPMERGE-17339141

Code Behaviors & Features

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

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 8.0.0

Fixed versions

  • 8.0.0

Solution

Upgrade to version 8.0.0 or above.

Impact 5.3 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-248: Uncaught Exception

Source file

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

Spotted a mistake? Edit the file on GitLab.

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

Page generated Tue, 23 Jun 2026 12:22:58 +0000.