🛡️ CVE-2026-54458 — avideo
Description
WWBN AVideo: Unauthenticated Stored DOM Cross-Site Scripting via Per-Client Metadata Broadcast in YPTSocket Plugin
# Unauthenticated Stored DOM XSS via page_title Broadcast in AVideo YPTSocket Plugin
Summary
A stored DOM Cross-Site Scripting vulnerability (CWE-79) in the AVideo YPTSocket plugin lets any unauthenticated remote attacker execute arbitrary JavaScript in the authenticated origin of every administrator currently viewing a page that renders the YPTSocket online-users debug panel. plugin/YPTSocket/getWebSocket.json.php issues a signed WebSocket token to any anonymous caller, and MessageSQLiteV2::onOpen at plugin/YPTSocket/MessageSQLiteV2.php lines 91 and 110 reads the attacker-controlled webSocketSelfURI and page_title query parameters from the WebSocket connection URL with no validation. Both values persist into the in-memory SQLite connections table and broadcast inside the users_id_online array sent to every connected client; on the client, plugin/YPTSocket/script.js::updateSocketUserCard interpolates the broadcast page_title into an HTML template literal that is passed to jQuery $.append(html), which parses attacker bytes into live DOM nodes including <img> with inline event handlers.
Details
plugin/YPTSocket/getWebSocket.json.php issues a WebSocket token to any caller; the only gate is AVideoPlugin::isEnabledByName("YPTSocket"). The token-issuance helper getEncryptedInfo() at plugin/YPTSocket/functions.php:21-24 writes $_REQUEST['webSocketSelfURI'] directly into the per-token state without validation:
```php
// plugin/YPTSocket/functions.php:21-24
if (!empty($_REQUEST['webSocketSelfURI'])) {
$msgObj->selfURI = $_REQUEST['webSocketSelfURI'];
} else {
$msgObj->selfURI = getSelfURI();
}
```
On WebSocket open, MessageSQLiteV2::onOpen reads webSocketSelfURI and page_title from the connection URL query string and persists both verbatim into the in-memory SQLite connections table:
```php
// plugin/YPTSocket/MessageSQLiteV2.php:91 and :110
$client['selfURI'] = $wsocketGetVars['webSocketSelfURI']; // line 91
$client['page_title'] = @utf8_encode(@$wsocketGetVars['page_title']); // line 110
```
utf8_encode is not an HTML encode. The broadcast helper dbGetUniqueUsers() (plugin/YPTSocket/db.php:288-300) selects both columns without escape and returns them as part of users_id_online, which msgToResourceId() at MessageSQLiteV2.php:444 places in the outbound JSON frame sent to every connected client. JSON encoding escapes " to \" for transport, but the receiving browser's JSON.parse(event.data) reverses the escape and restores the raw HTML bytes before they reach script.js.
On the client, plugin/YPTSocket/script.js::updateSocketUserCard (lines 638 to 700) interpolates the broadcast page_title into an HTML template literal and passes the result to jQuery $.append(html):
```js
// plugin/YPTSocket/script.js:685-691
if (userData.page_title) textParts.push(userData.page_title);
const finalText = textParts.join(' ');
const html = `<a href="${selfURI}" target="_blank" ...>
<i class="far fa-compass"></i> ${finalText}
</a>`;
$(#${socketUserDivID} .socketUserPages).append(html); // sink
```
jQuery's .append(html) parses the string with the browser HTML parser, building live DOM nodes for any tag the attacker supplied, including <img> with inline event handlers. The browser's load attempt on the attacker-supplied src fails and the inline onerror event handler fires synchronously inside the admin's authenticated origin.
The victim precondition is that the YPTSocket online-users debug panel (#socketUsersURI) is rendered in the admin's DOM. plugin/YPTSocket/footer.php:12 renders the panel when User::isAdmin() && !empty($obj->debugSocket). The debugSocket plugin flag is true by default after enable, so any admin viewing any logged-in AVideo page with the standard YPTSocket footer holds a live broadcast subscription.
Affected product: AVideo (WWBN), YPTSocket plugin
Tested version: master branch (snapshot dated 2026-05-22)
PoC
The AVideo deployment must have the YPTSocket plugin enabled (the default after enable) with debugSocket=true (the default), and at least one administrator must currently be viewing a page that loads the YPTSocket footer (any logged-in AVideo page does). The attacker requires only network reachability to getWebSocket.json.php over HTTPS and to the WebSocket TLS port.
Open DevTools Console on any browser tab pointed at the AVideo origin and paste the following one-liner. No authentication and no session cookie are required for the attacker side:
```js
(async () => {
const PAYLOAD = '<img src=q onerror="document.body.style.backgroundColor=String.fromCharCode(114,101,100);document.title=String.fromCharCode(80,87,78,69,68)">';
const r = await fetch('/plugin/YPTSocket/getWebSocket.json.php?webSocketSelfURI=' + encodeURIComponent('
How this vulnerability can be exploited
This issue can be reached over the network, attack complexity is low, an attacker needs no privileges on the target. A user must be tricked into taking some action. The scope is changed, meaning a successful attack can affect components beyond the vulnerable one. Rated impact: confidentiality high, integrity high, availability low.
Weakness class
CVE-2026-54458 is classified as CWE-79: Cross-site Scripting (XSS). User-supplied data is written into a page without escaping, so attacker script runs in the browser of anyone who views it.
Affected software
CVE-2026-54458 is recorded against 2 packages.
- unknown
- wwbn/avideo
Timeline and source
Published on 15 July 2026 and last revised on 16 July 2026. No public exploit is currently recorded for this entry. Record sourced from NVD.
References
Details
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:L
Affected Packages
| Software | From version | Fixed in |
|---|---|---|
| unknown | — | — |
| wwbn/avideo | — | — |
References
Similar Threats
- Unknown CVE-2022-0003
- Unknown CVE-2022-0303
- High CVE-2022-1206
- Unknown CVE-2022-0931
- Unknown CVE-2022-0094
More CVE 2026 advisories
Browse all of CVE 2026 in the advisory index.
Exploit Protection
Are you running avideo?
CVE-2026-54458 carries CVSS 9.6 Critical rating. BotEraser checks your installation against this and other known CVE records, and blocks IPs associated with exploit activity.
Check My Site For CVE-2026-54458 →No credit card required · Results in minutes
ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.