Skip to main content

AVideo CVE-2026-49279

HIGH
Cross-site Scripting (XSS) (CWE-79)
2026-06-04 https://github.com/WWBN/AVideo GHSA-2fhx-q92v-5fhv
7.7
CVSS 4.0 · Vendor: https://github.com/WWBN/AVideo
View

Attack ChainAIDerived

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

  1. Recon
    Authenticate and obtain WebSocket token
  2. Delivery
    Connect to YPTSocket server.php
  3. Exploit
    Send message with payload in json key
  4. Install
    Bypass msg-only sanitization via msgToResourceId
  5. C2
    Relay autoEvalCodeOnHTML to victim client
  6. Execute
    Execute JavaScript in victim browser
  7. Impact
    Steal 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 MessageSQLite.php; deployments configured to use MessageSQLiteV2.php are not affected. The specific trigger is placing the autoEvalCodeOnHTML field inside the top-level json key of the WebSocket message (not msg), which msgToResourceId() reads with priority and never sanitizes. Limiting factors: no unauthenticated access, exploitation is opportunistic on victim connectivity, and it only fires against the SQLite (not V2) backend configuration.

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 wss://TARGET/plugin/YPTSocket/server.php?token=USER_TOKEN, and sends a JSON message containing a benign msg decoy alongside json: {autoEvalCodeOnHTML: "alert('XSS')"} addressed to a victim user ID and resource ID. When the targeted victim is connected, their client evaluates the attacker's JavaScript, allowing session cookie/token theft and account takeover. A public PoC demonstrating exactly this bypass is included in the GitHub advisory.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

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

Alert me

AnalysisAIv2 – 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)
v1 Jun 04, 2026 - 19:20

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

composer wwbn/avideo no fix

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

Vendor (https://github.com/WWBN/AVideo) PRIMARY 7.7 HIGH
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
vuln.today AI 7.6 HIGH

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).

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

Primary rating from Vendor (https://github.com/WWBN/AVideo).

CVSS VectorVendor: https://github.com/WWBN/AVideo

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

2
Analysis Updated
Jul 15, 2026 - 22:29 vuln.today
v2 - CVSS changed
CVSS changed
Jul 15, 2026 - 22:22 NVD
7.7 (HIGH)

DescriptionCVE.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:

php
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():

php
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):

php
$json = removeAutoEvalCodeOnHTMLRecursive($json);  // Strips from ALL nested paths

And MessageSQLiteV2.php (lines 302-303):

php
$json = removeAutoEvalCodeOnHTMLRecursive($json);  // Same recursive fix

MessageSQLite.php does not call removeAutoEvalCodeOnHTMLRecursive() at all.

Attack Chain

  • Attacker sends a WebSocket message with autoEvalCodeOnHTML in the json key instead of msg
  • The fix at line 268-271 only checks $json['msg'] - the json key 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

javascript
// 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 mechanism

Impact

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:

php
// Before (vulnerable - shallow strip):
if (is_array($json['msg'] ?? null)) {
    unset($json['msg']['autoEvalCodeOnHTML']);
}

// After (fixed - recursive strip):
$json = removeAutoEvalCodeOnHTMLRecursive($json);

Executive ViewAI

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.1%
Top 68% exploitable
Prevalence
Low
niche open-source video-streaming platform, limited enterprise footprint
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium
NVD CVE.org EPSS GHSA GitHub VulDB

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 HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
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· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

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

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

pkg:composer/wwbn_avideo

More in PHP

View all
CVE-2019-11043 CRITICAL POC
9.8 Oct 28

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

CVE-2012-1823 CRITICAL POC
9.8 May 11

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

CVE-2016-1555 CRITICAL POC
9.8 Apr 21

(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear

CVE-2018-11138 CRITICAL POC
9.8 May 31

The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by

CVE-2024-11680 CRITICAL POC
9.8 Nov 26

ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2017-9841 CRITICAL POC
9.8 Jun 27

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

CVE-2025-0108 HIGH POC
8.8 Feb 12

Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers

CVE-2021-25298 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2021-25296 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2013-4983 CRITICAL POC
10.0 Sep 10

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

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

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