Key Renaming Vulnerability in joi Schema Validator by Hapi.js
CVE-2026-84367

3.7LOW

Key Information:

Vendor

Hapijs

Status
Vendor
CVE Published:
1 September 2026

What is CVE-2026-84367?

The joi library for JavaScript has a vulnerability within its key renaming functionality, where specific regex patterns can be exploited. When using object().rename() with an attacker-controlled input key, there is a risk that the object returned by the validate() function may wrongly set its prototype via the proto property. This could lead to unintended behavior in the application, as prototype manipulation can enable bypassing of security controls. The issue is resolved in versions 17.13.5 and 18.2.4, making upgrades essential to ensure application integrity.

Affected Version(s)

joi >= 16.0.0, < 17.13.5 < 16.0.0, 17.13.5

joi >= 18.0.0, < 18.2.4 < 18.0.0, 18.2.4

References

CVSS V3.1

Score:
3.7
Severity:
LOW
Confidentiality:
None
Integrity:
Low
Availability:
None
Attack Vector:
Network
Attack Complexity:
High
Privileges Required:
None
User Interaction:
None
Scope:
Unchanged

Timeline

  • Vulnerability published

  • Vulnerability Reserved

.