{"id":"CVE-2026-48038","aliases":["CVE-2026-48038","GHSA-q7cg-457f-vx79"],"related":[],"kind":"vulnerability","state":"published","title":"joi: Uncaught RangeError on deeply nested input through recursive `link()` schemas","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","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.","source":"cvelist"},{"lang":"en","text":"### Impact\nDenial of service via untrapped exception in services validating user-supplied JSON / object input with recursive link schemas. \n\nThe blast radius depends on how the application invokes joi:\n- Highest impact: `validate()` called without `try/catch` in a request handler would cause an unhandled exception, potentially crashing the process.\n- Lower impact: `validateAsync()` or `validate()` inside a `try/catch`, the validation fails, but the error type is `RangeError` rather than a structured `ValidationError`, complicating error handling.\n\n### Patches\nUpgrade to version >= 18.2.1.\n\n### Workarounds\nTry/catch the validation to avoid uncaught exceptions.\n\n### References\n- Pull request: hapijs/joi#3113","format":"markdown","source":"ghsa"},{"lang":"es","text":"joi es un lenguaje de descripción de esquemas y un validador de datos para JavaScript. Antes de las versiones 17.13.4 y 18.2.1, es posible la denegación de servicio a través de una excepción no capturada en servicios que validan entradas JSON u objetos proporcionados por el usuario con esquemas link() recursivos. Cuando se llama a validate() sin try/catch en un gestor de solicitudes, una entrada profundamente anidada puede desencadenar un RangeError no manejado y potencialmente bloquear el proceso; las rutas de menor impacto que usan validateAsync() o try/catch producen un RangeError en lugar de un ValidationError estructurado. Este problema está solucionado en las versiones 17.13.4 y 18.2.1.","source":"nvd"}],"published":"2026-06-11T13:27:32.000Z","modified":"2026-10-24T21:10:00.130Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"rating":"MEDIUM"}],"cwes":["CWE-248","CWE-400"],"affected":[{"ranges":[{"version":"< 17.13.4","status":"affected"},{"version":">= 18.0.0, < 18.2.1","status":"affected"}],"vendor":"hapijs","product":"joi","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"18.0.0","status":"affected","fixed":"18.2.1"}],"ecosystem":"npm","package":"joi","purl":"pkg:npm/joi","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"17.13.4"}],"ecosystem":"npm","package":"joi","purl":"pkg:npm/joi","source":"ghsa"}],"references":[{"url":"https://github.com/hapijs/joi/security/advisories/GHSA-q7cg-457f-vx79","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/hapijs/joi/pull/3113","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/hapijs/joi/commit/97bd51de94d595a2d8949eb3bec0dbdd2f8a7a74","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/hapijs/joi/commit/fc146a628ab9cc250854407722d9f8738c9548e7","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/hapijs/joi/commit/2392713d3e9dd91ba752ac0c96e0eaf3d24b9a11","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/hapijs/joi","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"yes","technicalImpact":"partial","date":"2026-07-15T13:23:16.760Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-48038","url":"https://www.cve.org/CVERecord?id=CVE-2026-48038","licence":"CVE Terms of Use","modified":"2026-07-15T13:27:13.334Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-q7cg-457f-vx79","url":"https://github.com/advisories/GHSA-q7cg-457f-vx79","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:50.203Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-48038","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-48038","licence":"Public domain","modified":"2026-10-24T21:10:00.130Z"}],"updatedAt":"2026-11-25T22:59:28.182Z","epss":{"score":0.00302,"percentile":0.24654,"date":"2026-12-01T12:00:22.000Z"}}