CVE-2026-48038: hapijs joi · Uncaught Exception
Affects hapijs joiSource CVE Database V5
Not known to be exploited · CVSS 5.3 Medium : upgrade to 18.2.1 or 17.13.4 when convenient.
Data as of 27 Nov 2026, 22:51 UTC
- EPSS
- 0.5% chance of exploitation in 30 days – higher than 37% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 18.2.1, 17.13.4
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:LExploitation evidence
Disclosed: evidence found.
CVE published 14 Jul 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 28 Nov 2026.
What to do
Upgrade joi to 18.2.1 or 17.13.4; joi to 18.2.1; joi to 17.13.4.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| hapijsjoi | Affected
| Fixed in
|
| hapijsjoi | Affected
| Fixed in
|
npmjoipkg:npm/joiOther threats | Affected
| Fixed in
|
npmjoipkg:npm/joiOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade to joi versions 17.13.4 or 18.2.1 or later where this issue is fixed. Alternatively, ensure that calls to validate() are wrapped in try/catch blocks to handle exceptions and prevent process crashes. Using validateAsync() also mitigates the risk by producing a catchable RangeError.
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.
References
- github.com/hapijs/joi/security/advisories/GHSA-q7cg-457f-vx79 (opens in a new tab)
- github.com/hapijs/joi/pull/3113 (opens in a new tab)
- github.com/hapijs/joi/commit/97bd51de94d595a2d8949eb3bec0dbdd2f8a7a74 (opens in a new tab)
- github.com/hapijs/joi/commit/fc146a628ab9cc250854407722d9f8738c9548e7 (opens in a new tab)