Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. @hapi/joi
  4. ›
  5. CVE-2026-118772

CVE-2026-118772: joi: quadratic-time split in `string().email({ multiple: true })` allows denial of service

October 30, 2026

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.

References

  • github.com/advisories/GHSA-4528-x5fx-h6hg
  • github.com/hapijs/joi/commit/03dc1d909818503b06240dadc81e9227ed2649cf
  • github.com/hapijs/joi/commit/807858d7480f5075b0610817e3e44230890fb18e
  • github.com/hapijs/joi/pull/3162
  • github.com/hapijs/joi/pull/3163
  • github.com/hapijs/joi/releases/tag/v17.13.9
  • github.com/hapijs/joi/releases/tag/v18.3.1
  • github.com/hapijs/joi/security/advisories/GHSA-4528-x5fx-h6hg
  • nvd.nist.gov/vuln/detail/CVE-2026-118772

Code Behaviors & Features

Detect and mitigate CVE-2026-118772 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions starting from 16.0.0 up to 17.1.1

Solution

Unfortunately, there is no solution available yet.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-1333: Inefficient Regular Expression Complexity

Source file

npm/@hapi/joi/CVE-2026-118772.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 01 Nov 2026 02:00:56 +0000.