CVE-2026-90771
MEDIUM 6.3CVSS 4.0joi messages compilation allows prototype replacement through __proto__ error codes
joi before versions 17.13.8 and 18.2.9 contains a prototype pollution vulnerability in the messages compilation function that accepts proto as an error code. Attackers can supply proto keys in custom messages to replace the returned object's prototype, breaking downstream code relying on Object.prototype methods.
- Published
- 13 Sep 2026
- Last modified
- 5 Oct 2026
- Assigned by
- disclosure@vulncheck.com
- NVD status
- Awaiting Analysis
- Weakness
- CWE-1321
- Also known as
- GHSA-wr44-6hxh-3jwq
- Sources
- NVDJSONOSV GHSA-wr44-6hxh-3jwqJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | disclosure@vulncheck.com (Secondary) | CVSS 4.0 | MEDIUM 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | 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 | |
| NVD | disclosure@vulncheck.com (Secondary) | CVSS 3.1 | LOW 3.7 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | LOW 3.7 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | npm | joi | < 17.13.8 | 17.13.8 |
| OSV | npm | joi | >= 18.0.0, < 18.2.9 | 18.2.9 |
References
- https://github.com/hapijs/joi · PACKAGE
- https://github.com/hapijs/joi/blob/v18.2.8/lib/messages.js · WEB
- https://github.com/hapijs/joi/commit/5b8333c9177e08b4ef4ed02903c2d657084e7afb · WEB
- https://github.com/hapijs/joi/issues/3150 · WEB
- https://www.vulncheck.com/advisories/joi-before-17.13.8-and-18.2.9-prototype-pollution-via-messages · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-90771 · ADVISORY
- https://github.com/hapijs/joi/pull/3151 · WEB
- https://github.com/hapijs/joi/pull/3153 · WEB
- https://github.com/hapijs/joi/commit/1d2001cad9971327a62c9fd8eb1afec20cd784d2 · WEB
- https://github.com/hapijs/joi/releases/tag/v17.13.8 · WEB
- https://github.com/hapijs/joi/releases/tag/v18.2.9 · WEB
History
- 25 Nov 2026 21:05 UTC · NVD: first stored (published 13 Sep 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 13 Sep 2026)