{"id":"CVE-2026-118772","published":"2026-10-29T18:13:33Z","modified":"2026-11-04T01:33:51Z","title":"joi: quadratic-time split in `string().email({ multiple: true })` allows denial of service","vendor":"hapijs","product":"joi","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00571,"percentile":0.48142,"provenance":"source"},"cwes":[{"id":"CWE-1333","name":"Inefficient Regular Expression Complexity"}],"references":[{"url":"https://github.com/hapijs/joi/security/advisories/GHSA-4528-x5fx-h6hg","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/hapijs/joi/pull/3162","tags":["x_refsource_MISC"]},{"url":"https://github.com/hapijs/joi/pull/3163","tags":["x_refsource_MISC"]},{"url":"https://github.com/hapijs/joi/commit/03dc1d909818503b06240dadc81e9227ed2649cf","tags":["x_refsource_MISC"]},{"url":"https://github.com/hapijs/joi/commit/807858d7480f5075b0610817e3e44230890fb18e","tags":["x_refsource_MISC"]},{"url":"https://github.com/hapijs/joi/releases/tag/v17.13.9","tags":["x_refsource_MISC"]},{"url":"https://github.com/hapijs/joi/releases/tag/v18.3.1","tags":["x_refsource_MISC"]}],"priority":{"score":14.9,"factors":[{"name":"EPSS percentile","points":9.63},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"hapijs","affectedVersions":[{"vendor":"hapijs","product":"joi","versions":[">= 16.0.0, <= 17.1.1",">= 18.0.0, < 18.3.1"]},{"vendor":"@hapi","product":"joi","versions":[">= 16.0.0, <= 17.1.1"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2026-11-04T01:33:26.811594Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"joi","vulnerableRanges":[">=17.1.1, <17.13.9",">=18.0.0, <18.3.1"],"patched":["17.13.9","18.3.1"],"from":["GHSA-4528-x5fx-h6hg"],"provenance":"source"},{"ecosystem":"npm","package":"@hapi/joi","vulnerableRanges":[">=16.0.0, <=17.1.1"],"patched":[],"from":["GHSA-4528-x5fx-h6hg"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-113320","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-hapijs-joi-cve-2026-92599","parents":[{"from":"CVE-2026-92599","to":"CVE-2026-118772","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["lib/types/string.js"],"commits":["https://github.com/hapijs/joi/commit/03dc1d909818503b06240dadc81e9227ed2649cf","https://github.com/hapijs/joi/commit/807858d7480f5075b0610817e3e44230890fb18e","https://github.com/hapijs/joi/commit/115e7b58d5eaaecc5e9b7093d41899ad6fb053ec","https://github.com/hapijs/joi/commit/e70df424c367f2976db63b089504413744a21245"],"basis":"rarely changed file"}]}],"packageHistory":[{"cve":"CVE-2026-84368","published":"2026-09-01","fixed":"18.2.5","kev":false},{"cve":"CVE-2026-92599","published":"2026-09-16","fixed":"18.2.6","kev":false},{"cve":"CVE-2026-90771","published":"2026-09-13","fixed":"18.2.9","kev":false,"link":{"from":"CVE-2026-90771","to":"CVE-2026-118772","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:joi","fromFixed":"17.13.8","toFixed":"17.13.9","daysApart":46},{"kind":"version-step","provenance":"source","package":"npm:joi","fromFixed":"18.2.9","toFixed":"18.3.1","daysApart":46}]}},{"cve":"CVE-2026-118772","published":"2026-10-29","fixed":"18.3.1","kev":false}],"package":"npm:joi"}}