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.
Severity
LOW
CVSS v3
3.7
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N · source cna
CVSS v4
6.3
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 · source cna
Exploit chance (EPSS)
0.330%
chance of exploitation in the next 30 days
higher than 26.5% of scored CVEs · 2026-11-18
CISA KEV
Not listed
Public exploit code
None public
Exploit references (NVD and CNA): 0
Metasploit modules: 0
Nuclei templates: 0
Weakness
- CWE-1321: Improperly Controlled Modification of Object Prototype Attributes
CISA SSVC decision points
| Exploitation | none |
|---|---|
| Automatable | no |
| Technical impact | partial |
| Scored | 2026-11-05 |
Timeline
- 2026-09-08GitHub advisory published (GHSA-6w3j-5fw6-r9vr)57 days before publication
- 2026-11-04Published by the CNA20:36 UTC
- 2026-11-05CISA SSVC decision recorded1 day after publication
Exploit and advisory records
GitHub advisory GHSA-6w3j-5fw6-r9vr, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| npm @hapi/joi | from 16.0.0 through 17.1.1 | |
| npm joi | from 17.2.0 before 17.13.6 | 17.13.6 |
| npm joi | from 18.0.0 before 18.2.5 | 18.2.5 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| hapijs joi | from 17.13.6 before 17.13.9fixed in 17.13.9from 18.2.5 before 18.3.1fixed in 18.3.1 | 17.13.918.3.1 |
References
- https://github.com/hapijs/joi/commit/76f5771e1afe527cfda24be0e1a920ffa54888d6
- https://github.com/hapijs/joi/commit/dae9467cec27e787bfdea8b276595177d52d28ec
- https://github.com/hapijs/joi/pull/3164
- https://github.com/hapijs/joi/security/advisories/GHSA-6w3j-5fw6-r9vr
- https://github.com/hapijs/joi
- https://github.com/hapijs/joi/blob/v18.3.0/lib/messages.js#L64-L67
- 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
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2026-122131'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2026-122131'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2026-122131'curl 'https://api.contrastcyber.com/cve_products/CVE-2026-122131'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).