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

CVE-2020-7676: AngularJS XSS Vulnerability

CVE-2020-7676 is a cross-site scripting flaw in AngularJS that exploits regex-based HTML sanitization, allowing attackers to bypass security filters. This article covers technical details, affected versions, and mitigation.

Published: March 4, 2026

CVE-2020-7676 Overview

CVE-2020-7676 is a Cross-Site Scripting (XSS) vulnerability in AngularJS versions prior to 1.8.0. The vulnerability exists in the regex-based input HTML replacement mechanism used for sanitization. By wrapping <option> elements within <select> elements, an attacker can manipulate the HTML parsing behavior, effectively bypassing the sanitization process and turning sanitized code back into unsanitized, potentially malicious content.

Critical Impact

Successful exploitation allows attackers to inject and execute arbitrary JavaScript in the context of a user's browser session, potentially leading to session hijacking, data theft, or malicious actions performed on behalf of authenticated users.

Affected Products

  • AngularJS versions prior to 1.8.0
  • Apache Ozone (using vulnerable AngularJS)
  • Apache NiFi (using vulnerable AngularJS)

Discovery Timeline

  • June 8, 2020 - CVE-2020-7676 published to NVD
  • November 20, 2025 - Last updated in NVD database

Technical Details for CVE-2020-7676

Vulnerability Analysis

This vulnerability stems from a flaw in AngularJS's HTML sanitization mechanism. The sanitizer relies on regex-based patterns to identify and neutralize potentially dangerous HTML content before it is rendered in the browser. However, the parsing behavior changes when <option> elements are nested within <select> elements, creating an inconsistency that attackers can exploit.

When HTML content containing specific combinations of <select> and <option> elements is processed, the sanitizer may incorrectly classify malicious content as safe. This allows XSS payloads to bypass the sanitization layer and execute in the victim's browser context. The vulnerability is particularly concerning because applications that rely on AngularJS's built-in sanitization assume it provides adequate protection against XSS attacks.

Root Cause

The root cause of CVE-2020-7676 lies in the discrepancy between how the regex-based sanitizer parses HTML and how browsers actually interpret the same markup. The sanitizer's regex patterns fail to account for the special parsing rules that apply when <option> elements are wrapped in <select> containers. This parsing context switch allows crafted input to be interpreted differently by the sanitizer versus the browser, enabling the bypass.

Attack Vector

The attack vector is network-based and requires user interaction. An attacker must craft malicious HTML input that exploits the parsing discrepancy and deliver it to a victim through the vulnerable application. Common attack scenarios include:

  1. Stored XSS: Injecting the payload into a database field that is later rendered by the AngularJS application
  2. Reflected XSS: Embedding the payload in a URL parameter that is reflected back to the user
  3. DOM-based XSS: Manipulating client-side data that flows through the vulnerable sanitization function

The attack exploits the behavior where wrapping <option> elements inside <select> tags changes how the content is parsed, allowing script content that was sanitized to become executable again when rendered.

Detection Methods for CVE-2020-7676

Indicators of Compromise

  • Unusual <select> and <option> element combinations in user input or application logs
  • JavaScript execution originating from user-supplied content areas
  • Browser console errors indicating unexpected script execution
  • Web application firewall (WAF) logs showing HTML injection attempts with nested select/option patterns

Detection Strategies

  • Implement Content Security Policy (CSP) headers to detect and prevent unauthorized inline script execution
  • Deploy web application firewall rules to identify XSS payload patterns involving <select> and <option> element manipulation
  • Monitor browser console logs and error reporting services for unexpected JavaScript execution
  • Conduct regular dependency audits using tools like npm audit or Snyk to identify vulnerable AngularJS versions

Monitoring Recommendations

  • Enable detailed logging for all user input processing within AngularJS applications
  • Set up alerts for CSP violation reports indicating blocked inline script attempts
  • Monitor application dependencies for outdated or vulnerable JavaScript libraries
  • Implement real-user monitoring (RUM) to detect anomalous client-side behavior

How to Mitigate CVE-2020-7676

Immediate Actions Required

  • Upgrade AngularJS to version 1.8.0 or later immediately
  • Audit all applications using AngularJS to identify affected instances
  • Implement Content Security Policy headers as a defense-in-depth measure
  • Review user input handling and add server-side validation as an additional security layer

Patch Information

The vulnerability is addressed in AngularJS version 1.8.0. Organizations should upgrade to this version or later to remediate the vulnerability. For detailed information about the fix, refer to the GitHub Pull Request Discussion and the Snyk Vulnerability Report.

Workarounds

  • Implement strict Content Security Policy (CSP) headers to prevent inline script execution
  • Add server-side HTML sanitization as a secondary defense layer before content reaches AngularJS
  • Consider using DOMPurify or similar battle-tested sanitization libraries as an additional sanitization step
  • Restrict user input to plain text where HTML is not required
bash
# Example: Add CSP header in nginx configuration
add_header Content-Security-Policy "default-src 'self'; script-src 'self'; object-src 'none';" always;

# Example: Check AngularJS version in package.json
grep "angular" package.json

# Example: Update AngularJS using npm
npm update angular@1.8.0

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechAngularjs

  • SeverityMEDIUM

  • CVSS Score5.4

  • EPSS Probability0.20%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityLow
  • AvailabilityNone
  • CWE References
  • CWE-79
  • Technical References
  • GitHub Pull Request Discussion

  • Apache Ozone Issue Thread

  • Apache Ozone Issue Thread

  • Apache Ozone Issue Thread

  • Apache Ozone Issue Thread

  • Apache Ozone Issue Thread

  • Apache Ozone Issue Thread

  • Apache Ozone Commit Thread

  • Apache Ozone Issue Thread

  • Apache NiFi Commit Thread

  • Apache Ozone Issue Thread

  • Snyk Vulnerability Report
  • Related CVEs
  • CVE-2024-8373: AngularJS srcset XSS Vulnerability

  • CVE-2025-2336: AngularJS ngSanitize XSS Vulnerability

  • CVE-2023-26117: AngularJS $resource Service ReDoS Vulnerability

  • CVE-2023-26116: AngularJS Regular Expression DoS Vulnerability
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