CVE-2026-48038
Npm vulnerability
### 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. ### Resources - Pull request: hapijs/joi#3113
Affected products
Npm. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Npm runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/hapijs/joi/security/advisories/GHSA-q7cg-457f-vx79
- github.com/hapijs/joi/pull/3113
- github.com/hapijs/joi/commit/2392713d3e9dd91ba752ac0c96e0eaf3d24b9a11
- github.com/advisories/GHSA-q7cg-457f-vx79
- github.com/hapijs/joi/commit/97bd51de94d595a2d8949eb3bec0dbdd2f8a7a74
- github.com/hapijs/joi/commit/fc146a628ab9cc250854407722d9f8738c9548e7
- nvd.nist.gov/vuln/detail/CVE-2026-48038
- cve.org/CVERecord?id=CVE-2026-48038
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.