CVE-2026-122131
Description
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.
How to fix
- hapijs joi17.13.9, 18.3.1 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| hapijs joi | 17.13.6 ≤ v < 17.13.9, 18.2.5 ≤ v < 18.3.1 | 17.13.9, 18.3.1 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.