Vulnerability library
Security checkOctober 05, 2026

joi messages compilation allows prototype replacement through __proto__ error codes

Understand the exposure, see the recommended fix, and check whether your own website has related weaknesses.

Medium severitynpmjoi

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

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.

Recommendation

Update the joi package to the latest compatible version. Followings are version details:

  • Affected version(s): **>= 18.0.0, < 18.2.9 < 17.13.8**
  • Patched version(s): **18.2.9 17.13.8**

References

Could your website be exposed too?

SmartScanner can check your website for joi messages compilation allows prototype replacement through __proto__ error codes and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated October 05, 2026