CVE-2026-48038hapijs joi
Medium 5.3 No auth needed
Follow: this CVE · hapijs · hapijs joi We alert you by email or Slack (account required).
- Priority
- 47
- CVSS 3.1
- 5.3
- EPSS
- —
- Auth required
- No
- Published
- Jul 14, 2026
- Updated
- Oct 24, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-248
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
What happens
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.
What to do
- Apply the vendor's security update for joi.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | joi |
≥ 18.0.0 < 18.2.1 |
18.2.1 |
npm install joi@18.2.1 |
| npm | joi |
< 17.13.4 |
17.13.4 |
npm install joi@17.13.4 |
Per OSV / GitHub Advisories (GHSA-q7cg-457f-vx79). Check the version in your lockfile before upgrading.
Affected products
- hapijs · joi
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.