CVE-2026-48038 joi: Uncaught RangeError on deeply nested input through recursive `link()` schemas
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: yes · technical impact: partial
- Technology
- Red Hat
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.
Upgrade path
8 packages: 1 fixed, 6 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| redhat/joi(Red Hat gatekeeper 3) | All versions | No fix listed | No fix yet |
| redhat/joi(Red Hat openshift 4) | All versions | No fix listed | No fix yet |
| redhat/joi(Red Hat openshift_ai) | All versions | No fix listed | No fix yet |
| redhat/joi(Red Hat openshift_devspaces 3) | All versions | No fix listed | No fix yet |
| redhat/joi(Red Hat podman_desktop 1) | All versions | No fix listed | No fix yet |
| redhat/joi(Red Hat rhmt 1) | All versions | No fix listed | No fix yet |
| npm joi(npm) | < 17.13.4; >= 18.0.0, < 18.2.1 | 17.13.4, 18.2.1 | Fixed |
| hapijs joi | = < 17.13.4; = >= 18.0.0, < 18.2.1 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| hapijs joi | = < 17.13.4 | No fix listed |
| hapijs joi | = >= 18.0.0, < 18.2.1 | No fix listed |
| npm joi(npm) | >= 18.0.0, < 18.2.1 | 18.2.1 |
| npm joi(npm) | < 17.13.4 | 17.13.4 |
| redhat/joi(Red Hat:gatekeeper:3) | All versions | No fix listed |
| redhat/joi(Red Hat:rhmt:1) | All versions | No fix listed |
| redhat/joi(Red Hat:podman_desktop:1) | All versions | No fix listed |
| redhat/joi(Red Hat:openshift_ai) | All versions | No fix listed |
| redhat/joi(Red Hat:openshift:4) | All versions | No fix listed |
| redhat/joi(Red Hat:openshift_devspaces:3) | All versions | No fix listed |
References
- https://github.com/hapijs/joi/security/advisories/GHSA-q7cg-457f-vx79 vendor-advisory
- https://github.com/hapijs/joi/pull/3113 patch
- https://github.com/hapijs/joi/commit/97bd51de94d595a2d8949eb3bec0dbdd2f8a7a74
- https://github.com/hapijs/joi/commit/fc146a628ab9cc250854407722d9f8738c9548e7
- github.com patch
- github.com
- Red Hat CVE page mitigation vendor-advisory
- Red Hat Bugzilla 2499681 issue-tracking
- www.cve.org
- nvd.nist.gov
- github.com product