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-2023-23623

CVE-2023-23623: Electronjs Electron XSS Vulnerability

CVE-2023-23623 is an XSS vulnerability in Electronjs Electron that bypasses Content-Security-Policy when sandbox is disabled. This post covers the technical details, affected versions, security impact, and mitigation steps.

Published: February 4, 2026

CVE-2023-23623 Overview

CVE-2023-23623 is a critical security vulnerability in the Electron framework that allows Content-Security-Policy (CSP) bypass in renderer processes with disabled sandbox. Electron is a widely-used framework for building cross-platform desktop applications using JavaScript, HTML, and CSS. When a CSP is configured to disallow eval() by setting a script-src directive without the unsafe-eval option, this policy is not properly enforced in renderers where sandbox: false is set in the webPreferences object.

This security flaw allows attackers to execute methods like eval() and new Function() despite explicit CSP restrictions, significantly expanding the attack surface for applications built on affected Electron versions.

Critical Impact

Applications using Electron versions 22.x and 23.x with disabled sandbox are vulnerable to CSP bypass, enabling arbitrary JavaScript code execution via eval() and new Function() methods that should be blocked by security policies.

Affected Products

  • Electron 22.0.0 (including all beta releases: beta1 through beta8)
  • Electron 23.0.0-alpha1
  • All Electron applications with sandbox: false in webPreferences

Discovery Timeline

  • 2023-09-06 - CVE CVE-2023-23623 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2023-23623

Vulnerability Analysis

This vulnerability stems from improper enforcement of Content-Security-Policy directives in Electron's renderer processes when sandbox mode is disabled. The CSP mechanism is designed to prevent execution of inline scripts and dynamic code evaluation through eval() and similar functions. However, when a renderer is initialized with sandbox: false in the webPreferences configuration, the CSP restrictions are not properly applied, creating a security gap.

The flaw is classified under CWE-670 (Always-Incorrect Control Flow Implementation), indicating that the control flow logic responsible for enforcing CSP rules fails to execute correctly under specific conditions—namely when the sandbox is disabled.

Root Cause

The root cause lies in Electron's handling of Content-Security-Policy enforcement across different renderer contexts. The CSP enforcement mechanism appears to be tightly coupled with the sandbox feature, causing the security policy to be bypassed when sandbox is disabled. This design flaw means that even when developers explicitly configure a restrictive CSP without unsafe-eval, the policy is ineffective in non-sandboxed renderers.

Attack Vector

The vulnerability is exploitable through network-based attack vectors. An attacker who can inject or control content loaded in an Electron application's renderer process can leverage this bypass to execute arbitrary JavaScript code using eval() or new Function() constructors. This is particularly dangerous in scenarios where:

  • The application loads remote content or third-party resources
  • An attacker achieves a cross-site scripting (XSS) position within the application
  • The application processes untrusted input that reaches the renderer

The vulnerability allows attackers to bypass developer-intended security restrictions, potentially leading to remote code execution, data exfiltration, or further exploitation of the underlying system depending on the application's privileges and Node.js integration settings.

Detection Methods for CVE-2023-23623

Indicators of Compromise

  • Unexpected eval() or new Function() calls in application logs or monitoring systems
  • JavaScript execution patterns that should be blocked by configured CSP rules
  • Anomalous script behavior in Electron renderer processes
  • Evidence of dynamic code generation or execution in non-sandboxed renderer contexts

Detection Strategies

  • Audit Electron application configurations for sandbox: false settings in webPreferences
  • Implement runtime monitoring for eval() and new Function() invocations
  • Review CSP violation reports for unexpected allowances or missing violation logs
  • Monitor for signs of code injection or XSS exploitation in Electron applications

Monitoring Recommendations

  • Enable CSP violation reporting to detect attempted policy bypasses
  • Implement application-level logging for dynamic code execution methods
  • Deploy endpoint detection and response (EDR) solutions like SentinelOne Singularity to detect anomalous JavaScript execution patterns
  • Regularly audit renderer process configurations across all Electron applications

How to Mitigate CVE-2023-23623

Immediate Actions Required

  • Upgrade Electron to version 22.0.1 or later for the 22.x release line
  • Upgrade Electron to version 23.0.0-alpha.2 or later for the 23.x release line
  • Enable sandbox mode by setting sandbox: true in the webPreferences object for all renderers
  • Review and audit all Electron application configurations for insecure renderer settings

Patch Information

The Electron team has addressed this vulnerability in the following versions:

  • Version 22.0.1 - Contains the fix for the 22.x major release line
  • Version 23.0.0-alpha.2 - Contains the fix for the 23.x major release line

Organizations should upgrade to the latest stable version of Electron as recommended by the maintainers. For detailed information, refer to the GitHub Security Advisory GHSA-gxh7-wv9q-fwfr.

Workarounds

  • Enable sandbox: true on all renderers if upgrading is not immediately possible
  • Implement additional input validation and sanitization to reduce XSS attack surface
  • Use contextIsolation and disable nodeIntegration to limit potential exploitation impact
  • Review and strengthen CSP configurations as a defense-in-depth measure
javascript
// Secure webPreferences configuration example
const mainWindow = new BrowserWindow({
  webPreferences: {
    sandbox: true,  // Enable sandbox to enforce CSP properly
    contextIsolation: true,  // Isolate preload scripts from renderer
    nodeIntegration: false,  // Disable Node.js in renderer
    webSecurity: true  // Ensure web security features are enabled
  }
});

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechElectronjs

  • SeverityCRITICAL

  • CVSS Score9.8

  • EPSS Probability0.50%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-670
  • Vendor Resources
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-34767: Electron XSS Vulnerability

  • CVE-2026-34766: Electron Auth Bypass Vulnerability

  • CVE-2026-34768: Electron Auth Bypass Vulnerability

  • CVE-2026-34769: Electronjs Electron 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