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

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.30%, higher than 24% of CVEs (2026-12-01)
- Published: 2026-06-11T13:27:32.000Z
- Modified: 2026-10-24T21:10:00.130Z
- Also known as: GHSA-q7cg-457f-vx79
- Weaknesses: CWE-248, CWE-400
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- hapijs joi: < 17.13.4; >= 18.0.0, < 18.2.1
- joi (npm): from 18.0.0 before 18.2.1; before 17.13.4

## Every score

- GitHub_M: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`

## References

- <https://github.com/hapijs/joi/security/advisories/GHSA-q7cg-457f-vx79> (web)
- <https://github.com/hapijs/joi/pull/3113> (web)
- <https://github.com/hapijs/joi/commit/97bd51de94d595a2d8949eb3bec0dbdd2f8a7a74>
- <https://github.com/hapijs/joi/commit/fc146a628ab9cc250854407722d9f8738c9548e7>
- <https://github.com/hapijs/joi/commit/2392713d3e9dd91ba752ac0c96e0eaf3d24b9a11> (web)
- <https://github.com/hapijs/joi> (package)

## Sources

- CVE List: [CVE-2026-48038](https://www.cve.org/CVERecord?id=CVE-2026-48038), CVE Terms of Use, modified 2026-07-15
- GitHub Advisory Database: [GHSA-q7cg-457f-vx79](https://github.com/advisories/GHSA-q7cg-457f-vx79), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-48038](https://nvd.nist.gov/vuln/detail/CVE-2026-48038), Public domain, modified 2026-10-24

---

Page: https://cve.day/CVE-2026-48038 · Whole record: https://cve.day/CVE-2026-48038.json · Rebuilt by cve.day 2026-11-25T22:59:28.182Z
