Live threats

All CVEs / Ajv.js

CVE-2020-15366Ajv.js Ajv

Medium 5.6 No auth needed

Priority
49
CVSS 3.1
5.6
EPSS
2.3%
probability of exploitation in 30 days · percentile 84
Auth required
No
Published
Jul 15, 2020
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-1321
Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L

What happens

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.)

Original NVD text.

What to do

  1. Apply the vendor's security update for Ajv.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
npm ajv < 6.12.3 6.12.3 npm install ajv@6.12.3

Per OSV / GitHub Advisories (GHSA-v88g-cgmw-v5xw). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
ajv.jsajv6.12.2

Official sources

References

Links published by the sources. Open them with care.