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

High 7.0 Published Updated

Attackers can cause denial of service in applications using string-math by submitting crafted input that triggers excessive regex processing.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2025-45143?

CVE-2025-45143 is a high-severity denial of service vulnerability in n/a, published on 30 Jun 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

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

Weakness: CWE-1333

Which versions are affected by CVE-2025-45143?

2 open source packages ship an affected version, including string-math. It affects 1 product.

PackageAffectedFixed in
string-math npmAll versions to 1.2.2None
string-math npmAll versions to 1.2.2None

Products include Devrafalko String-Math.

How do I fix CVE-2025-45143?

No fix has been published for CVE-2025-45143 yet. Limit exposure of the affected software until one is available.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2025-45143 being exploited?

There is no known exploitation of CVE-2025-45143 in the wild and no public exploit code.

Sources

Also known as GHSA-994j-5c83-r424.

Is CVE-2025-45143 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free