The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
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-27511

CVE-2020-27511: Prototypejs Prototype DOS Vulnerability

CVE-2020-27511 is a Regular Expression Denial of Service flaw in Prototypejs Prototype affecting stripTags and unescapeHTML functions. Attackers can exploit this through crafted HTML tags to cause service disruption.

Published: March 4, 2026

CVE-2020-27511 Overview

A Regular Expression Denial of Service (ReDoS) vulnerability was discovered in the stripTags and unescapeHTML components of Prototype.js version 1.7.3. An attacker can exploit this vulnerability by crafting malicious HTML tags that cause the underlying regular expression engine to enter a catastrophic backtracking state, resulting in excessive CPU consumption and application unavailability.

Critical Impact

This vulnerability allows remote attackers to cause a denial of service condition by sending specially crafted HTML input, potentially rendering web applications unresponsive and affecting service availability for all users.

Affected Products

  • Prototype.js version 1.7.3
  • Web applications utilizing Prototype.js stripTags function
  • Web applications utilizing Prototype.js unescapeHTML function

Discovery Timeline

  • 2021-06-21 - CVE-2020-27511 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2020-27511

Vulnerability Analysis

This vulnerability exists within the string manipulation functions of Prototype.js, specifically in the stripTags and unescapeHTML methods. These functions use regular expressions to parse and process HTML content. The regular expressions employed are vulnerable to algorithmic complexity attacks, where certain input patterns cause the regex engine to perform an exponential number of backtracking operations.

When processing malformed or specially crafted HTML tags, the regex engine enters a state of catastrophic backtracking. This occurs because the regular expression patterns contain nested quantifiers or overlapping alternatives that create an exponential number of possible matching paths. The attack vector is network-based, requiring no authentication or user interaction, making it particularly dangerous for public-facing web applications.

Root Cause

The root cause lies in the design of the regular expression patterns used within the stripTags and unescapeHTML functions located in the Prototype.js string handling module. The regex patterns are not optimized to prevent excessive backtracking when parsing malformed HTML structures, leading to exponential time complexity under certain input conditions.

Attack Vector

The attack can be executed remotely over the network without requiring any privileges or user interaction. An attacker submits specially crafted HTML content to any input field or API endpoint that processes data using the vulnerable stripTags or unescapeHTML functions. When the application attempts to sanitize this input, the regex engine consumes excessive CPU resources, potentially locking up the server thread and causing denial of service.

The vulnerability mechanism involves sending HTML tags with specific structural characteristics that trigger catastrophic backtracking. This typically involves nested or malformed tag structures with repeated patterns that match multiple paths in the regular expression. For detailed technical analysis and proof-of-concept examples, refer to the GitHub PoC for CVE-2020-27511.

Detection Methods for CVE-2020-27511

Indicators of Compromise

  • Abnormally high CPU utilization on web servers processing user-submitted HTML content
  • Application response time degradation or timeouts when handling specific input patterns
  • Server threads or processes becoming unresponsive during string sanitization operations
  • Increased memory consumption in JavaScript runtime environments

Detection Strategies

  • Monitor server CPU utilization for sustained spikes correlated with user input processing
  • Implement request timeout monitoring to detect long-running string operations
  • Deploy application performance monitoring (APM) tools to identify slow function execution in stripTags or unescapeHTML calls
  • Analyze web application logs for repeated requests containing unusually large or complex HTML payloads

Monitoring Recommendations

  • Configure alerting for CPU utilization thresholds exceeding normal operational baselines
  • Implement input length and complexity limits at the application layer before string processing
  • Enable detailed logging for string sanitization function execution times
  • Monitor for patterns of repeated requests from single sources that may indicate ReDoS exploitation attempts

How to Mitigate CVE-2020-27511

Immediate Actions Required

  • Identify all applications using Prototype.js version 1.7.3 in your environment
  • Implement input validation and length restrictions before passing data to stripTags or unescapeHTML functions
  • Consider replacing Prototype.js with actively maintained alternatives for HTML sanitization
  • Deploy web application firewalls (WAF) with rules to detect and block malicious HTML patterns

Patch Information

Prototype.js is a legacy JavaScript framework with limited active development. Users should consult the Prototype.js official site for any available updates or security advisories. Given the framework's maintenance status, organizations should strongly consider migrating to modern, actively maintained JavaScript libraries for HTML sanitization and string manipulation tasks.

Workarounds

  • Implement request timeout limits to prevent long-running regex operations from blocking server resources
  • Add input length validation to reject excessively long or complex HTML strings before processing
  • Use alternative HTML sanitization libraries that employ non-regex-based parsing or optimized regex patterns
  • Deploy rate limiting to mitigate the impact of repeated exploitation attempts
bash
# Example: Nginx configuration to limit request body size and processing time
# Add to server or location block

client_max_body_size 1m;
client_body_timeout 10s;
proxy_read_timeout 30s;

# Limit request rate per IP
limit_req_zone $binary_remote_addr zone=html_sanitize:10m rate=10r/s;
limit_req zone=html_sanitize burst=20 nodelay;

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechPrototypejs

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability1.19%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • NVD-CWE-noinfo
  • Technical References
  • GitHub Prototype.js Source Code

  • GitHub PoC CVE-2020-27511
  • Vendor Resources
  • Prototype.js Official Site
  • Latest CVEs
  • CVE-2025-9185: Mozilla Firefox RCE Vulnerability

  • CVE-2025-9184: Mozilla Firefox RCE Vulnerability

  • CVE-2025-9180: Mozilla Firefox Auth Bypass Vulnerability

  • CVE-2025-8030: Mozilla Firefox RCE 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