joi: Denial of service via quadratic-time split in email multiple option
The joi validation library for Node.js is affected when the string().email({ multiple: true }) rule processes long runs of whitespace without a separator. An attacker who can submit a crafted value to such a field can cause one request to consume seconds of CPU time and block the Node.js event loop, which delays all other work in the application. The issue applies only where attacker-controlled input is validated with the multiple option and no effective length limit runs first; a .max() rule alone is not sufficient when abortEarly is set to false.
hapijs · joi
