CVE-2026-118772
Published:October 29, 2026
Updated:October 31, 2026
joi is a schema description language and data validator for JavaScript. From 17.1.1 until 17.13.9 and 18.3.1, the Joi.string().email({ multiple: true }) rule uses a separator regular expression whose leading whitespace quantifier is retried at every position in a long whitespace run that contains no separator, causing quadratic work during String.prototype.split. The behavior applies to the default separator and every custom separator. Applications that validate attacker-controlled values with the multiple option and no effective prior length limit can have the Node.js event loop blocked for seconds by one request, preventing other work. A .max() rule is not sufficient when abortEarly: false allows the email rule to run after the maximum-length check fails. This vulnerability is fixed in versions 17.13.9 and 18.3.1.
Affected Packages
https://github.com/hapijs/joi.git (GITHUB):
Affected version(s) =v16.0.0-rc2 <v17.13.9 || >=v16.0.0 <v17.13.9 || >=v17.0.0 <v17.13.9Fix Suggestion:
Update to version v17.13.9https://github.com/hapijs/joi.git (GITHUB):
Affected version(s) >=v18.0.0 <v18.3.1Fix Suggestion:
Update to version v18.3.1joi (NPM):
Affected version(s) >=18.0.0 <18.3.1Fix Suggestion:
Update to version 18.3.1joi (NPM):
Affected version(s) >=17.1.1 <17.13.9Fix Suggestion:
Update to version 17.13.9Related Resources (9)
Do you need more information?
Contact UsCVSS v4
Base Score:
8.7
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
NONE
User Interaction
NONE
Vulnerable System Confidentiality
NONE
Vulnerable System Integrity
NONE
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
7.5
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Weakness Type (CWE)
Inefficient Regular Expression Complexity
EPSS
Base Score:
0.47