Vulnerability library
Security checkOctober 30, 2026

joi: quadratic-time split in `string().email({ multiple: true })` allows denial of service - @hapi/joi

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

High severitynpm@hapi/joi

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

Joi.string().email({ multiple: true }) takes quadratic time to split a value that contains a long run of whitespace. One request with 100 KB of spaces blocks the Node.js event loop for several seconds, which causes a denial of service.

Recommendation

No fix is available yet. Followings are affected versions:

  • >= 16.0.0, <= 17.1.1

References

Could your website be exposed too?

SmartScanner can check your website for joi: quadratic-time split in `string().email({ multiple: true })` allows denial of service - @hapi/joi and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated October 30, 2026