CVE-2026-84367
joi: object().rename() with a template target can set the validated object's prototype
Also known as GHSA-gg4h-3hg2-grpc
Mitigation
- Upgrade joi to one of 17.13.5, 18.2.4 (or later in the same release line).
Who should check
- Projects that depend on npm package joi (>= 16.0.0, < 17.13.5)
- Anyone running hapijs joi >= 16.0.0, < 17.13.5; >= 18.0.0, < 18.2.4
Vulnerability facts
- Affected
- joi >= 16.0.0, < 17.13.5
- Fixed in
- 17.13.5, 18.2.4
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 3.7 (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: High
- Privileges required: None
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: None
- Integrity impact: Low
- Availability impact: None
- EPSS
- 0.39% chance of exploitation in 30 days (percentile 25, 2026-11-26)
- CWE
- CWE-1321
- Modified
Description
joi is a schema description language and data validator for JavaScript. From 16.0.0 until 17.13.5 and 18.2.4, joi's lib/types/keys.js internals.rename() implementation used by object().rename() permits a schema that renames keys with a regular-expression source and a Joi.expression() or Joi.x() target that interpolates the pattern's own match data, combined with { multiple: true }, to derive a target from an attacker-controlled input key. An attacker can send x-__proto__ with an object value, causing the target to render as __proto__ and set the prototype of the object returned by validate() instead of creating an own key. The global Object.prototype is not modified, so the effect is confined to the object returned by that validation call. Static-string targets and schemas using the default { multiple: false } are not affected. This issue is fixed in versions 17.13.5 and 18.2.4.
Affected and fixed versions
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-84367. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-84367.md Affected: joi >= 16.0.0, < 17.13.5 Fixed in: 17.13.5, 18.2.4 Steps: 1. Search this machine and project for joi (npm), hapijs joi: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
Patches
FAQ
Is CVE-2026-84367 being exploited?
There is no confirmed exploitation: CVE-2026-84367 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.39% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-84367?
Low: CVSS 3.7 (v3.1, scored by CNA). Remote, no login needed. The attack needs conditions outside the attacker's control, which makes it harder.
Which versions are affected by CVE-2026-84367?
joi >= 16.0.0, < 17.13.5.
Is there a fix for CVE-2026-84367?
Yes. Fixed in 17.13.5, 18.2.4. Upgrade joi to one of 17.13.5, 18.2.4 (or later in the same release line).
How do I check if I'm affected by CVE-2026-84367?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.