{"id":"CVE-2026-48038","aliases":["GHSA-q7cg-457f-vx79"],"url":"https://o3.security/vulnerability/CVE-2026-48038","summary":"joi: Uncaught RangeError on deeply nested input through recursive `link()` schemas","details":"### 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","published":"2026-07-14T19:24:32.644Z","modified":"2026-10-21T02:58:17.537966156Z","cvss":{"score":5.3,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"},"epss":{"score":0.00524,"percentile":0.43225,"asOf":"2026-09-17"},"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"npm","name":"joi","fixedVersion":"18.2.1"},{"ecosystem":"npm","name":"joi","fixedVersion":"17.13.4"}],"fix":{"url":"https://github.com/hapijs/joi/commit/97bd51de94d595a2d8949eb3bec0dbdd2f8a7a74","label":"hapijs/joi@97bd51d"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/48xxx/CVE-2026-48038.json"},{"type":"ADVISORY","url":"https://github.com/hapijs/joi/security/advisories/GHSA-q7cg-457f-vx79"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-48038"},{"type":"FIX","url":"https://github.com/hapijs/joi/commit/97bd51de94d595a2d8949eb3bec0dbdd2f8a7a74"},{"type":"FIX","url":"https://github.com/hapijs/joi/commit/fc146a628ab9cc250854407722d9f8738c9548e7"},{"type":"FIX","url":"https://github.com/hapijs/joi/pull/3113"},{"type":"WEB","url":"https://github.com/hapijs/joi/commit/2392713d3e9dd91ba752ac0c96e0eaf3d24b9a11"},{"type":"PACKAGE","url":"https://github.com/hapijs/joi"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-10-21T02:58:17.537966156Z"}}