Bug 2499681 (CVE-2026-48038)

Summary: CVE-2026-48038 joi: joi: Denial of Service via uncaught RangeError on deeply nested input through recursive link() schemas
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security DevOps Team <prodsec-dev>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: aazores, cdrage, cmah, dfreiber, drow, dymurray, eaguilar, ebaron, gparvin, ibolton, jburrell, jmatthew, jmontleo, pgaikwad, pjindal, rhaigner, rjohnson, rushinde, sdawley, slucidi, sseago, vkumar
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
A flaw was found in joi, a JavaScript data validation library. When validating deeply nested input against recursive link() schemas, an uncaught RangeError is thrown due to excessive stack depth. If the application does not wrap validate() calls in a try/catch block, this unhandled exception crashes the process, resulting in a denial of service.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description OSIDB Bzimport 2026-07-13 14:36:59 UTC
joi is a data validation library for JavaScript. In versions prior to 17.13.4 and 18.0.0 through 18.2.0, deeply nested input validated against recursive link() schemas triggers an uncaught RangeError. When validate() is called without try/catch in a request handler, this causes an unhandled exception that can crash the process, leading to denial of service. With validateAsync() or validate() inside try/catch, the validation fails but returns a RangeError instead of a structured ValidationError. Fixed in joi 17.13.4 and 18.2.1.