CVE Catalog

CVE-2026-48038

MediumCVSS 5.3
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.30%

22th percentile - higher than 22% of all known CVEs

Summary

A vulnerability in the joi library (versions before 17.13.4 and 18.2.1) allows a DoS attack by sending deeply nested JSON or objects with recursive link() schemas. Calling validate() without try/catch in a request handler can cause an unhandled RangeError and potentially crash the process.

Risk Assessment

An attacker can cause application downtime (process crash) by sending a specially crafted request with deeply nested data, resulting in denial of service (DoS).

Recommendation

Immediately update the joi library to version 17.13.4 or 18.2.1 (or later). As a workaround, use try/catch around validate() calls and limit the nesting depth of input data.

Other vulnerabilities in joi

See all
Original NVD description (English source)

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.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS