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 without try/catch in a request handler would cause an unhandled exception, potentially crashing the process.
  • 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.

Patches

Upgrade to version >= 18.2.1.

Workarounds

Try/catch the validation to avoid uncaught exceptions.

References

  • Pull request: hapijs/joi#3113

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