joi
Affected
- introduced
18.0.0, fixed18.2.1(semver)
Fixed versions
18.2.1
Fix
- Fixed version
18.2.1npm install [email protected]
Advisory
Also known as: CVE-2026-48038
joi has an uncaught RangeError on deeply nested input through recursive link() schemas
Impact
Denial of service via untrapped exception in services validating user-supplied JSON / object input with recursive link schemas.
The blast radius depends on how the application invokes joi:
validate() called without try/catch in a request handler would cause an unhandled exception, potentially crashing the process.validateAsync() or validate() inside a try/catch, the validation fails, but the error type is RangeError rather than a structured ValidationError, complicating error handling.Patches
Upgrade to version >= 18.2.1.
Workarounds
Try/catch the validation to avoid uncaught exceptions.
References
Medium Basis: The source's own band: MODERATE
18.0.0, fixed 18.2.1 (semver)18.2.1
18.2.1npm install [email protected]0, fixed 17.13.4 (semver)17.13.4
17.13.4npm install [email protected]Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.
Check your own computer: guard packages check
Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0