CVE-2023-25166: Regular Expression Denial of Service (ReDoS) Vulnerability
Vulnerability summary
CVE-2023-25166 is a medium (CVSS 6.5) vulnerability in hapi formula. EPSS estimates a 0.64% chance of exploitation in the next 30 days, higher than 51.9% of scored vulnerabilities.
Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Timeline
- 08-02-2023PublishedVulnerability first disclosed.
- 10-03-2025Last modifiedVulnerability information updated.
Description
formula is a math and string formula parser. In versions prior to 3.0.1 crafted user-provided strings to formula's parser might lead to polynomial execution time and a denial of service. Users should upgrade to 3.0.1+. There are no known workarounds for this vulnerability.
CVSS metrics
3 scores · 3 sources · 1 version- CVE.orgCNA5.5MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:HDiffers
- OSV · NpmEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:HDiffers
EPSS trend
Probability
0.64%
Chance of exploitation in the next 30 days
Percentile
52%
Versus all other CVEs
30-day change
Increase +0.03 pp
From 0.61% on 04-11-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Known conditions: local access, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.
@sideway1 product
- formula< 3.0.1
Hapi1 product
- formula< 3.0.1
Hapijs1 product
- formula< 3.0.1
3 vendors · 3 products
References
4 links- github.com/hapijs/formula/security/advisories/GHSA-c2jc-4fpr-4vhgX Refsource CONFIRMWEBVendor Advisory
- github.com/hapijs/formulaPACKAGE