Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-2026-40911

CVE-2026-40911: WWBN AVideo WebSocket XSS Vulnerability

CVE-2026-40911 is a cross-site scripting flaw in WWBN AVideo's YPTSocket WebSocket server that enables unauthenticated attackers to execute arbitrary JavaScript in victims' browsers. This post covers technical details, affected versions, impact, and mitigation steps.

Published: April 23, 2026

CVE-2026-40911 Overview

CVE-2026-40911 is a critical Code Injection vulnerability affecting WWBN AVideo, an open source video platform. The YPTSocket plugin's WebSocket server relays attacker-supplied JSON message bodies to every connected client without sanitizing the msg or callback fields. On the client side, plugin/YPTSocket/script.js contains two eval() sinks fed directly by those relayed fields (json.msg.autoEvalCodeOnHTML at line 568 and json.callback at line 95). Because tokens are minted for anonymous visitors and never revalidated beyond decryption, an unauthenticated attacker can broadcast arbitrary JavaScript that executes in the origin of every currently-connected user (including administrators), resulting in universal account takeover, session theft, and privileged action execution.

Critical Impact

Unauthenticated attackers can inject and execute arbitrary JavaScript in the browsers of all connected users, including administrators, enabling universal account takeover and session hijacking.

Affected Products

  • WWBN AVideo version 29.0 and prior
  • YPTSocket plugin for AVideo
  • All AVideo deployments using the WebSocket functionality

Discovery Timeline

  • 2026-04-21 - CVE CVE-2026-40911 published to NVD
  • 2026-04-22 - Last updated in NVD database

Technical Details for CVE-2026-40911

Vulnerability Analysis

This vulnerability is classified under CWE-94 (Improper Control of Generation of Code - Code Injection). The vulnerability stems from the YPTSocket plugin's failure to sanitize user-controlled data before relaying it through WebSocket connections and subsequently evaluating it on the client side.

The attack surface is particularly severe because it affects all connected users simultaneously. When an attacker sends a malicious WebSocket message containing crafted msg.autoEvalCodeOnHTML or callback fields, the server blindly relays this payload to every connected client. The client-side JavaScript then passes these unsanitized values directly to eval() functions, executing arbitrary attacker-controlled code within the user's browser session.

The lack of proper token revalidation beyond initial decryption means anonymous visitors can obtain valid tokens and participate in WebSocket communications without any authentication barrier, making this vulnerability exploitable by completely unauthenticated attackers.

Root Cause

The root cause is twofold: server-side input validation failure combined with dangerous client-side code execution patterns. The WebSocket server in the YPTSocket plugin does not distinguish between legitimate server-generated messages and attacker-supplied messages from browser clients. Additionally, the client-side JavaScript uses eval() to execute data received from the WebSocket without any sanitization, creating a direct code injection vector.

Attack Vector

The attack is network-based and requires no authentication or user interaction. An attacker can:

  1. Connect to the AVideo WebSocket server as an anonymous visitor
  2. Obtain a valid token (minted automatically for anonymous users)
  3. Craft a malicious JSON message with code injection payloads in the msg.autoEvalCodeOnHTML or callback fields
  4. Send this message through the WebSocket connection
  5. The server relays the message to all connected clients
  6. Each client's browser executes the malicious JavaScript via eval()

The fix implemented in commit c08694bf6264eb4decceb78c711baee2609b4efd addresses this by sanitizing the dangerous fields:

php
                if (isset($json['from_identification'])) {
                    $json['from_identification'] = strip_tags((string)($msgObj->user_name ?? ''));
                }
+                // Strip eval-able fields from browser/guest messages.
+                // autoEvalCodeOnHTML is a server-to-client feature (e.g. Live/getImage.php);
+                // browser clients must not inject it into broadcasts.
+                // callback must be a valid JS identifier to prevent eval injection on clients.
+                if (empty($msgObj->isCommandLineInterface) && ($msgObj->sentFrom ?? '') !== 'php') {
+                    if (is_array($json['msg'] ?? null)) {
+                        unset($json['msg']['autoEvalCodeOnHTML']);
+                    }
+                    if (isset($json['callback']) && !preg_match('/^[a-zA-Z_][a-zA-Z0-9_]*$/', (string)$json['callback'])) {
+                        unset($json['callback']);
+                    }
+                }
                if (!empty($msgObj->send_to_uri_pattern)) {
                    $this->msgToSelfURI($json, $msgObj->send_to_uri_pattern);
                } else if (!empty($json['resourceId'])) {

Source: GitHub Commit

Detection Methods for CVE-2026-40911

Indicators of Compromise

  • WebSocket messages containing autoEvalCodeOnHTML fields from non-server sources
  • Malformed or suspicious callback values that do not match the pattern ^[a-zA-Z_][a-zA-Z0-9_]*$
  • Unexpected JavaScript execution errors in browser consoles related to WebSocket message handling
  • Session cookies or tokens being transmitted to external domains

Detection Strategies

  • Monitor WebSocket traffic for JSON messages containing autoEvalCodeOnHTML or suspicious callback field patterns
  • Implement Web Application Firewall (WAF) rules to detect and block WebSocket messages with embedded JavaScript code
  • Review server logs for unusual WebSocket connection patterns from anonymous users
  • Deploy browser-side Content Security Policy (CSP) headers to restrict eval() execution

Monitoring Recommendations

  • Enable verbose logging on the YPTSocket WebSocket server to capture all message payloads
  • Set up alerts for rapid succession of WebSocket connections from single IP addresses
  • Monitor for unexpected cross-origin requests originating from authenticated user sessions
  • Implement real-time WebSocket message inspection for potential injection payloads

How to Mitigate CVE-2026-40911

Immediate Actions Required

  • Update WWBN AVideo to a version containing the security fix (commit c08694bf6264eb4decceb78c711baee2609b4efd or later)
  • Review active sessions for any signs of compromise or unauthorized access
  • Temporarily disable the YPTSocket plugin if immediate patching is not possible
  • Force re-authentication for all users, especially administrator accounts

Patch Information

The vulnerability has been fixed in commit c08694bf6264eb4decceb78c711baee2609b4efd. The patch implements server-side validation that strips dangerous autoEvalCodeOnHTML fields from browser/guest messages and validates that callback values conform to a safe JavaScript identifier pattern (^[a-zA-Z_][a-zA-Z0-9_]*$). For more details, see the GitHub Security Advisory and the commit details.

Workarounds

  • Disable the YPTSocket plugin entirely until patching is possible
  • Implement a reverse proxy or WAF rule to filter WebSocket messages containing autoEvalCodeOnHTML or malformed callback fields
  • Restrict WebSocket connections to authenticated users only using network-level access controls
  • Deploy strict Content Security Policy headers to prevent inline script execution
bash
# Example: Disable YPTSocket plugin by renaming the plugin directory
mv /var/www/AVideo/plugin/YPTSocket /var/www/AVideo/plugin/YPTSocket.disabled

# Example: Apply restrictive CSP header in Apache
# Add to .htaccess or Apache configuration:
Header set Content-Security-Policy "script-src 'self'; object-src 'none';"

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

  • Vulnerability Details
  • TypeXSS

  • Vendor/TechWwbn Avideo

  • SeverityCRITICAL

  • CVSS Score10.0

  • EPSS Probability0.17%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-94
  • Technical References
  • GitHub Commit Details

  • GitHub Security Advisory
  • Related CVEs
  • CVE-2026-41061: WWBN AVideo Stored XSS Vulnerability

  • CVE-2026-34396: Wwbn Avideo XSS Vulnerability

  • CVE-2026-34739: Wwbn Avideo XSS Vulnerability

  • CVE-2026-34716: Wwbn Avideo XSS 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