CVE-2026-122131
published medium CVSS 4.0 · 6.3Joi 17.13.6 before 17.13.9 and 18.2.5 before 18.3.1 Prototype Replacement via __proto__ Language Key
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| hapijs | — | joi17.13.6 to < 17.13.9 · 18.2.5 to < 18.3.1 · Other versions: unaffected | Affected | Not stated | VulnCheck |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 6.3 / 10
- Severity
- medium
- Provider
- VulnCheck · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 3.7 | low | VulnCheck · cna | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| hapijs | joi | 17.13.6 to < 17.13.9 (affected · semver)18.2.5 to < 18.3.1 (affected · semver)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-1321 Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')
References
7- https://github.com/hapijs/joi
- https://github.com/hapijs/joi/blob/v18.3.0/lib/messages.js#L64-L67
- Patch Commit https://github.com/hapijs/joi/commit/76f5771e1afe527cfda24be0e1a920ffa54888d6
- https://github.com/hapijs/joi/commit/dae9467cec27e787bfdea8b276595177d52d28ec
- https://github.com/hapijs/joi/pull/3164
- GitHub Security Advisory (GHSA-6w3j-5fw6-r9vr) https://github.com/hapijs/joi/security/advisories/GHSA-6w3j-5fw6-r9vr
- VulnCheck Advisory: Joi 17.13.6 before 17.13.9 and 18.2.5 before 18.3.1 Prototype Replacement via __proto__ Language Key https://www.vulncheck.com/advisories/joi-17.13.6-before-17.13.9-and-18.2.5-before-18.3.1-prototype-replacement-via-proto-language-key
Provider assertions
2VulnCheck · cna
Joi 17.13.6 before 17.13.9 and 18.2.5 before 18.3.1 Prototype Replacement via __proto__ Language Key
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 3cb9fea9a886c40dcc85275b5ff78dc3b914c28a0ca2f374e717c0565a8bbff2
- Ingested
- 07 Nov 2026, 23:40:33 UTC
- Source record
- Official CVE record