Vulnerability library
Security checkJune 21, 2024

Prototype Pollution in Ajv

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

Medium severitynpmajv

Check your website

Find this and other vulnerabilities with a free scan.

Your scan runs on your computer. No account required.

Description

An issue was discovered in ajv.validate() in Ajv (aka Another JSON Schema Validator) 6.12.2. A carefully crafted JSON schema could be provided that allows execution of other code by prototype pollution. (While untrusted schemas are recommended against, the worst case of an untrusted schema should be a denial of service, not execution of code.)

Recommendation

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

  • Affected version(s): < 6.12.3
  • Patched version(s): 6.12.3

References

Could your website be exposed too?

SmartScanner can check your website for Prototype Pollution in Ajv and gives you actionable findings to investigate.

Start a free scan

Related Issues

See something that needs correcting? Let us knowUpdated June 21, 2024