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-2026-34767

CVE-2026-34767: Electron XSS Vulnerability

CVE-2026-34767 is an XSS vulnerability in Electronjs Electron affecting apps using custom protocol handlers. Attackers can inject response headers to manipulate cookies and security policies. Learn about affected versions and patches.

Published: April 10, 2026

CVE-2026-34767 Overview

CVE-2026-34767 is an HTTP Response Header Injection vulnerability affecting the Electron framework, a popular platform for building cross-platform desktop applications using JavaScript, HTML, and CSS. Applications that register custom protocol handlers via protocol.handle() or protocol.registerSchemesAsPrivileged(), or modify response headers via webRequest.onHeadersReceived, may be vulnerable if attacker-controlled input is reflected into response header names or values.

Critical Impact

Attackers who can influence header values may inject additional response headers, potentially affecting cookies, content security policy (CSP), or cross-origin access controls. This could lead to session hijacking, XSS bypasses, or unauthorized data access.

Affected Products

  • Electron versions prior to 38.8.6
  • Electron versions prior to 39.8.3
  • Electron versions prior to 40.8.3
  • Electron versions prior to 41.0.3

Discovery Timeline

  • 2026-04-04 - CVE-2026-34767 published to NVD
  • 2026-04-09 - Last updated in NVD database

Technical Details for CVE-2026-34767

Vulnerability Analysis

This vulnerability falls under CWE-74 (Improper Neutralization of Special Elements in Output Used by a Downstream Component), commonly known as injection vulnerabilities. The issue arises when Electron applications fail to properly sanitize user-controlled input before incorporating it into HTTP response headers.

When an application uses protocol.handle() to register custom protocol handlers or modifies response headers through webRequest.onHeadersReceived, any external input that gets reflected into header names or values without proper validation creates an injection point. Attackers can exploit this by crafting malicious input containing HTTP header delimiters (such as carriage return and line feed characters) to inject arbitrary headers into the HTTP response.

The vulnerability requires user interaction (such as clicking a malicious link), and while it does not directly impact system availability, it poses a significant threat to data integrity by allowing attackers to manipulate security-critical headers.

Root Cause

The root cause lies in insufficient input validation and sanitization within Electron's protocol handling and header modification APIs. When external input is passed to these functions without proper escaping of special characters (particularly \r\n sequences used as HTTP header delimiters), attackers can break out of the intended header context and inject additional headers.

Applications that do not reflect external input into response headers are not affected by this vulnerability. The issue specifically impacts applications where user-controlled data flows into protocol.handle(), protocol.registerSchemesAsPrivileged(), or webRequest.onHeadersReceived callback functions.

Attack Vector

This is a network-based attack that requires user interaction. An attacker would need to craft a malicious URL or input that, when processed by a vulnerable Electron application, causes unauthorized headers to be injected into the HTTP response.

The attack typically involves:

  1. Identifying an Electron application that reflects user input into response headers
  2. Crafting input containing CRLF sequences followed by malicious header content
  3. Delivering this payload to the victim (e.g., via a phishing link or malicious website)
  4. When processed, the injected headers can manipulate Set-Cookie headers (for session hijacking), Content-Security-Policy headers (to bypass XSS protections), or Access-Control-Allow-* headers (to circumvent CORS restrictions)

For technical implementation details, refer to the GitHub Security Advisory.

Detection Methods for CVE-2026-34767

Indicators of Compromise

  • Unusual or unexpected HTTP response headers in application traffic logs
  • Evidence of CRLF sequences (%0d%0a or \r\n) in application input fields or URL parameters
  • Anomalous Set-Cookie headers appearing in responses that don't match expected application behavior
  • Modified or unexpected Content-Security-Policy headers in responses

Detection Strategies

  • Review application code for uses of protocol.handle(), protocol.registerSchemesAsPrivileged(), and webRequest.onHeadersReceived that incorporate external input
  • Implement web application firewall (WAF) rules to detect and block CRLF injection attempts in request parameters
  • Conduct static code analysis to identify data flows from untrusted sources to response header APIs
  • Monitor network traffic for HTTP responses containing unexpected or duplicate headers

Monitoring Recommendations

  • Enable detailed logging for custom protocol handlers and header modification callbacks in Electron applications
  • Implement security information and event management (SIEM) rules to alert on potential header injection patterns
  • Regularly audit Electron application dependencies and ensure framework versions are up to date
  • Deploy endpoint detection and response (EDR) solutions to monitor for exploitation attempts against desktop applications

How to Mitigate CVE-2026-34767

Immediate Actions Required

  • Upgrade Electron to patched versions: 38.8.6, 39.8.3, 40.8.3, or 41.0.3
  • Audit all uses of protocol.handle(), protocol.registerSchemesAsPrivileged(), and webRequest.onHeadersReceived for external input handling
  • Implement input validation to strip or reject CRLF characters from any data used in response headers
  • Consider implementing a Content Security Policy at the application level as defense-in-depth

Patch Information

Security patches are available in the following Electron versions:

BranchPatched Version
38.x38.8.6
39.x39.8.3
40.x40.8.3
41.x41.0.3

Organizations should update to the appropriate patched version for their release branch. For detailed patch information, see the GitHub Security Advisory.

Workarounds

  • Sanitize all external input before using it in response headers by removing or encoding CRLF characters (\r, \n, %0d, %0a)
  • Implement allowlist validation for header values, accepting only known-safe characters
  • Avoid reflecting user-controlled input into response headers whenever possible
  • Apply the principle of least privilege by limiting which protocols can be registered via protocol.registerSchemesAsPrivileged()
bash
# Example: Check Electron version in your application
npx electron --version

# Update Electron to a patched version
npm update electron@38.8.6
# or
npm update electron@39.8.3
# or
npm update electron@40.8.3
# or
npm update electron@41.0.3

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechElectronjs

  • SeverityMEDIUM

  • CVSS Score6.5

  • EPSS Probability0.03%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityNone
  • CWE References
  • CWE-74
  • Vendor Resources
  • GitHub Security Advisory
  • Related CVEs
  • CVE-2023-23623: Electronjs 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