BREACHSPIDER
CVE databaseVendorsIntelFeaturesDevelopersDocsPricingSign inStart free trial

CVE-2020-15366 in Ajv.Js Ajv

Medium 5.6

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

Affects 1 product from 1 vendor. Facts below cite their sources.

CVSS 3.15.6
EPSS2.4%
EPSS percentile85th
FixUnknown

Remotely exploitable over the network, high complexity, no authentication required, no user interaction needed, impact contained to the vulnerable component.

Affected products and versions

VendorProductAffected versions
Ajv.Js Ajv 6.12.2

A product listed here is affected only at the versions shown. Use the free check to test the exact version you run.

Fix and vendor advisory

No official vendor advisory link on record. See the CVE record.

Exploitation

CISA known-exploitedNot in the CISA KEV catalog
Public exploitNot confirmed

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

Source: NIST NVD / MITRE CVE.

Record details

CVE IDCVE-2020-15366
BreachSpider IDBS-2020-GLOBAL-351938-M
CVSS vectorCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
Published2020-07-15
Last modified2026-06-17
Weakness (CWE)
SourceNVD

Weakness definitions

CWE-1321: CWE-1321

Related attack patterns (CAPEC)

CAPEC-1 Accessing Functionality Not Properly Constrained by ACLs via CWE-1321

CAPEC-77 Manipulating User-Controlled Variables via CWE-1321

CAPEC-180 Exploiting Incorrectly Configured Access Control Security Levels via CWE-1321

Mapping is CWE to CAPEC per MITRE CAPEC 3.9.

Analysis AI-written, not human-reviewed

A prototype pollution vulnerability in Ajv (Another JSON Schema Validator) 6.12.2 allows for the execution of arbitrary code through a carefully crafted JSON schema, despite recommendations against using untrusted schemas.

An attacker can exploit this vulnerability by providing a malicious JSON schema to the ajv.validate() function, which can lead to prototype pollution and potentially arbitrary code execution.

Questions

What is CVE-2020-15366?

A prototype pollution vulnerability in Ajv (Another JSON Schema Validator) 6.12.2 allows for the execution of arbitrary code through a carefully crafted JSON schema, despite recommendations against using untrusted schemas.

What is the CVSS score for CVE-2020-15366?

CVE-2020-15366 has CVSS 5.6 (Medium). Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L. EPSS: 2.4%.

Is CVE-2020-15366 actively exploited?

No confirmed active exploitation of CVE-2020-15366 as of 2026-09-25.

How do I remediate CVE-2020-15366?

Priority: HIGH.

What systems are affected by CVE-2020-15366?

CVE-2020-15366 affects Ajv.Js Ajv.

For developers and AI agents

Run this check from your own code or agent

REST API

curl -s https://breachspider.com/api/v1/assets/correlate-cves \
 -H "Authorization: Bearer $BREACHSPIDER_API_KEY" \
 -H "Content-Type: application/json" \
 -d '{"assets":[{"asset_id":"dev-1","vendor":"Ajv.Js","product":"Ajv","version":"1.0"}]}'

API reference

Python SDK

pip install breachspider

PyPI · GitHub

MCP for AI agents

# hosted: add as a connector
https://mcp.breachspider.com/mcp
# local
pipx install breachspider-mcp

Setup for Claude, ChatGPT, Cursor

Free trial: 14 days, 750 device checks, no card.

Page facts from NVD, MITRE, CISA and vendor advisories, record last modified 2026-06-17.