CVE-2023-25166

MEDIUM CVSS 3.1: 6.5 EPSS 0.64%
Updated Oct 28, 2026
Hapi
Parameter Value
CVSS 6.5 (MEDIUM)
Affected Versions before 3.0.1
Fixed In 3.0.1
Type CWE-1333 (Inefficient Regular Expression Complexity / ReDoS)
Vendor Hapi
Public PoC No

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.

Attack Parameters

Attack Vector
Network
Can be exploited remotely
Attack Complexity
Low
Easy to exploit
Privileges Required
Low
Basic privileges needed
User Interaction
None
No user interaction needed

Impact Assessment

Confidentiality
None
No data leak
Integrity
None
No data modification
Availability
High
Complete denial of service

CVSS Vector v3.1

Vulnerable Products 1

Configuration From (including) Up to (excluding)
Hapi Formula
cpe:2.3:a:hapi:formula:*:*:*:*:*:node.js:*:*
— 3.0.1