Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. string-math
  4. ›
  5. CVE-2025-45143

CVE-2025-45143: string-math's string-math.js vulnerability can cause Regex Denial of Service (ReDoS)

June 30, 2025

string-math v1.2.2 was discovered to contain a Regex Denial of Service (ReDoS) which is exploited via a crafted input.

References

  • gist.github.com/6en6ar/361608bccedb808061359481fe2f1b39
  • github.com/advisories/GHSA-994j-5c83-r424
  • github.com/devrafalko/string-math
  • github.com/devrafalko/string-math/blob/master/string-math.js
  • nvd.nist.gov/vuln/detail/CVE-2025-45143
  • www.npmjs.com/package/string-math%2C

Code Behaviors & Features

Detect and mitigate CVE-2025-45143 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 up to 1.2.2

Solution

Unfortunately, there is no solution available yet.

Impact 7 HIGH

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

Learn more about CVSS

Weakness

  • CWE-1333: Inefficient Regular Expression Complexity

Source file

npm/string-math/CVE-2025-45143.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:05 +0000.