~ / search / GHSA-wr44-6hxh-3jwq

GHSA-wr44-6hxh-3jwq

joi messages compilation allows prototype replacement through __proto__ error codes

Source: GitHub Advisory Database (reviewed) Moderate CVE-2026-90771

Packages

EcosystemPackageAffectedFixed in
npm joi < 17.13.8 17.13.8
npm joi >= 18.0.0, < 18.2.9 18.2.9

Details

As written in the advisory (Markdown source, shown as plain text).

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.

References

External links from the advisory. They lead to third-party sites.