# CVE-2026-84368: joi: Prototype pollution via a `__proto__` language key in custom messages

- Severity: Low 3.7 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A: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.39%, higher than 25% of CVEs (2026-11-30)
- Published: 2026-09-01T20:36:51.859Z
- Modified: 2026-11-05T10:55:49.405Z
- Also known as: GHSA-6w3j-5fw6-r9vr
- Related: CVE-2026-122131
- Weaknesses: CWE-1321
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

joi is a schema description language and data validator for JavaScript. From 16.0.0 until 17.13.6 and 18.2.5, the @hapi/joi package through 17.1.1 and the successor joi package contain prototype pollution in lib/messages.js, where exports.compile() and exports.merge() reuse inherited objects for attacker-controlled language keys supplied through messages(), message(), prefs({ messages }), Joi.extend({ messages }), or rule({ message }). A language key named __proto__ writes properties onto Object.prototype, and constructor writes to the Object function's static properties. A consuming application that gates on the presence of an inherited property can take the wrong branch for every inspected object. The flaw is not reachable from data that joi validates and requires an application to feed untrusted input directly into schema-construction configuration. This issue is fixed in joi versions 17.13.6 and 18.2.5; no fixed @hapi/joi version is available.

(As written by CVE List.)

## Affected

- hapijs joi: >= 16.0.0, <= 17.1.1; >= 17.2.0, < 17.13.6; >= 18.0.0, < 18.2.5
- 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

- GitHub_M: 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/security/advisories/GHSA-6w3j-5fw6-r9vr> (web)
- <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)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-84368> (advisory)
- <https://github.com/hapijs/joi> (package)

## Sources

- CVE List: [CVE-2026-84368](https://www.cve.org/CVERecord?id=CVE-2026-84368), CVE Terms of Use, modified 2026-09-02
- 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-84368](https://nvd.nist.gov/vuln/detail/CVE-2026-84368), Public domain, modified 2026-09-09

---

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