CVE-2026-90771
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
Summary
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.
Affected Software
| Vendor | Product | Version Range | Status |
|---|---|---|---|
| hapijs | joi | 16.0.0 < 17.13.8 | affected |
| hapijs | joi | 18.0.0 < 18.2.9 | affected |
Weaknesses
- CWE-1321: Improperly Controlled Modification of Object Prototype Attributes ('Prototype Pollution')
References
- https://github.com/hapijs/joi/issues/3150
- https://github.com/hapijs/joi
- https://github.com/hapijs/joi/blob/v18.2.8/lib/messages.js
- https://github.com/hapijs/joi/commit/5b8333c9177e08b4ef4ed02903c2d657084e7afb
- https://www.vulncheck.com/advisories/joi-before-17.13.8-and-18.2.9-prototype-pollution-via-messages
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.