Vulnerability GHSA-q7cg-457f-vx79
Medium Risk
MEDIUM RISK
CVSS Score: 5.3
Score Range: 4.0–6.9
Medium severity vulnerabilities (CVSS 4.0–6.9). Important issues that meaningfully reduce security confidence.
4 months ago
June 11, 2026 at 01:27 PM UTC
joi has an uncaught RangeError on deeply nested input through recursive `link()` schemas
0.0.1 - 17.13.3 and 18.0.0 - 18.2.0
0.0.1 - 17.13.3 and 18.0.0 - 18.2.0
Summary
joi has an uncaught RangeError on deeply nested input through recursive `link()` schemas
Details
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:
- Highest impact:
validate()called withouttry/catchin a request handler would cause an unhandled exception, potentially crashing the process. - Lower impact:
validateAsync()orvalidate()inside atry/catch, the validation fails, but the error type isRangeErrorrather than a structuredValidationError, complicating error handling.
Patches
Upgrade to version >= 18.2.1.
Workarounds
Try/catch the validation to avoid uncaught exceptions.
References
- Pull request: hapijs/joi#3113
Related Vulnerabilities
Other vulnerabilities affecting the same packages
High Risk
7 hours ago
joi: quadratic-time split in `string().email({ multiple: true })` allows denial of service
17.1.1 - 17.13.8 and 18.0.0 - 18.3.0 GHSA-4528-x5fx-h6hg
17.1.1 - 17.13.8 and 18.0.0 - 18.3.0 GHSA-4528-x5fx-h6hg
High Risk
1 month ago
joi: Quadratic regular-expression backtracking in `Joi.string().isoDate()`
17.2.0 - 17.13.6 and 18.0.0 - 18.2.5 GHSA-6h2x-m376-mqjq
17.2.0 - 17.13.6 and 18.0.0 - 18.2.5 GHSA-6h2x-m376-mqjq
Low Risk
1 month ago
joi messages compilation allows prototype replacement through __proto__ error codes
0.0.1 - 17.13.7 and 18.0.0 - 18.2.8 GHSA-wr44-6hxh-3jwq
0.0.1 - 17.13.7 and 18.0.0 - 18.2.8 GHSA-wr44-6hxh-3jwq
Low Risk
1 month ago
joi: Prototype pollution via a `__proto__` language key in custom messages
17.2.0 - 17.13.5 and 18.0.0 - 18.2.4 GHSA-6w3j-5fw6-r9vr
17.2.0 - 17.13.5 and 18.0.0 - 18.2.4 GHSA-6w3j-5fw6-r9vr
Low Risk
1 month ago
joi: object().rename() with a template target can set the validated object's prototype
17.1.1 - 17.13.4 and 18.0.0 - 18.2.3 GHSA-gg4h-3hg2-grpc
17.1.1 - 17.13.4 and 18.0.0 - 18.2.3 GHSA-gg4h-3hg2-grpc
Impacted packages
Timeline
Published
4 months ago
June 11, 2026 at 01:27 PM UTC
Fixed (18.2.1)
5 months ago
May 04, 2026 at 04:10 PM UTC
Fixed (17.13.4)
4 months ago
June 12, 2026 at 09:20 AM UTC
Last Modified
1 month ago
September 10, 2026 at 03:50 AM UTC