Open-Source Security Intelligence

Know every vulnerability
before it knows you.

DevGuard continuously monitors your dependencies and alerts you when CVEs like this one affect your stack — with real-time threat intelligence built for developers.

Search

GHSA-gc3m-4mcr-h3pv

HighCVSS 8.2 / 10
Published Mar 19, 2026·Last modified Mar 25, 2026
Affected Components(0)

No affected components available

Description

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.

Risk Scores
Base Score
8.2

The vulnerability can be exploited over the network without needing physical access. It is easy for an attacker to exploit this vulnerability. An attacker needs basic access or low-level privileges.

Threat Intelligence
5.6

Exploitation attempts have been detected. Elevated vigilance and prompt remediation are advised.

EPSS
0.22%

The exploit probability is very low. The vulnerability is unlikely to be exploited in the next 30 days.

Exploit
Not available

We did not find any exploit available. Neither in GitHub repositories nor in the Exploit-Database.

Browse More

Scan your project

Continuously monitor your dependencies and get alerted when vulnerabilities like this one affect your stack.

Checkout DevGuard