Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2020-15366

CVE-2020-15366: Ajv.js Ajv RCE Vulnerability

CVE-2020-15366 is a remote code execution vulnerability in Ajv.js Ajv caused by prototype pollution in crafted JSON schemas. Attackers can execute arbitrary code through malicious schemas. This article covers technical details.

Published: March 4, 2026

CVE-2020-15366 Overview

CVE-2020-15366 is a prototype pollution vulnerability discovered in the ajv.validate() function of Ajv (Another JSON Schema Validator) version 6.12.2. This vulnerability allows an attacker to craft a malicious JSON schema that, when processed by the validator, enables prototype pollution attacks that can lead to arbitrary code execution. While the Ajv documentation recommends against using untrusted schemas, the expected worst-case scenario for an untrusted schema should be denial of service—not code execution, making this vulnerability particularly concerning.

Critical Impact

A carefully crafted JSON schema can pollute JavaScript object prototypes, potentially enabling remote code execution in applications that process untrusted JSON schemas through Ajv validation.

Affected Products

  • Ajv (Another JSON Schema Validator) version 6.12.2
  • Applications using ajv.js ajv for JSON schema validation
  • Node.js applications with vulnerable Ajv dependencies

Discovery Timeline

  • 2020-07-15 - CVE-2020-15366 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2020-15366

Vulnerability Analysis

This prototype pollution vulnerability exists within the JSON schema validation logic of Ajv version 6.12.2. Prototype pollution is a class of vulnerabilities specific to JavaScript where an attacker manipulates the prototype chain of JavaScript objects. By exploiting this flaw, an attacker can inject properties into existing JavaScript object prototypes, which then become accessible to all objects that inherit from those prototypes.

In the context of Ajv, the vulnerability manifests when the ajv.validate() function processes a specially crafted JSON schema. The malicious schema exploits insufficient property validation during schema compilation, allowing an attacker to modify the Object.prototype or other built-in prototypes. This can cascade into serious security implications including arbitrary code execution, denial of service, or property injection attacks.

Root Cause

The root cause of CVE-2020-15366 lies in improper handling of object properties during JSON schema processing. The Ajv library failed to adequately sanitize or validate schema properties that could reference or modify prototype chain elements. Specifically, the vulnerability stems from the library's handling of special JavaScript property names like __proto__, constructor, or prototype within schema definitions. When these properties are encountered in a malicious schema, they are processed in a way that allows modification of the JavaScript prototype chain rather than being treated as regular schema properties.

Attack Vector

The attack vector for this vulnerability is network-based and requires no authentication or user interaction, though it does have high attack complexity. An attacker must be able to supply a malicious JSON schema to an application using vulnerable versions of Ajv. Attack scenarios include:

Applications that accept JSON schemas from external sources, such as API endpoints that allow users to define validation rules, configuration systems that load schemas from untrusted locations, or development tools that process user-provided schemas.

Once a malicious schema is processed by ajv.validate(), the prototype pollution occurs during schema compilation. The attacker-controlled properties are then injected into the prototype chain, affecting the behavior of the application. Depending on the application's logic, this can be leveraged to bypass security checks, manipulate application state, or achieve remote code execution through gadget chains.

The vulnerability mechanism exploits the way JavaScript handles property assignment on objects when special prototype-related keys are provided in the JSON schema. Detailed technical information can be found in the HackerOne Bug Report #894259 and the GitHub AJV Release v6.12.3 notes.

Detection Methods for CVE-2020-15366

Indicators of Compromise

  • Unexpected modifications to Object.prototype or other built-in prototypes in application runtime
  • Application behavior changes indicating polluted prototype properties affecting object operations
  • JSON schemas containing suspicious properties like __proto__, constructor, or prototype
  • Error logs showing unexpected property access or type coercion failures

Detection Strategies

  • Implement dependency scanning to identify Ajv versions prior to 6.12.3 in your application's dependency tree
  • Use static analysis tools to detect code patterns that pass external input to ajv.validate() without sanitization
  • Monitor for npm audit warnings related to the ajv package in CI/CD pipelines
  • Deploy runtime application self-protection (RASP) solutions that detect prototype pollution attempts

Monitoring Recommendations

  • Enable logging for JSON schema validation operations to capture potentially malicious schema inputs
  • Implement integrity monitoring for JavaScript object prototypes in production environments
  • Set up alerts for dependency vulnerability notifications affecting the ajv package
  • Review application logs for validation errors that may indicate exploitation attempts

How to Mitigate CVE-2020-15366

Immediate Actions Required

  • Upgrade Ajv to version 6.12.3 or later immediately, as this release contains the security fix
  • Audit application code to identify all locations where JSON schemas are processed from external sources
  • Implement input validation to reject schemas containing prototype-related properties before passing to Ajv
  • Review and restrict which sources can provide JSON schemas to your application

Patch Information

The vulnerability has been addressed in Ajv version 6.12.3. The fix implements proper sanitization of schema properties to prevent prototype pollution during schema compilation. Organizations should upgrade to version 6.12.3 or the latest available version to remediate this vulnerability.

Patch and release information is available at the GitHub AJV Release v6.12.3 page. Additional vendor security information is available through the NetApp Security Advisory NTAP-20240621-0007.

Workarounds

  • Avoid processing JSON schemas from untrusted or external sources until patching is complete
  • Implement a schema whitelist approach where only pre-approved schemas are accepted for validation
  • Use Object.freeze() on critical prototype objects to prevent modification, though this may have compatibility implications
  • Deploy web application firewalls (WAF) with rules to detect and block requests containing prototype pollution payloads
bash
# Update Ajv to patched version
npm update ajv@^6.12.3

# Or install the latest version
npm install ajv@latest

# Verify installed version
npm list ajv

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechAjv

  • SeverityMEDIUM

  • CVSS Score5.6

  • EPSS Probability0.35%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L
  • Impact Assessment
  • ConfidentialityHigh
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-1321
  • Technical References
  • GitHub AJV Release v6.12.3

  • GitHub AJV Tags

  • HackerOne Bug Report #894259

  • NetApp Security Advisory NTAP-20240621-0007
  • Related CVEs
  • CVE-2025-69873: ajv JSON Validator ReDoS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English