AVideo CVE-2026-49279
HIGHAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconAuthenticate and obtain WebSocket token
-
DeliveryConnect to YPTSocket server.php
-
ExploitSend message with payload in json key
-
InstallBypass msg-only sanitization via msgToResourceId
-
C2Relay autoEvalCodeOnHTML to victim client
-
ExecuteExecute JavaScript in victim browser
-
ImpactSteal session and take over account
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires an authenticated AVideo account with a valid YPTSocket token (PR:L) and a target victim who is actively connected to the WebSocket messaging server at delivery time (reflected as AT:P in the 4.0 vector - the payload is relayed to and evaluated by a live client). The instance must be running the default SQLite WebSocket backend |
| Impact | The vendor CVSS 4.0 score is 7.7 (High) with vector AV:N/AC:L/AT:P/PR:L/UI:N, indicating network reach and low complexity but requiring an attack precondition (AT:P - a victim must be connected to the socket) and low-privilege authentication (PR:L). This is consistent with a real but not trivially mass-exploitable stored XSS: the attacker needs a valid user token and a connected victim, and impact is bounded by browser session context rather than direct server compromise. Corroborating signals diverge in the expected way - EPSS is low at 0.13% (32nd percentile) and there is no CISA KEV listing, but a working PoC is published in the advisory, so exploit code exists without evidence of in-the-wild use. The claimed VC:H/VI:H/VA:H (all-high impact) is generous for an XSS: confidentiality-high (session/token theft) is well supported, integrity-high is defensible only through the described CSRF/account-takeover chain, and availability-high is weakly justified since XSS does not inherently degrade availability. Net: a genuine High-severity issue worth prompt patching for AVideo operators, but not an emergency-tier network-unauthenticated RCE. |
| Exploit ScenarioDerived | A registered AVideo user obtains their own valid WebSocket token, connects to |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv2 – Jul 15, 2026
Stored cross-site scripting in WWBN AVideo (all versions through 29.0) lets an authenticated user execute arbitrary JavaScript in other connected users' browsers via the SQLite-backed YPTSocket WebSocket messaging system. The flaw is an incomplete-fix bypass of CVE-2026-43874: the prior patch only stripped the autoEvalCodeOnHTML key from $json['msg'], but msgToResourceId() prioritizes the sibling json key, so a payload placed there reaches the victim unsanitized. Publicly available exploit code exists in the GitHub advisory PoC; EPSS is low (0.13%) and it is not on CISA KEV, so no active exploitation is indicated.
Earlier versions of this analysis (1)
Stored XSS in WWBN AVideo's WebSocket messaging system allows authenticated attackers to execute arbitrary JavaScript in any connected user's browser by bypassing an incomplete sanitization filter in MessageSQLite.php. The original fix for CVE-2026-43874 only stripped the autoEvalCodeOnHTML key from $json['msg'], but msgToResourceId() preferentially reads from $msg['json'], allowing payloads placed in the json key to flow through unsanitized. No public exploit is identified at time of analysis beyond the advisory's PoC, and no CVSS or EPSS scoring is available.
RemediationAI
Upstream fix available (PR/commit); released patched version not independently confirmed - the Composer advisory lists 'fixed in: None' and the fix is delivered as commit 3e0b3ce2bfa766183ff0ae227439394db57b1a23 (https://github.com/WWBN/AVideo/commit/3e0b3ce2bfa766183ff0ae227439394db57b1a23) rather than a tagged release. Apply that commit, which replaces the shallow unset($json['msg']['autoEvalCodeOnHTML']) with a call to a new recursive helper removeAutoEvalCodeOnHTMLRecursive($json) that strips the key from every nested path in MessageSQLite.php, matching the already-fixed Message.php and MessageSQLiteV2.php. If you cannot immediately deploy the commit, a compensating control is to switch the YPTSocket backend from the default SQLite handler to MessageSQLiteV2.php, which already contains the recursive sanitization - with the trade-off of validating that the V2 backend is compatible with your deployment. As a further interim measure, restrict or disable the YPTSocket WebSocket messaging feature to trusted users, accepting the loss of real-time chat/notification functionality. Track the vendor advisory GHSA-2fhx-q92v-5fhv for a formally tagged patched release.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in composer
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
AVideo is an open-source PHP video-sharing/streaming platform (Composer package wwbn/avideo). The affected component is the YPTSocket real-time messaging plugin's SQLite backend, plugin/YPTSocket/MessageSQLite.php. AVideo supports an autoEvalCodeOnHTML message field that causes the receiving WebSocket client to evaluate attacker-supplied markup/JavaScript - effectively a designed code-injection sink that must be stripped from untrusted, non-PHP-originated messages. The root cause is CWE-79 (improper neutralization of input during web page generation) compounded by incomplete input sanitization: the handler unsets autoEvalCodeOnHTML only from the msg sub-array, while the relay function msgToResourceId() reads $msg['json'] with higher priority than $msg['msg'], leaving the json path unfiltered. The correctly patched sibling handlers Message.php and MessageSQLiteV2.php already call removeAutoEvalCodeOnHTMLRecursive() to strip the key from all nested paths; MessageSQLite.php, the default SQLite backend, did not.
Know when PHP 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
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Network-reachable but needs a low-privilege account (PR:L) and a connected victim who receives the payload (UI:R); stored XSS crosses into the browser security authority (S:C) with cookie theft (C:H), limited integrity via action forgery (I:L), and no availability impact (A:N).
Primary rating from Vendor (https://github.com/WWBN/AVideo).
CVSS VectorVendor: https://github.com/WWBN/AVideo
Lifecycle Timeline
2DescriptionCVE.org
AVideo: Stored XSS via autoEvalCodeOnHTML in MessageSQLite WebSocket Handler
Summary
AVideo has a stored XSS vulnerability in the WebSocket messaging system. The MessageSQLite.php handler only strips autoEvalCodeOnHTML from $json['msg'], but msgToResourceId() reads from $msg['json'] with higher priority. An attacker can place the XSS payload in the json key instead of msg, bypassing the sanitization entirely.
Affected Versions
AVideo <= latest
Vulnerability Details
Root Cause: Shallow sanitization only covers $json['msg']
plugin/YPTSocket/MessageSQLite.php lines 268-271 - the incomplete fix:
if (empty($msgObj->isCommandLineInterface) && ($msgObj->sentFrom ?? '') !== 'php') {
if (is_array($json['msg'] ?? null)) {
unset($json['msg']['autoEvalCodeOnHTML']); // Only strips from $json['msg']
}
}plugin/YPTSocket/MessageSQLite.php lines 361-367 - the bypass via msgToResourceId():
if (!empty($msg['json'])) {
$obj['msg'] = $msg['json']; // $msg['json']['autoEvalCodeOnHTML'] is NEVER stripped
} else if (!empty($msg['msg'])) {
$obj['msg'] = $msg['msg']; // Only this path was sanitized
} else {
$obj['msg'] = $msg;
}Compare with the correctly patched Message.php (lines 254-256):
$json = removeAutoEvalCodeOnHTMLRecursive($json); // Strips from ALL nested pathsAnd MessageSQLiteV2.php (lines 302-303):
$json = removeAutoEvalCodeOnHTMLRecursive($json); // Same recursive fixMessageSQLite.php does not call removeAutoEvalCodeOnHTMLRecursive() at all.
Attack Chain
- Attacker sends a WebSocket message with
autoEvalCodeOnHTMLin thejsonkey instead ofmsg - The fix at line 268-271 only checks
$json['msg']- thejsonkey is untouched msgToResourceId()reads$msg['json']first (line 361) because!empty($msg['json'])is true- The payload is delivered to the victim's WebSocket client and evaluated via
autoEvalCodeOnHTML
Proof of Concept
// Connect to AVideo WebSocket as authenticated user
const ws = new WebSocket('wss://TARGET/plugin/YPTSocket/server.php?token=USER_TOKEN');
ws.onopen = () => {
ws.send(JSON.stringify({
msg: "Hello", // sanitized path - decoy
json: {autoEvalCodeOnHTML: "alert('XSS')"}, // unsanitized path - payload
to_users_id: VICTIM_USER_ID,
resourceId: RESOURCE_ID
}));
};
// Victim's client evaluates alert('XSS') via autoEvalCodeOnHTML mechanismImpact
An authenticated attacker can:
- Execute arbitrary JavaScript in any connected user's browser session via the WebSocket messaging system
- Steal session cookies and authentication tokens
- Perform account takeover via session hijacking
- Chain with CSRF to execute admin actions on behalf of the victim
The vulnerability affects the default SQLite WebSocket backend configuration.
Suggested Remediation
Apply removeAutoEvalCodeOnHTMLRecursive() in MessageSQLite.php, consistent with Message.php and MessageSQLiteV2.php:
// Before (vulnerable - shallow strip):
if (is_array($json['msg'] ?? null)) {
unset($json['msg']['autoEvalCodeOnHTML']);
}
// After (fixed - recursive strip):
$json = removeAutoEvalCodeOnHTMLRecursive($json);Executive ViewAI
WWBN AVideo (versions through 29.0) contains a cross-site scripting vulnerability in messaging that allows authenticated users to compromise other users' sessions and accounts; exploit code is publicly available. Affected organizations face risks of credential theft and unauthorized access across their user base. An available vendor patch must be deployed immediately to all instances.
Apply vendor patch.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
Cross-Site Request Forgery exploits the automatic credential inclusion behavior of web browsers.
Affected Products (CPE)CVE.org
In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it
sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not
(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear
The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by
ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C
Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au
Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c
Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows
The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
GHSA-2fhx-q92v-5fhv
NVD
CVE.org
EPSS
VulDB
Exploit-DB