Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. joi
  4. ›
  5. CVE-2026-48038

CVE-2026-48038: joi has an uncaught RangeError on deeply nested input through recursive `link()` schemas

June 11, 2026 (updated June 12, 2026)

Denial of service via untrapped exception in services validating user-supplied JSON / object input with recursive link schemas.

The blast radius depends on how the application invokes joi:

  • Highest impact: validate() called without try/catch in a request handler would cause an unhandled exception, potentially crashing the process.
  • Lower impact: validateAsync() or validate() inside a try/catch, the validation fails, but the error type is RangeError rather than a structured ValidationError, complicating error handling.

References

  • github.com/advisories/GHSA-q7cg-457f-vx79
  • github.com/hapijs/joi/commit/2392713d3e9dd91ba752ac0c96e0eaf3d24b9a11
  • github.com/hapijs/joi/pull/3113
  • github.com/hapijs/joi/security/advisories/GHSA-q7cg-457f-vx79
  • nvd.nist.gov/vuln/detail/CVE-2026-48038

Code Behaviors & Features

Detect and mitigate CVE-2026-48038 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 17.13.4, all versions starting from 18.0.0 before 18.2.1

Fixed versions

  • 17.13.4
  • 18.2.1

Solution

Upgrade to versions 17.13.4, 18.2.1 or above.

Impact 5.3 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Learn more about CVSS

Weakness

  • CWE-248: Uncaught Exception
  • CWE-400: Uncontrolled Resource Consumption

Source file

npm/joi/CVE-2026-48038.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:15:50 +0000.