{"id":"CVE-2026-48038","published":"2026-07-14T19:24:32Z","modified":"2026-07-15T13:27:13Z","title":"joi: Uncaught RangeError on deeply nested input through recursive `link()` schemas","vendor":"hapijs","product":"joi","tier":"tail","description":{"text":"joi is a schema description language and data validator for JavaScript. Prior to 17.13.4 and 18.2.1, denial of service is possible via an untrapped exception in services validating user-supplied JSON or object input with recursive link() schemas. When validate() is called without try/catch in a request handler, deeply nested input can trigger an unhandled RangeError and potentially crash the process; lower-impact paths using validateAsync() or try/catch produce a RangeError instead of a structured ValidationError. This issue is fixed in versions 17.13.4 and 18.2.1.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00524,"percentile":0.45343,"provenance":"source"},"cwes":[{"id":"CWE-248","name":"Uncaught Exception"}],"references":[{"url":"https://github.com/hapijs/joi/security/advisories/GHSA-q7cg-457f-vx79","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/hapijs/joi/pull/3113","tags":["x_refsource_MISC"]},{"url":"https://github.com/hapijs/joi/commit/97bd51de94d595a2d8949eb3bec0dbdd2f8a7a74","tags":["x_refsource_MISC"]},{"url":"https://github.com/hapijs/joi/commit/fc146a628ab9cc250854407722d9f8738c9548e7","tags":["x_refsource_MISC"]}],"priority":{"score":12.8,"factors":[{"name":"EPSS percentile","points":9.07},{"name":"CVSS severity","points":3.71}]},"vendorSlug":"hapijs","affectedVersions":[{"vendor":"hapijs","product":"joi","versions":["< 17.13.4",">= 18.0.0, < 18.2.1"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-07-15T13:23:16.760424Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"joi","vulnerableRanges":[">=18.0.0, <18.2.1","<17.13.4"],"patched":["18.2.1","17.13.4"],"from":["GHSA-q7cg-457f-vx79"],"provenance":"source"}],"summary":{"text":"The joi schema validation library for JavaScript contains an untrapped exception flaw in its handling of recursive link() schemas, which can be triggered when validate() is called without a try/catch in a request handler. An unauthenticated remote attacker who can send deeply nested JSON or object input to such a service, with no user interaction, can cause an unhandled RangeError that may crash the process and deny service.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:50:28Z"},"euvd":{"id":"EUVD-2026-44390","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-48038","published":"2026-07-14","fixed":"18.2.1","kev":false},{"cve":"CVE-2026-84367","published":"2026-09-01","fixed":"18.2.4","kev":false,"link":{"from":"CVE-2026-48038","to":"CVE-2026-84367","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:joi","fromFixed":"17.13.4","toFixed":"17.13.5","daysApart":49},{"kind":"version-step","provenance":"source","package":"npm:joi","fromFixed":"18.2.1","toFixed":"18.2.4","daysApart":49}]}},{"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}],"package":"npm:joi"}}