{"id":"GHSA-q7cg-457f-vx79","revision":"abfd52e173594be990450874d71de06d","records":[{"revision":"abfd52e173594be990450874d71de06d","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"GHSA-q7cg-457f-vx79","aliases":["CVE-2026-48038"],"title":"joi has an uncaught RangeError on deeply nested input through recursive `link()` schemas","description":"### 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","state":0,"publishedAt":"2026-06-11T13:27:32+00:00","modifiedAt":"2026-09-10T03:50:50.2030358+00:00","affected":[{"ecosystem":"npm","name":"joi","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"18.0.0"},{"kind":"fixed","version":"18.2.1"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"npm","name":"joi","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"17.13.4"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"MODERATE"}],"references":["https://github.com/hapijs/joi/security/advisories/GHSA-q7cg-457f-vx79","https://github.com/hapijs/joi/pull/3113","https://github.com/hapijs/joi/commit/2392713d3e9dd91ba752ac0c96e0eaf3d24b9a11","https://github.com/hapijs/joi"],"sourceUrl":"https://github.com/advisories/GHSA-q7cg-457f-vx79","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-q7cg-457f-vx79","identifiers":["GHSA-q7cg-457f-vx79","CVE-2026-48038"]},"retained":false,"historicalAffected":[]}],"coverage":[]}