Skip to content
OpenAdvisories

Description

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.

Affected products

VendorProductAffectedFixed
hapijs joi < 17.13.4, >= 18.0.0, < 18.2.1 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling katib-earlystopping +8 0.19.0-r31 —
Wolfi rolling katib-suggestion-goptuna-compat 0.19.0-r40 —
Wolfi rolling opensearch-dashboards-3 3.8.0-r0 —
Wolfi rolling thingsboard-tb-js-executor 4.4-r3 —

Affected packages

EcosystemPackageAffectedFixedRecord
npm joi >= 18.0.0, < 18.2.1 18.2.1 GHSA-q7cg-457f-vx79
npm joi < 17.13.4 17.13.4 GHSA-q7cg-457f-vx79

References