# CVE-2023-25166: Regular Expression Denial of Service (ReDoS) Vulnerability

- Priority: **Routine**
- Reason: Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2023-02-08 · Modified: 2025-03-10
- Aliases: GHSA-c2jc-4fpr-4vhg
- Record: https://cvemate.com/vulnerability/CVE-2023-25166 · JSON: https://cvemate.com/vulnerability/CVE-2023-25166/json

## Description

```text
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.
```

## Signals

- CVSS: 6.5 medium (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.636%, percentile 51.922%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- hapi formula: \< 3.0.1
- hapijs formula: \< 3.0.1
- @sideway formula (Npm): \< 3.0.1

## References

- <https://github.com/hapijs/formula/security/advisories/GHSA-c2jc-4fpr-4vhg>
- <https://github.com/hapijs/formula/commit/9fbc20a02d75ae809c37a610a57802cd1b41b3fe>
- <https://nvd.nist.gov/vuln/detail/CVE-2023-25166>
- <https://github.com/hapijs/formula>

---

Data as of 2026-12-05T06:50:44.950Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
