high7.0
CVE-2025-45143
string-math's string-math.js vulnerability can cause Regex Denial of Service (ReDoS)
Impact
string-math v1.2.2 was discovered to contain a Regex Denial of Service (ReDoS) which is exploited via a crafted input.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| npm | string-math | <= 1.2.2 | none recorded |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Devrafalko | String-Math | Version 1.2.2 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://gist.github.com/6en6ar/361608bccedb808061359481fe2f1b39
- https://github.com/devrafalko/string-math/blob/master/string-math.js
- https://www.npmjs.com/package/string-math%2C
- https://github.com/advisories/GHSA-994j-5c83-r424
- https://nvd.nist.gov/vuln/detail/CVE-2025-45143