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

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.60%, higher than 50% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-29T18:13:33.771Z
- Modified: 2026-11-04T02:17:15.813Z
- Also known as: GHSA-4528-x5fx-h6hg
- Weaknesses: CWE-1333
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- hapijs joi: >= 16.0.0, <= 17.1.1; >= 18.0.0, < 18.3.1
- @hapi joi: >= 16.0.0, <= 17.1.1
- joi (npm): from 17.1.1 before 17.13.9; from 18.0.0 before 18.3.1
- @hapi/joi (npm): from 16.0.0 up to 17.1.1

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/hapijs/joi/security/advisories/GHSA-4528-x5fx-h6hg> (exploit, web)
- <https://github.com/hapijs/joi/pull/3162> (web)
- <https://github.com/hapijs/joi/pull/3163> (web)
- <https://github.com/hapijs/joi/commit/03dc1d909818503b06240dadc81e9227ed2649cf> (web)
- <https://github.com/hapijs/joi/commit/807858d7480f5075b0610817e3e44230890fb18e> (web)
- <https://github.com/hapijs/joi/releases/tag/v17.13.9> (web)
- <https://github.com/hapijs/joi/releases/tag/v18.3.1> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-118772> (advisory)
- <https://github.com/hapijs/joi> (package)

## Sources

- CVE List: [CVE-2026-118772](https://www.cve.org/CVERecord?id=CVE-2026-118772), CVE Terms of Use, modified 2026-11-04
- GitHub Advisory Database: [GHSA-4528-x5fx-h6hg](https://github.com/advisories/GHSA-4528-x5fx-h6hg), CC-BY-4.0, modified 2026-10-30
- NVD: [CVE-2026-118772](https://nvd.nist.gov/vuln/detail/CVE-2026-118772), Public domain, modified 2026-11-04

---

Page: https://cve.day/CVE-2026-118772 · Whole record: https://cve.day/CVE-2026-118772.json · Rebuilt by cve.day 2026-11-25T22:59:47.819Z
