ADVISORIES

GitHub Advisory Database

GHSA-wr44-6hxh-3jwq

joi messages compilation allows prototype replacement through __proto__ error codes

Moderate CVE-2026-90771

Details

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 packages

EcosystemPackageAffected versions
npmjoi
All versions before 17.13.8 (fixed in 17.13.8)
npmjoi
From 18.0.0 before 18.2.9 (fixed in 18.2.9)

References