Joi 17.13.6 before 17.13.9 and 18.2.5 before 18.3.1 Prototype Replacement via __proto__ Language Key
- CVE-2026-122131
- GHSA-6w3j-5fw6-r9vr
- GHSA-gw37-7cc7-xmm6
- EUVD-2026-117085
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.
Text from the CVE.org record.
Recommendation
hapijs joi
- If you run a version from 18.2.5 to before 18.3.1update to 18.3.1 or laterMinor version change: check the release notes
- If you run 17.13.xupdate to 17.13.9 or laterPatch update: breaking changes are unlikely
joi
- If you run a version from 18.0.0 to before 18.2.5update to 18.2.5 or laterMinor version change: check the release notesjoi 18.2.5 on its registry (opens in a new tab)
- If you run a version from 17.2.0 to before 17.13.6update to 17.13.6 or laterMinor version change: check the release notesjoi 17.13.6 on its registry (opens in a new tab)
Taken from the version ranges the sources state. Check the vendor advisory: nothing is said about versions the ranges do not list. Breaking-change risk is read from the version numbers only.
Affected
hapijs joi
Affected versions Fixed in from 18.2.5 to before 18.3.1 18.3.1 from 17.13.6 to before 17.13.9 17.13.9 @hapi/joinpm
Affected versions Fixed in from 16.0.0 up to 17.1.1 none stated joinpm
Affected versions Fixed in from 18.0.0 to before 18.2.5 18.2.5 from 17.2.0 to before 17.13.6 17.13.6
Product versions from the CVE.org record.
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.