# CVE-2026-122131: Joi 17.13.6 before 17.13.9 and 18.2.5 before 18.3.1 Prototype Replacement via __proto__ Language Key

- Severity: Medium 6.3 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.40%, higher than 36% of CVEs (2026-12-01)
- Published: 2026-09-08T20:55:58.000Z
- Modified: 2026-11-12T21:30:23.870Z
- Also known as: GHSA-6w3j-5fw6-r9vr
- Related: CVE-2026-84368
- Weaknesses: CWE-1321
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: 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.

(As written by CVE List.)

## Affected

- hapijs joi: from 17.13.6 before 17.13.9; from 18.2.5 before 18.3.1
- joi (npm): from 17.2.0 before 17.13.6; from 18.0.0 before 18.2.5
- @hapi/joi (npm): from 16.0.0 up to 17.1.1

## Every score

- VulnCheck: CVSS:4.0 6.3 Medium `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`
- VulnCheck: CVSS:3.1 3.7 Low `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N`
- GitHub: CVSS:3.1 3.7 Low `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N`

## References

- <https://github.com/hapijs/joi/commit/76f5771e1afe527cfda24be0e1a920ffa54888d6> (patch)
- <https://github.com/hapijs/joi> (package, product)
- <https://github.com/hapijs/joi/commit/dae9467cec27e787bfdea8b276595177d52d28ec> (patch)
- <https://github.com/hapijs/joi/pull/3164> (issue-tracking, patch)
- <https://github.com/hapijs/joi/security/advisories/GHSA-6w3j-5fw6-r9vr> (related, vendor-advisory, web)
- <https://github.com/hapijs/joi/blob/v18.3.0/lib/messages.js#L64-L67> (technical-description)
- <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> (third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-84368> (advisory)
- <https://github.com/hapijs/joi/pull/3138> (web)
- <https://github.com/hapijs/joi/pull/3139> (web)
- <https://github.com/hapijs/joi/commit/8d0b808f3e874d28f9078f61b7742290989afb36> (web)
- <https://github.com/hapijs/joi/commit/90d07571923c90e3432a328fc041d1cda03d30fa> (web)

## Sources

- CVE List: [CVE-2026-122131](https://www.cve.org/CVERecord?id=CVE-2026-122131), CVE Terms of Use, modified 2026-11-05
- GitHub Advisory Database: [GHSA-6w3j-5fw6-r9vr](https://github.com/advisories/GHSA-6w3j-5fw6-r9vr), CC-BY-4.0, modified 2026-11-05
- NVD: [CVE-2026-122131](https://nvd.nist.gov/vuln/detail/CVE-2026-122131), Public domain, modified 2026-11-12

---

Page: https://cve.day/CVE-2026-122131 · Whole record: https://cve.day/CVE-2026-122131.json · Rebuilt by cve.day 2026-11-25T22:59:49.038Z
