CVE-2020-15366
Prototype Pollution in Ajv
Reported by mitre · Published July 15, 2020
ajv is fixed in 6.12.3 (npm)
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.)
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| ajv | npm | 6.12.3 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| ajv.js | ajv | |
| n/a | n/a | * |
| npm | ajv | 6.12.2 |
Timeline
- Jul 15, 2020 CVE Published
- Apr 14, 2021 EPSS Score (30 in total, the first dated here)
- Apr 4, 2022 CVE Updated
- Mar 9, 2026 Security Advisory (24 in total, the first dated here)
- Sep 4, 2026 Coalition ESS Score
- Oct 19, 2026 Distribution Patch (21 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2020-15366
vulnetix vdb fixes CVE-2020-15366
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2020-15366/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart