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

- Severity: High 7.0 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.45%, higher than 40% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-06-30T00:00:00.000Z
- Modified: 2026-06-17T09:25:23.693Z
- Also known as: GHSA-994j-5c83-r424
- Weaknesses: CWE-1333
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: mitre

## Description

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

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- string-math (npm): up to 1.2.2
- devrafalko string-math: 1.2.2

## Every score

- CISA-ADP: CVSS:3.1 7.0 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:L/A:L`
- GitHub: CVSS:3.1 3.7 Low `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:L`

## References

- <https://gist.github.com/6en6ar/361608bccedb808061359481fe2f1b39> (exploit, third-party-advisory, web)
- <https://www.npmjs.com/package/string-math%2C> (broken-link, web)
- <https://github.com/devrafalko/string-math/blob/master/string-math.js> (product, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-45143> (advisory)
- <https://github.com/devrafalko/string-math> (package)

## Sources

- CVE List: [CVE-2025-45143](https://www.cve.org/CVERecord?id=CVE-2025-45143), CVE Terms of Use, modified 2025-06-30
- GitHub Advisory Database: [GHSA-994j-5c83-r424](https://github.com/advisories/GHSA-994j-5c83-r424), CC-BY-4.0, modified 2025-06-30
- NVD: [CVE-2025-45143](https://nvd.nist.gov/vuln/detail/CVE-2025-45143), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-45143 · Whole record: https://cve.day/CVE-2025-45143.json · Rebuilt by cve.day 2026-11-25T22:59:00.402Z
