{"id":"CVE-2026-48038","revision":null,"records":[{"revision":"47f94b0ccb9d428bb3ee9c66ddc73d2e","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-48038","aliases":[],"title":"joi: Uncaught RangeError on deeply nested input through recursive `link()` schemas","description":"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.","state":0,"publishedAt":"2026-07-14T19:24:32.644+00:00","modifiedAt":"2026-07-15T13:27:13.334+00:00","affected":[{"ecosystem":"Vendor product","name":"joi","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"hapijs\",\n                    \"product\": \"joi\",\n                    \"versions\": [\n                        {\n                            \"version\": \"< 17.13.4\",\n                            \"status\": \"affected\"\n                        },\n                        {\n                            \"version\": \">= 18.0.0, < 18.2.1\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"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,"severity":"MEDIUM"}],"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/97bd51de94d595a2d8949eb3bec0dbdd2f8a7a74","https://github.com/hapijs/joi/commit/fc146a628ab9cc250854407722d9f8738c9548e7"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-48038","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-48038","identifiers":["CVE-2026-48038"]},"retained":false,"historicalAffected":[]},{"revision":"16512e80cb7e411eac7b6e9e07bfc1a9","observedAt":"2026-10-25T12:17:26.301+00:00","statement":{"source":"nvd","id":"CVE-2026-48038","aliases":[],"title":"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() sc…","description":"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.","state":0,"publishedAt":"2026-07-14T20:17:05.563+00:00","modifiedAt":"2026-10-24T21:10:00.13+00:00","affected":[],"metrics":[{"system":"CVSS 3.1 · security-advisories@github.com · Secondary","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L","score":5.3,"severity":"MEDIUM"}],"references":["https://github.com/hapijs/joi/commit/97bd51de94d595a2d8949eb3bec0dbdd2f8a7a74","https://github.com/hapijs/joi/commit/fc146a628ab9cc250854407722d9f8738c9548e7","https://github.com/hapijs/joi/pull/3113","https://github.com/hapijs/joi/security/advisories/GHSA-q7cg-457f-vx79"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2026-48038","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Awaiting Analysis","weaknesses":["CWE-248"],"productCriteria":[],"sourceDates":{"published":"2026-07-14T20:17:05.563","lastModified":"2026-10-24T21:10:00.130"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2026-48038","identifiers":["CVE-2026-48038"]},"retained":false,"historicalAffected":[]},{"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":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-10-26T23:35:40.1579758+00:00","complete":true,"records":1758,"lastAttemptAt":"2026-10-26T23:35:40.1579758+00:00","lastSuccessAt":"2026-10-26T23:35:40.3040109+00:00","error":null,"lastVerifiedAt":"2026-10-26T23:35:40.3040118+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-5ba1945314e042c2ced14b33f3680fa71692812d925544312b218f5eb8a26e71-3bf7196e32e776c741f2a25a322f304e4a0ccffc94e5ee1b2b39477207e0d312","complete":true,"records":414808,"lastAttemptAt":"2026-10-26T23:35:39.633691+00:00","lastSuccessAt":"2026-10-26T23:35:39.4790556+00:00","error":null,"lastVerifiedAt":"2026-10-26T23:35:39.633691+00:00","snapshotPublishedAt":"2026-10-26T23:20:10+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-43321610382942b8ad8c85917eab1546","complete":false,"records":4735,"lastAttemptAt":"2026-10-26T23:36:08.7201967+00:00","lastSuccessAt":"2026-10-24T23:18:49.862+00:00","error":"InvalidDataException","lastVerifiedAt":"2026-10-24T23:18:49.862+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":0,"expectedIdentifiers":13477},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-10-26T23:35:40.1579758+00:00","complete":true,"records":1093,"lastAttemptAt":"2026-10-26T23:35:40.1579758+00:00","lastSuccessAt":"2026-10-26T23:35:40.3048784+00:00","error":null,"lastVerifiedAt":"2026-10-26T23:35:40.3048788+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-1ba6061a29124e19b1d3d5d18f0c93d7","complete":false,"records":13416,"lastAttemptAt":"2026-10-26T23:36:06.5216484+00:00","lastSuccessAt":"2026-10-26T23:36:06.509+00:00","error":null,"lastVerifiedAt":"2026-10-26T23:36:06.509+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13077,"expectedIdentifiers":13477},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-c3121b113ecd88f1c92ccfa0ec9757ddc8386e4c12afd2597450b815744f800a","complete":true,"records":9779,"lastAttemptAt":"2026-10-26T23:35:39.9463604+00:00","lastSuccessAt":"2026-10-26T15:37:14.3083004+00:00","error":null,"lastVerifiedAt":"2026-10-26T23:35:39.9463604+00:00","snapshotPublishedAt":"2026-10-26T14:48:41+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-bad5d31e7f6a5e3d338e11d8789069b63620a403f927730769688b42f768e4f6","complete":true,"records":1965,"lastAttemptAt":"2026-10-26T23:35:39.6792416+00:00","lastSuccessAt":"2026-10-26T16:35:43.1460623+00:00","error":null,"lastVerifiedAt":"2026-10-26T23:35:39.6792416+00:00","snapshotPublishedAt":"2026-10-26T16:18:29+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-a393d8fe0ae8408f3e4cab413b76047090c8e4a3c0a186c79edf33c9a3d3af95","complete":true,"records":2995,"lastAttemptAt":"2026-10-26T23:35:40.0527218+00:00","lastSuccessAt":"2026-10-26T14:35:47.9640893+00:00","error":null,"lastVerifiedAt":"2026-10-26T23:35:40.0527218+00:00","snapshotPublishedAt":"2026-10-26T14:18:55+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-2c2579bb03487537529e2b647fd2d9950cfc0fec1a9832dba33e322b8dcbe369","complete":true,"records":230812,"lastAttemptAt":"2026-10-26T23:35:39.7934308+00:00","lastSuccessAt":"2026-10-26T21:37:26.5810298+00:00","error":null,"lastVerifiedAt":"2026-10-26T23:35:39.7934308+00:00","snapshotPublishedAt":"2026-10-26T21:33:12+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null}]}