What’s Vulnerable › Vulnerabilities
CVE-2023-25166: Regular Expression Denial of Service (ReDoS) Vulnerability
- Severity: medium (CVSS 6.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.6% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2023-02-08 · updated 2026-10-28
- Weakness: CWE-1333
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.
Affected products
- hapijs formula: before 3.0.1 — fixed in 3.0.1
How to fix
Upgrade to a fixed version: hapijs formula 3.0.1. Check the vendor advisory for mitigations.
References
- https://github.com/hapijs/formula/commit/9fbc20a02d75ae809c37a610a57802cd1b41b3fe
- https://github.com/hapijs/formula/security/advisories/GHSA-c2jc-4fpr-4vhg
- https://github.com/hapijs/formula/commit/9fbc20a02d75ae809c37a610a57802cd1b41b3fe
- https://github.com/hapijs/formula/security/advisories/GHSA-c2jc-4fpr-4vhg
Get alerted when CVE-2023-25166 or the next vulnerability affects your stack