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-2025-64496

CVE-2025-64496: Open WebUI Code Injection RCE Vulnerability

CVE-2025-64496 is a code injection vulnerability in Open WebUI that enables remote code execution through malicious SSE events. Attackers can steal tokens and take over accounts. This article covers technical details, affected versions, impact, and mitigation strategies.

Published: March 11, 2026

CVE-2025-64496 Overview

CVE-2025-64496 is a code injection vulnerability affecting Open WebUI, a self-hosted artificial intelligence platform designed to operate entirely offline. The vulnerability exists in the Direct Connections feature and allows malicious external model servers to execute arbitrary JavaScript in victim browsers via Server-Sent Event (SSE) execute events. Successful exploitation can lead to authentication token theft, complete account takeover, and when chained with the Functions API, enables remote code execution on the backend server.

Critical Impact

This vulnerability enables a multi-stage attack chain that escalates from client-side JavaScript injection to full backend server compromise through authentication token theft and abuse of the Functions API.

Affected Products

  • Open WebUI versions 0.6.224 and prior
  • openwebui:open_webui (all versions before 0.6.35)

Discovery Timeline

  • 2025-11-08 - CVE-2025-64496 published to NVD
  • 2025-11-26 - Last updated in NVD database

Technical Details for CVE-2025-64496

Vulnerability Analysis

This vulnerability is classified as CWE-95 (Improper Neutralization of Directives in Dynamically Evaluated Code), commonly known as code injection. The flaw resides in the Direct Connections feature of Open WebUI, which allows users to connect to external model servers. When a victim connects to a malicious model server, the attacker can leverage Server-Sent Events (SSE) to inject and execute arbitrary JavaScript code within the victim's browser context.

The attack chain is particularly dangerous because it enables a progression from initial client-side code execution to full backend server compromise. Once an attacker achieves JavaScript execution in the victim's browser, they can steal authentication tokens, effectively taking over the victim's account. With elevated privileges, the attacker can then leverage the Functions API to achieve remote code execution on the Open WebUI backend server.

Root Cause

The root cause of this vulnerability is insufficient input validation and sanitization of SSE execute events received from external model servers. The Direct Connections feature fails to properly neutralize or validate the content of SSE messages before processing them, allowing malicious JavaScript payloads embedded in these events to be executed in the browser context.

Attack Vector

The attack requires the victim to enable Direct Connections (which is disabled by default) and add the attacker's malicious model URL to their Open WebUI instance. This is typically achievable through social engineering tactics targeting administrators and subsequent users. Once a malicious model server URL is configured:

  1. The victim's browser establishes an SSE connection to the attacker-controlled server
  2. The malicious server sends specially crafted SSE execute events containing JavaScript payloads
  3. The vulnerable Open WebUI client processes these events without proper sanitization
  4. Arbitrary JavaScript executes in the victim's browser context
  5. The attacker steals authentication tokens and gains account access
  6. Using compromised credentials, the attacker leverages the Functions API for backend RCE

The vulnerability requires network access and user interaction, as the victim must be convinced to add the malicious model URL. However, once this prerequisite is met, the exploitation is straightforward with low attack complexity.

Detection Methods for CVE-2025-64496

Indicators of Compromise

  • Unexpected external model server URLs configured in Direct Connections settings
  • Unusual outbound SSE connections to unfamiliar or suspicious domains
  • Authentication token access from unexpected IP addresses or user agents
  • Unauthorized modifications to Functions API configurations
  • Signs of data exfiltration or account behavior anomalies

Detection Strategies

  • Monitor network traffic for SSE connections to external model servers, especially newly added or untrusted domains
  • Implement logging for all Direct Connections configuration changes and additions of new model URLs
  • Enable browser-side Content Security Policy (CSP) monitoring to detect unauthorized script execution attempts
  • Review Functions API access logs for unusual or unauthorized activity patterns

Monitoring Recommendations

  • Deploy network monitoring to track all outbound connections from Open WebUI instances
  • Implement alerting for administrative configuration changes, particularly Direct Connections modifications
  • Monitor authentication token usage patterns for anomalies indicating potential theft
  • Establish baseline behavior for Functions API usage and alert on deviations

How to Mitigate CVE-2025-64496

Immediate Actions Required

  • Upgrade Open WebUI to version 0.6.35 or later immediately
  • Audit all configured Direct Connections and remove any untrusted or suspicious model server URLs
  • Review user accounts for signs of compromise, especially admin accounts
  • Disable the Direct Connections feature if not strictly required for operations
  • Rotate authentication tokens for all users as a precautionary measure

Patch Information

The vulnerability has been fixed in Open WebUI version 0.6.35. The fix is available via the official GitHub commit. Organizations should upgrade to the patched version as soon as possible. For complete technical details about the vulnerability, refer to the GitHub Security Advisory GHSA-cm35-v4vp-5xvx.

Workarounds

  • Keep Direct Connections disabled (the default setting) until the patch can be applied
  • Implement strict allowlisting for external model server URLs if Direct Connections must be enabled
  • Deploy network-level controls to restrict outbound connections from Open WebUI to only trusted endpoints
  • Educate administrators and users about social engineering risks related to adding external model URLs
  • Implement additional authentication controls and monitoring for the Functions API

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

  • Vulnerability Details
  • TypeRCE

  • Vendor/TechOpenwebui

  • SeverityHIGH

  • CVSS Score8.0

  • EPSS Probability0.17%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityHigh
  • AvailabilityHigh
  • CWE References
  • CWE-95
  • Technical References
  • GitHub Security Advisory
  • Vendor Resources
  • GitHub Commit Update
  • Related CVEs
  • CVE-2026-28788: Open WebUI Privilege Escalation Flaw

  • CVE-2026-29071: Open WebUI Information Disclosure Flaw

  • CVE-2026-28786: Open WebUI Information Disclosure Flaw
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