CVE-2023-25166
MEDIUM 6.5CVSS 3.1@sideway/formula contains Regular Expression Denial of Service (ReDoS) Vulnerability
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.
- Published
- 8 Feb 2023
- Last modified
- 28 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-1333
- Also known as
- GHSA-c2jc-4fpr-4vhg
- Sources
- NVDJSONOSV GHSA-c2jc-4fpr-4vhgJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.5 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.5 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | hapi | formulacpe:2.3:a:hapi:formula:*:*:*:*:*:node.js:*:* |
< 3.0.1 | 3.0.1 |
| OSV | npm | @sideway/formula | < 3.0.1 | 3.0.1 |
References
- https://github.com/hapijs/formula/commit/9fbc20a02d75ae809c37a610a57802cd1b41b3fe · Patch, WEB
- https://github.com/hapijs/formula/security/advisories/GHSA-c2jc-4fpr-4vhg · Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2023-25166 · ADVISORY
- https://github.com/hapijs/formula · PACKAGE
History
- 25 Nov 2026 20:35 UTC · NVD: first stored (published 8 Feb 2023)
- 25 Nov 2026 20:10 UTC · OSV: first stored (published 8 Feb 2023)