Skip to main content

AVideo CVE-2026-40911

| EUVDEUVD-2026-24479 CRITICAL
Code Injection (CWE-94)
2026-04-21 GitHub_M GHSA-gph2-j4c9-vhhr
10.0
CVSS 3.1 · GitHub Advisory
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Request unauthenticated WebSocket token
  2. Delivery
    Connect to YPTSocket server as guest
  3. Exploit
    Broadcast JSON with malicious msg/callback
  4. Execution
    Server relays payload to all clients
  5. Persist
    Client eval() executes attacker JavaScript
  6. Impact
    Steal admin session and run privileged actions

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The YPTSocket plugin must be enabled (it ships bundled and its real-time features are commonly used), and the target's WebSocket endpoint plus getWebSocket.json.php must be reachable by the attacker; no authentication is required because tokens are minted for anonymous visitors (from_users_id=0, isAdmin=false) and accepted on decryption alone (CVSS PR:N confirms unauthenticated). The one real limiting factor is that impact is scoped to users who are connected to the WebSocket at the moment of the broadcast - the injected JavaScript executes in currently-connected clients, so an attacker maximizes value by broadcasting while an administrator or many viewers are online (e.g., during a live stream). No user interaction beyond a victim having the page open is needed (UI:N), and no non-default configuration is required other than the plugin being active.

Impact

The signals are strongly aligned toward high real-world severity. CVSS 3.1 base is 10.0 (AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H) - network-reachable, low complexity, no privileges, no user interaction, with a scope change reflecting that code executes in other users' browsers. SSVC reinforces this: exploitation=PoC, Automatable=yes, Technical Impact=total. The one moderating signal is EPSS at 0.17% (38th percentile), which is low; this reflects that mass exploitation has not yet been observed at scale, not that difficulty is high - the low complexity and public PoC mean the EPSS figure is likely to lag the true ease of exploitation rather than contradict it. It is NOT in CISA KEV, so there is no confirmation of active in-the-wild exploitation. Net: this is a genuine high priority for any internet-exposed AVideo instance with YPTSocket enabled, not a high-CVSS-but-low-real-risk case; the main uncertainty is whether an attacker actively targets a given deployment given the product's moderate footprint.

Exploit ScenarioDerived

An anonymous attacker requests a WebSocket token from getWebSocket.json.php (granted because the plugin is enabled), connects to the YPTSocket server, and broadcasts a JSON message containing a malicious callback value or a msg.autoEvalCodeOnHTML payload. The server relays it unmodified to every connected client, whose script.js passes it into eval(), so the attacker's JavaScript runs in the browser of every current viewer and administrator - stealing sessions and issuing privileged admin actions. This is automatable (SSVC Automatable=yes) and a proof-of-concept is reported to exist.

Act Now Prioritize within 24-48h. Why: CRITICAL severity.
No patch listed yet 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 24, 2026

Unauthenticated cross-user JavaScript execution in WWBN AVideo (versions 29.0 and prior) lets a remote attacker broadcast arbitrary code to every connected browser through the YPTSocket WebSocket plugin. Because anonymous visitors are issued valid socket tokens and the server relays the attacker-controlled msg and callback fields verbatim into client-side eval() sinks, any visitor can execute JavaScript in the origin of all connected users - including administrators - yielding universal account takeover, session theft, and privileged action execution. Publicly available exploit code exists (SSVC: PoC) though the flaw is not listed in CISA KEV, and EPSS is currently low at 0.17%.

RemediationAI

Upstream fix available (PR/commit); released patched version not independently confirmed - no tagged release version is provided in the source data, so apply commit c08694bf6264eb4decceb78c711baee2609b4efd (https://github.com/WWBN/AVideo/commit/c08694bf6264eb4decceb78c711baee2609b4efd) or the next tagged release above 29.0 that contains it, and consult the advisory at https://github.com/WWBN/AVideo/security/advisories/GHSA-gph2-j4c9-vhhr. The fix strips eval-able fields from browser/guest messages: it unsets json['msg']['autoEvalCodeOnHTML'] and drops any json['callback'] that is not a valid JS identifier unless the message originates from the PHP/CLI side (isCommandLineInterface or sentFrom==='php'). If you cannot patch immediately, the most effective compensating control is to disable the YPTSocket plugin (getWebSocket.json.php only issues tokens when the plugin is enabled), which removes the attack surface entirely at the cost of losing real-time features such as live chat, viewer counts, and notifications. Alternatively, block or firewall external access to the WebSocket server port and the getWebSocket.json.php endpoint so only trusted networks can obtain tokens; this breaks real-time functionality for remote/public users. Do not rely on authentication as a control here, since token issuance and acceptance do not require authentication.

Affected VersionsENISA

AVideo ≤ 29.0

Affected Packages

composer wwbn/avideo no fix
euvd avideo no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in composer, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The affected component is the YPTSocket real-time messaging plugin bundled with AVideo (cpe:2.3:a:wwbn:avideo), which runs a Ratchet-style PHP WebSocket server (Message.php / MessageSQLite.php / MessageSQLiteV2.php) paired with a browser client (plugin/YPTSocket/script.js). The root cause is CWE-94 (Code Injection): the browser client passes two server-relayed, attacker-influenced JSON fields into eval() - json.msg.autoEvalCodeOnHTML at script.js line 568 and json.callback at line 95. autoEvalCodeOnHTML is intended as a trusted server-to-client (php-origin) feature, but the server's onMessage default branch rebroadcasts guest-supplied payloads without stripping these fields. Token issuance compounds this: getWebSocket.json.php returns an encrypted token to anyone if the plugin is merely enabled, and getEncryptedInfo() sets from_users_id=0 / isAdmin=false for guests; the onOpen handler accepts the token purely on successful decryption, so no authenticated principal is ever required.

Know when Avideo gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

GitHub Advisory PRIMARY 10.0 CRITICAL
AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
vuln.today AI 10.0 CRITICAL

Unauthenticated network reach with no user interaction and trivial broadcast (AV:N/AC:L/PR:N/UI:N); scope changes as code runs in other users' browsers (S:C), enabling session theft and privileged admin actions (C/I/A:H).

3.1 AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:L/SC:H/SI:H/SA:N

Primary rating from GitHub Advisory.

CVSS VectorGitHub Advisory

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
High
Availability
High

DescriptionGitHub Advisory

WWBN AVideo is an open source video platform. In versions 29.0 and prior, 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. Commit c08694bf6264eb4decceb78c711baee2609b4efd contains a fix.

Executive ViewAI

Why It Matters

WWBN AVideo versions 29.0 and earlier contain a critical remote code execution vulnerability (CVE-2026-40911) allowing any visitor to inject and execute arbitrary JavaScript across all connected user browsers, including administrators. The flaw enables comprehensive account takeover, session hijacking, and execution of unauthorized administrative actions at scale; publicly available exploit code exists. Organizations running affected versions face immediate risk of total user and infrastructure compromise.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: restrict YPTSocket WebSocket access to internal-only or authenticated connections; segment AVideo infrastructure from critical systems and sensitive data; deploy WAF rules to validate socket messages and reject suspicious payloads; enforce mandatory re-authentication for all sensitive administrative operations; enable comprehensive logging of all socket events and client-side JavaScript execution; deploy EDR to monitor for indicators of compromise including unauthorized session activity, administrative action execution, and account takeover attempts.

Threat Intelligence Overview

EPSS Score
0.2%
Top 62% exploitable
Prevalence
Low
niche self-hosted open-source video platform, limited enterprise footprint
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity CRITICAL
CISA KEV No
Public POC No
EPSS 0.2%
Patch available No
Active threat No
Deciding rule
CRITICAL severity
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Total

Priority Score

50
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +50
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

More in Avideo

View all
CVE-2023-48728 CRITICAL POC
9.6 Jan 10

A cross-site scripting (xss) vulnerability exists in the functiongetOpenGraph videoName functionality of WWBN AVideo 11.

CVE-2024-31819 CRITICAL POC
9.8 Apr 10

An issue in WWBN AVideo v.12.4 through v.14.2 allows a remote attacker to execute arbitrary code via the systemRootPath

CVE-2022-30547 CRITICAL POC
9.9 Aug 22

A directory traversal vulnerability exists in the unzipDirectory functionality of WWBN AVideo 11.6 and dev master commit

CVE-2023-49599 CRITICAL POC
9.8 Jan 10

An insufficient entropy vulnerability exists in the salt generation functionality of WWBN AVideo dev master commit 15fed

CVE-2026-28501 CRITICAL POC
9.8 Mar 06

Unauthenticated SQL injection in AVideo before 24.0.

CVE-2023-25313 CRITICAL POC
9.8 Apr 25

OS injection vulnerability in World Wide Broadcast Network AVideo version before 12.4, allows attackers to execute arbit

CVE-2022-26842 CRITICAL POC
9.6 Aug 22

A reflected cross-site scripting (xss) vulnerability exists in the charts tab selection functionality of WWBN AVideo 11.

CVE-2023-47861 CRITICAL POC
9.0 Jan 10

A cross-site scripting (xss) vulnerability exists in the channelBody.php user name functionality of WWBN AVideo 11.6 and

CVE-2022-28712 CRITICAL POC
9.0 Aug 22

A cross-site scripting (xss) vulnerability exists in the videoAddNew functionality of WWBN AVideo 11.6 and dev master co

CVE-2023-49589 HIGH POC
8.8 Jan 10

An insufficient entropy vulnerability exists in the userRecoverPass.php recoverPass generation functionality of WWBN AVi

CVE-2023-32073 HIGH POC
8.8 May 12

WWBN AVideo is an open source video platform. Rated high severity (CVSS 8.8), this vulnerability is remotely exploitable

CVE-2023-30854 HIGH POC
8.8 Apr 28

AVideo is an open source video platform. Rated high severity (CVSS 8.8), this vulnerability is remotely exploitable, low

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy