CVE-2026-122131hapijs joi
Medium 6.3 No auth needed
- Priority
- 53
- CVSS 4.0
- 6.3
- EPSS
- —
- Auth required
- No
- Published
- Nov 4, 2026
- Updated
- Nov 12, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-1321
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
What happens
Joi 17.13.6 before 17.13.9 and 18.2.5 before 18.3.1 contains a prototype pollution vulnerability in lib/messages.js compile() and merge() that fails to reject a __proto__ language key. Attackers supplying untrusted message configuration via any().messages(), prefs, validate options or Joi.extend can replace the compiled messages prototype, altering or breaking validation error rendering and dependent logic.
What to do
- Apply the vendor's security update for joi.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| npm | @hapi/joi |
≥ 16.0.0 ≤ 17.1.1 |
no fixed version | — |
| npm | joi |
≥ 17.2.0 < 17.13.6 |
17.13.6 |
npm install joi@17.13.6 |
| npm | joi |
≥ 18.0.0 < 18.2.5 |
18.2.5 |
npm install joi@18.2.5 |
Per OSV / GitHub Advisories (GHSA-6w3j-5fw6-r9vr). Check the version in your lockfile before upgrading.
Affected products
- hapijs · joi
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.