Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

github логотип

GHSA-q7cg-457f-vx79

Опубликовано: 11 июн. 2026
Источник: github
Github: Прошло ревью
CVSS3: 5.3

Описание

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:

  • 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

Пакеты

Наименование

joi

npm
Затронутые версииВерсия исправления

>= 18.0.0, < 18.2.1

18.2.1

Наименование

joi

npm
Затронутые версииВерсия исправления

< 17.13.4

17.13.4

EPSS

Процентиль: 22%
0.00302
Низкий

5.3 Medium

CVSS3

Дефекты

CWE-248
CWE-400

Связанные уязвимости

CVSS3: 5.3
redhat
около 2 месяцев назад

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.

CVSS3: 5.3
nvd
23 дня назад

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.

EPSS

Процентиль: 22%
0.00302
Низкий

5.3 Medium

CVSS3

Дефекты

CWE-248
CWE-400