A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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-2023-23623

CVE-2023-23623: Electronjs Electron XSS Vulnerability

CVE-2023-23623 is an XSS flaw in Electronjs Electron that bypasses Content-Security-Policy in sandboxed renderers, allowing unsafe code execution. This article covers technical details, affected versions, and mitigations.

Updated: May 15, 2026

CVE-2023-23623 Overview

CVE-2023-23623 is a security control bypass in Electron, the framework for building cross-platform desktop applications with JavaScript, HTML, and CSS. A Content-Security-Policy (CSP) directive that disables eval is not honored in renderer processes when sandbox: false is set in the webPreferences object. Affected renderers continue to permit eval() and new Function() even when the script-src directive omits unsafe-eval. The flaw expands the attack surface available to adversaries who can inject script into an Electron renderer. It affects Electron 22.x and 23.x release lines and is fixed in 22.0.1 and 23.0.0-alpha.2.

Critical Impact

Attackers who achieve script injection in a sandbox-disabled renderer can execute arbitrary JavaScript through eval() despite an application's CSP, escalating injection bugs into broader code execution paths.

Affected Products

  • Electron 22.0.0 (including beta1 through beta8)
  • Electron 23.0.0-alpha1
  • Applications built on Electron 22.x or 23.x that set sandbox: false in webPreferences

Discovery Timeline

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

Technical Details for CVE-2023-23623

Vulnerability Analysis

Electron renderer processes execute web content using Chromium. Content-Security-Policy is the primary browser-level control that restricts which script sources may execute and whether dynamic code evaluation is permitted. Applications commonly omit unsafe-eval from script-src to block eval() and the Function constructor, which are frequent sinks in client-side injection attacks.

In Electron 22.x and the early 23.x preview line, that CSP directive is silently ignored in renderers configured with sandbox: false. The Node.js-integrated execution path that runs alongside such renderers does not enforce the CSP eval restriction. An attacker who lands a script injection in this context can therefore reach eval() and new Function() even when the developer believed CSP had locked those primitives down.

This is a control-flow management weakness tracked under CWE-670. The classification reflects that the renderer takes an alternate, less-restricted execution path that the policy author did not anticipate.

Root Cause

The CSP enforcement logic for the unsafe-eval source expression is tied to the sandboxed renderer path. When sandbox: false is configured, the renderer follows a code path that does not consult the application's script-src directive before permitting dynamic code evaluation. Defense-in-depth assumptions made at the CSP layer are therefore broken.

Attack Vector

Exploitation requires an injection primitive in the renderer. A typical chain begins with a cross-site scripting flaw, an unsafe template binding, or untrusted data rendered into the DOM. Once script executes, the attacker calls eval() or constructs a function with new Function('...') to run payloads that should have been blocked. Because Electron renderers with sandbox: false often expose Node.js integration or contextBridge APIs, the secondary execution can pivot toward filesystem, process, or IPC abuse depending on application configuration.

No public proof-of-concept exploit is recorded, and the issue is not listed in the CISA Known Exploited Vulnerabilities catalog. Refer to the GitHub Security Advisory GHSA-gxh7-wv9q-fwfr for upstream technical detail.

Detection Methods for CVE-2023-23623

Indicators of Compromise

  • Renderer processes spawned from Electron 22.x or 23.x binaries where the parent application configures sandbox: false.
  • Unexpected child processes or file writes originating from an Electron renderer that should be confined by CSP.
  • Outbound network connections from renderer processes to domains not referenced by the application's connect-src policy.

Detection Strategies

  • Inventory Electron-based desktop applications and identify those shipping with electron runtime versions in the 22.0.0–22.0.0 and 23.0.0-alpha1 ranges.
  • Inspect application source or unpacked app.asar archives for BrowserWindow constructions that pass sandbox: false or omit the sandbox key while disabling contextIsolation.
  • Static-scan renderer code for dynamic evaluation sinks such as eval(, new Function(, setTimeout with string arguments, and setInterval with string arguments.

Monitoring Recommendations

  • Log Electron renderer process creation, command-line arguments, and child process activity from endpoint telemetry.
  • Alert on Electron applications loading remote content over HTTP or rendering untrusted user-supplied HTML into privileged renderers.
  • Track Electron version strings reported by software inventory tools and flag deployments pinned to the affected 22.x or 23.x preview builds.

How to Mitigate CVE-2023-23623

Immediate Actions Required

  • Upgrade Electron to 22.0.1 or later within the 22.x line, or to 23.0.0-alpha.2 or later within the 23.x line. Upgrading to the latest stable Electron release is recommended.
  • Audit all BrowserWindow and webview configurations and set sandbox: true for every renderer that loads untrusted or remote content.
  • Re-review script-src directives across the application and confirm that production renderers do not rely on eval() so that unsafe-eval can remain absent.

Patch Information

The upstream fix is delivered in Electron 22.0.1 and 23.0.0-alpha.2. Maintainers backported the CSP enforcement so that script-src without unsafe-eval is honored regardless of the renderer's sandbox state. Full advisory text is published at the Electron GitHub Security Advisory.

Workarounds

  • Enable sandbox: true on every BrowserWindow and webview in the application as a complete mitigation when upgrading is not immediately possible.
  • Remove all uses of eval(), new Function(), and string-based setTimeout/setInterval calls from renderer-side code to eliminate the dynamic evaluation sink.
  • Restrict renderers to local, trusted content and disable Node.js integration in any window that must load remote resources.
bash
# Configuration example: harden BrowserWindow creation in main.js
# const { BrowserWindow } = require('electron')
# const win = new BrowserWindow({
#   webPreferences: {
#     sandbox: true,
#     contextIsolation: true,
#     nodeIntegration: false
#   }
# })
# win.loadFile('index.html')

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-34779: Electron Framework RCE Vulnerability

  • CVE-2026-34766: Electron Auth Bypass Vulnerability

  • CVE-2026-34768: Electron Auth Bypass Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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