Skip to main content

CVE-2026-48038 — Vulnerability in joi — CVE Details

MEDIUM

joi has an uncaught RangeError on deeply nested input through recursive `link()` schemas

Published June 11, 2026Updated September 10, 2026Source: OSV

What Should I Do?

Address in Next Maintenance Window

Low exploitation probability (0.52%). Schedule for your next planned update.

Does your project use an affected joi version?

Paste your package-lock.json to check it for CVE-2026-48038 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my package-lock.json

Summary

Impact

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.

Patches

Upgrade to version >= 18.2.1.

Workarounds

Try/catch the validation to avoid uncaught exceptions.

References

  • Pull request: hapijs/joi#3113

Advisory Timeline

  • First published June 11, 2026 (168 days ago).
  • Last revised September 10, 2026 — 91 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

npm
Update joi to 18.2.1 or later
npm install joi@18.2.1
npm
Update joi to 17.13.4 or later
npm install joi@17.13.4

After upgrading, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (2)

Affects 1 ecosystem: npm (1).

PackageFixed In
joi npm · Affected: All versions18.2.1
joi npm · Affected: All versions17.13.4

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 5.3 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
Low

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

Frequently Asked Questions

What is CVE-2026-48038?
joi has an uncaught RangeError on deeply nested input through recursive `link()` schemas. This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 5.3/10).
How do I check if my project is affected by CVE-2026-48038?
CVE-2026-48038 affects joi. It has a 0.5% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-48038 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
5.3

Exploitation requires specific conditions, or the impact is limited.

EPSS Score (30-day exploit probability)
0.52%
EPSS percentile: 37.8

This is a below-median EPSS score — only 37.8% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.

Also Known As

GHSA-q7cg-457f-vx79

Related CVEs

  • CVE-2026-118772
    HIGH

    joi: quadratic-time split in `string().email({ multiple: true })` allows denial of service

  • CVE-2026-92599
    HIGH

    joi: Quadratic regular-expression backtracking in `Joi.string().isoDate()`

  • CVE-2026-94543
    MEDIUM

    Next.js has cache poisoning of SSG and ISR pages in self-hosted applications

  • CVE-2026-90771
    MEDIUM

    joi messages compilation allows prototype replacement through __proto__ error codes

  • CVE-2026-94545
    MEDIUM

    Satori-generated SVG has improper escaping

  • CVE-2026-84368
    LOW

    joi: Prototype pollution via a `__proto__` language key in custom messages

  • CVE-2026-84367
    LOW

    joi: object().rename() with a template target can set the validated object's prototype

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my package-lock.json