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
    • 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-7760

CVE-2020-7760: CodeMirror ReDoS Denial of Service Flaw

CVE-2020-7760 is a Regular Expression Denial of Service (ReDoS) vulnerability in CodeMirror that can cause severe performance degradation. This article covers technical details, affected versions, and mitigation.

Published: March 11, 2026

CVE-2020-7760 Overview

CVE-2020-7760 is a Regular Expression Denial of Service (ReDoS) vulnerability affecting CodeMirror, a popular browser-based text editor component, before version 5.58.2. The vulnerability also affects the org.apache.marmotta.webjars:codemirror package. A maliciously crafted input can exploit a vulnerable regular expression pattern in the JavaScript mode parser, causing catastrophic backtracking that leads to excessive CPU consumption and application unresponsiveness.

Critical Impact

An attacker can remotely trigger denial of service conditions by providing specially crafted JavaScript code to applications using vulnerable CodeMirror instances, potentially rendering web applications unusable.

Affected Products

  • CodeMirror versions before 5.58.2
  • Oracle Application Express
  • Oracle Enterprise Manager Express User Interface 19c
  • Oracle Essbase 21.2
  • Oracle Hyperion Data Relationship Management
  • Oracle Spatial Studio

Discovery Timeline

  • October 30, 2020 - CVE-2020-7760 published to NVD
  • November 21, 2024 - Last updated in NVD database

Technical Details for CVE-2020-7760

Vulnerability Analysis

This vulnerability is classified as CWE-400 (Uncontrolled Resource Consumption). The flaw exists in the JavaScript mode syntax highlighting module of CodeMirror, specifically in the regular expression used to parse JavaScript code. The vulnerable regex pattern contains a sub-pattern (s|/*.*?*/)* that is susceptible to catastrophic backtracking when processing certain input strings.

When a user provides malformed JavaScript code containing specific character sequences, the regex engine enters an exponential time complexity state. This occurs because the pattern allows for multiple overlapping match possibilities, causing the engine to explore an enormous number of potential matches before failing.

The vulnerability is exploitable over the network without authentication, as any web application using CodeMirror for code editing or display could be targeted. An attacker simply needs to submit crafted input to the CodeMirror editor component.

Root Cause

The root cause lies in the inefficient regular expression design within the JavaScript mode parser located in mode/javascript/javascript.js. The problematic regex pattern (s|/*.*?*/)* exhibits polynomial or exponential time complexity due to:

  1. Nested quantifiers: The combination of * and ? within a repeated group creates ambiguous matching paths
  2. Overlapping alternatives: The alternation between whitespace (s) and comment patterns allows multiple ways to match the same input
  3. Greedy backtracking: When the regex fails to match, the engine backtracks through all possible combinations, leading to exponential time growth

Attack Vector

The attack vector is network-based and requires no authentication or user interaction. An attacker can exploit this vulnerability by:

  1. Identifying a web application that uses a vulnerable version of CodeMirror
  2. Crafting malicious input strings designed to trigger catastrophic regex backtracking
  3. Submitting the crafted input through any interface that processes it with CodeMirror's JavaScript mode
  4. The server or client processing the input will experience CPU exhaustion, leading to denial of service

The attack is particularly effective against applications that perform server-side syntax highlighting or validation using CodeMirror's JavaScript mode.

Detection Methods for CVE-2020-7760

Indicators of Compromise

  • Abnormally high CPU utilization on web servers or client browsers during code editing operations
  • Unresponsive web application interfaces when processing JavaScript content
  • Increased response times or timeouts when submitting code to applications using CodeMirror
  • Memory pressure on systems processing syntax highlighting requests

Detection Strategies

  • Implement application performance monitoring to detect anomalous CPU spikes during code processing operations
  • Monitor web application response times for degradation patterns indicative of ReDoS attacks
  • Scan dependencies using software composition analysis (SCA) tools to identify vulnerable CodeMirror versions
  • Review JavaScript dependencies in package.json or Maven pom.xml files for CodeMirror versions below 5.58.2

Monitoring Recommendations

  • Deploy runtime application self-protection (RASP) solutions to detect regex-based denial of service patterns
  • Configure alerts for sustained high CPU usage correlated with code editor functionality
  • Implement request timeout thresholds to prevent long-running regex operations from consuming resources
  • Monitor for patterns of repeated malformed JavaScript submissions from single sources

How to Mitigate CVE-2020-7760

Immediate Actions Required

  • Upgrade CodeMirror to version 5.58.2 or later immediately
  • Review all applications and dependencies that may include CodeMirror as a transitive dependency
  • Apply Oracle security patches for affected Oracle products (Application Express, Enterprise Manager, Essbase, Hyperion, Spatial Studio)
  • Implement input length limits on code editor fields as a temporary mitigation

Patch Information

CodeMirror has released a fix in version 5.58.2 that addresses the vulnerable regular expression pattern. The security fix is available via the GitHub Commit.

For Oracle products, apply the relevant security patches from:

  • Oracle Security Alert April 2021
  • Oracle Security Alert July 2021
  • Oracle Security Alert April 2022

Additional vulnerability details are available from Snyk JS Vulnerability #1016937 and Debian Security Advisory DSA-4789.

Workarounds

  • Implement server-side request timeouts to terminate long-running regex operations
  • Add input validation to reject excessively long or malformed JavaScript code before processing
  • Consider disabling JavaScript mode in CodeMirror if not required for application functionality
  • Deploy web application firewalls (WAF) with rules to detect and block ReDoS attack patterns
bash
# Update CodeMirror via npm
npm update codemirror@^5.58.2

# Or specify exact version in package.json
npm install codemirror@5.58.2 --save

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechCodemirror

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.34%

  • 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
  • CWE-400
  • Technical References
  • Snyk Java Vulnerability #1024450

  • Snyk Java Vulnerability #1024449

  • Snyk Java Vulnerability #1024445

  • Snyk Java Vulnerability #1024448

  • Snyk Java Vulnerability #1024446

  • Snyk Java Vulnerability #1024447

  • Snyk JS Vulnerability #1016937

  • Debian Security Advisory DSA-4789
  • Vendor Resources
  • GitHub Commit Change

  • Oracle Security Alert July 2021

  • Oracle Security Alert April 2021

  • Oracle Security Alert April 2022
  • 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