Joi 17.13.6 before 17.13.9 and 18.2.5 before 18.3.1 Prototype Replacement via __proto__ Language Key
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| hapijsjoi |
≥ 17.13.6, < 17.13.9→ 17.13.9 ≥ 18.2.5, < 18.3.1→ 18.3.1 |
17.13.9 18.3.1 |
| npmjoi |
≥ 18.0.0, < 18.2.5→ 18.2.5 |
18.2.5 |
| npm@hapi/joi |
16.0.0 – 17.1.1→ Not listed |
Not listed |
Original description The description as published by the source.
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.
Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory
References
- advisory github.com
- advisory vulncheck.com
- advisory nvd.nist.gov
- advisory nvd.nist.gov
- advisory github.com
- package github.com
- patch github.com
- patch github.com
- patch github.com
- REDHAT Red Hat
- web github.com
- web github.com
- web github.com
- web github.com
- web github.com
- web github.com