Skip to main content
VulnerabilityPublished

CVE-2026-48038: hapijs joi · Uncaught Exception

Affects hapijs joiSource CVE Database V5

0
Compare

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

CVSS 3.1 base score
5.3Medium
How severe the flaw is on the 0–10 CVSS scale.
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:L

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 14 Jul 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
hapijsjoiAffected
  • >=18.0.0 <18.2.1
Fixed in
  • 18.2.1
hapijsjoiAffected
  • <17.13.4
Fixed in
  • 17.13.4
npmjoipkg:npm/joiOther threatsAffected
  • >=18.0.0 <18.2.1
Fixed in
  • 18.2.1
npmjoipkg:npm/joiOther threatsAffected
  • <17.13.4
Fixed in
  • 17.13.4

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

Community reviews

Loading reviews…