Vulnerability library
Security checkSeptember 08, 2026

joi: object().rename() with a template target can set the validated object's prototype

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

Low severitynpmjoi

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

Applications are affected only if a schema renames keys with a regular-expression source and a Joi.expression() / Joi.x() target that interpolates the pattern’s own match data, combined with { multiple: true }, for example .rename(/^x-(.+)$/, Joi.x('{#1}'), { multiple: true }).

Recommendation

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

  • Affected version(s): **>= 18.0.0, < 18.2.4 >= 16.0.0, < 17.13.5**
  • Patched version(s): **18.2.4 17.13.5**

References

Could your website be exposed too?

SmartScanner can check your website for joi: object().rename() with a template target can set the validated object's prototype and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated September 08, 2026