Skip to main content

WWBN AVideo CVE-2026-50182

MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-06-04 https://github.com/WWBN/AVideo GHSA-hgjh-6wj8-gcgf
6.1
CVSS 3.1 · Vendor: https://github.com/WWBN/AVideo
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Identify internet-facing AVideo with YouTubeAPI plugin enabled
  2. Delivery
    Craft search URL with XSS payload seeded with common word 'video'
  3. Exploit
    Deliver crafted link to victim admin via phishing or social engineering
  4. Install
    Victim clicks link, AVideo homepage renders with unsanitized parameter
  5. C2
    Layout plugin hoists injected script tag into executable block before </body>
  6. Execute
    Injected JavaScript executes under AVideo origin in victim's browser
  7. Impact
    Issue authenticated admin API requests as victim to escalate privileges

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The YouTubeAPI plugin must be installed and enabled with showGallerySection=true - this is the default configuration for any AVideo deployment using the YouTubeAPI plugin. The YouTube API call must return a pagination token (nextPageToken or prevPageToken), which occurs for any multi-page result set and is satisfied by any non-trivial video library. The fulltext MATCH gate in Video::getVideo() must pass, meaning at least one video title in the database must contain a tokenized word from the payload; the attacker can guarantee satisfaction by including the word 'video' in the search string, which appears in virtually every AVideo corpus. Exploitation is limited by the UI:R CVSS requirement: the victim must be induced to navigate to the crafted URL - drive-by exploitation without any user interaction is not possible. Authentication is not required from the attacker (PR:N confirmed by CVSS vector); however, maximum impact (administrative takeover) requires the victim to hold an active AVideo administrator session at the moment they click the link.

Impact

The CVSS 6.1 Medium score (AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N) captures network-reachable, low-complexity, unauthenticated exploitation with a changed scope reflecting browser security boundary crossing, but the C:L/I:L ratings materially understate real-world impact. When the victim holds an AVideo administrator session - a realistic scenario given phishing targeting - the injected JavaScript can perform any cookie-authenticated admin action without a separate CSRF token, delivering full administrative takeover from a single link click. A functional proof-of-concept is publicly available in the GitHub Security Advisory, confirming practical exploitability with no specialized tooling required. EPSS data was not provided in the source intelligence and exploitation probability cannot be quantified from available signals. No CISA KEV listing exists at time of analysis, indicating no confirmed widespread active exploitation. Despite the moderate CVSS score, the combination of zero authentication requirement, publicly available PoC, default-configuration vulnerability, and high-impact administrator escalation path makes this a genuine remediation priority for any internet-facing AVideo deployment running the YouTubeAPI plugin.

Exploit ScenarioDerived

An attacker identifies an internet-facing AVideo instance with the YouTubeAPI plugin enabled and constructs a URL embedding ?search=video%22%3E%3Cscript%3Ealert(1337)%3C%2Fscript%3E&page=2 - the common word 'video' in the search term satisfies the MySQL fulltext gate on any realistic AVideo corpus. The attacker delivers the link via phishing targeting an AVideo administrator; when the administrator clicks the link, the Layout plugin hoists the injected script block into an executable context, and attacker-controlled JavaScript runs silently under the AVideo origin, issuing authenticated requests to create a new administrator account. A functional proof-of-concept demonstrating in-browser alert execution is publicly documented in the GitHub Security Advisory.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 04, 2026

Reflected XSS in WWBN AVideo's YouTubeAPI plugin allows any unauthenticated remote attacker to execute arbitrary JavaScript in a victim's browser by inducing the victim to open a single crafted URL. The unsanitized $_GET['search'] parameter is interpolated raw into pagination link href attributes in plugin/YouTubeAPI/gallerySection.php, and the AVideo Layout plugin then automatically hoists the injected script tag into a clean executable inline script block at page bottom - bypassing naive attribute-context filters. A detailed proof-of-concept is publicly documented in GitHub Security Advisory GHSA-hgjh-6wj8-gcgf; no active exploitation confirmed in CISA KEV at time of analysis.

RemediationAI

The upstream fix is available as commit f50fc033b7adb36f1ffd6640e7826468bdafdec3 at https://github.com/WWBN/AVideo/commit/f50fc033b7adb36f1ffd6640e7826468bdafdec3, applying htmlspecialchars(..., ENT_QUOTES | ENT_HTML5, 'UTF-8') and urlencode() to both pagination href constructions in plugin/YouTubeAPI/gallerySection.php. The package registry reports 'fixed in: None,' meaning no tagged Composer release incorporating this patch had been published at time of analysis - operators must manually apply the patch commit or pin their installation to a post-f50fc033 revision rather than relying on a versioned package update. As an immediate compensating control, disabling the YouTubeAPI plugin or setting showGallerySection=false in the plugin configuration eliminates the vulnerable code path entirely with no impact on core AVideo video-serving functionality; this is the recommended interim mitigation for internet-facing deployments that cannot immediately patch. A Web Application Firewall rule blocking <script, %3Cscript, and common XSS encoding variants in the search query parameter reduces exploitation risk but is bypassable via alternate encoding and should not substitute for the code-level fix.

Affected Packages

composer wwbn/avideo no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in composer

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

AVideo is a PHP-based self-hosted video platform distributed as composer/WWBN/AVideo. The sink lives in the YouTubeAPI plugin's gallery pagination template at plugin/YouTubeAPI/gallerySection.php lines 67 and 74, where $_GET['search'] is string-interpolated directly into HTML href attributes with no htmlspecialchars(), no urlencode(), and no allowlist validation - a textbook CWE-79 (Improper Neutralization of Input During Web Page Generation) instance. A secondary amplification mechanism significantly raises severity: the AVideo Layout plugin (plugin/Layout/Layout.php:611) runs Layout::organizeHTML() over the final rendered page, using regex to extract all inline <script> blocks and concatenate them into a single executable block immediately before </body>. An injected <script> tag inside an href attribute is therefore automatically relocated into a clean execution context by the framework itself, defeating attribute-context escaping assumptions. The PHP @ operator on $_GET['search'] suppresses only the undefined-index notice - it provides zero sanitization. The fix at commit f50fc033 applies htmlspecialchars(..., ENT_QUOTES | ENT_HTML5, 'UTF-8') combined with urlencode() to both pagination href constructions.

Know when PHP gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/WWBN/AVideo) PRIMARY 6.1 MEDIUM
AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Primary rating from Vendor (https://github.com/WWBN/AVideo) · only source for this CVE.

CVSS VectorVendor: https://github.com/WWBN/AVideo

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None

DescriptionCVE.org

Unauthenticated Reflected XSS via $_GET['search'] in AVideo YouTubeAPI Gallery Pagination

Summary

A reflected Cross-Site Scripting vulnerability (CWE-79) in the AVideo YouTubeAPI plugin allows any unauthenticated attacker to execute arbitrary JavaScript in a victim's browser session when the victim follows a crafted URL. The $_GET['search'] query parameter is concatenated directly into the href attribute of two pagination links in plugin/YouTubeAPI/gallerySection.php (lines 67 and 74) with no htmlspecialchars, no urlencode, and no allow-list check. An injected <script> element is then extracted by the AVideo Layout plugin and concatenated into a single trailing inline script block at the bottom of the page, where the browser executes it.

Details

plugin/YouTubeAPI/gallerySection.php renders the YouTubeAPI plugin's gallery section on the AVideo homepage (and every page that includes plugin/Gallery/view/mainArea.php) when the API plugin is enabled with showGallerySection=true (the default). The pagination block at lines 67 and 74 builds the previous-page and next-page <a> elements by string-interpolating $_GET['search'] directly:

php
// plugin/YouTubeAPI/gallerySection.php:67
<a href="<?php echo "{$global['webSiteRootURL']}page/".($_GET['page']-1)."?pageToken={$object->prevPageToken}&search=".(@$_GET['search']); ?>" ...>

// plugin/YouTubeAPI/gallerySection.php:74
<a href="<?php echo "{$global['webSiteRootURL']}page/".($_GET['page']+1)."?pageToken={$object->nextPageToken}&search=".(@$_GET['search']); ?>" ...>

The @ operator only suppresses an undefined-index warning; it does not sanitize the value. A payload like "><script>alert(1337)</script> closes the href attribute, closes the <a> element, and injects a fresh <script> tag.

Two preconditions gate the sink. First, the YouTube API call must return a pagination token (always true for any non-trivial result set, since the mock or real YouTube response carries nextPageToken for multi-page queries). Second, plugin/Gallery/view/mainArea.php line 53 wraps the gallery render in if (!empty($video)) { echo AVideoPlugin::getGallerySection(); } else { /* output captured and discarded */ }. When $_GET['search'] is set, Video::getVideo() adds a MySQL fulltext MATCH(v.title) AGAINST (<search>) IN NATURAL LANGUAGE MODE clause; the payload tokenizes to words like script, alert, 1337, and the gate passes whenever any video in the corpus has a title containing one of those words. Realistic deployments overwhelmingly satisfy this; the attacker can also seed the payload with a common word (?search=video"><script>...</script>) to guarantee a fulltext hit.

The AVideo Layout plugin (plugin/Layout/Layout.php:611, enabled by default) runs Layout::organizeHTML() over the final HTML, extracts every inline <script[^>]*>(.*)</script> block via regex, and concatenates their inner contents into one trailing <script> block placed immediately before </body>. The injected <script>alert(1337)</script> is therefore moved out of the original href context and into a clean executable script block; the visible pagination markup retains only the leftover &search="> bytes.

Affected product: AVideo (WWBN), API + YouTubeAPI + Layout plugins Tested version: master branch, commit 122b184 (snapshot dated 2026-05-22)

PoC

The AVideo deployment must have the YouTubeAPI plugin enabled with the default showGallerySection=true. The payload also needs to satisfy the fulltext MATCH(v.title) AGAINST gate that Video::getVideo() adds when $_GET['search'] is set: at least one video in the corpus must have a title containing one of the payload's tokens. In the live confirmation a video titled Tutorial about script error alerts satisfied the gate via the words script and alert. Seeding the payload with the common word video guarantees a hit on any realistic AVideo deployment, since video appears in nearly every video title.

Open the following URL in any browser. No authentication, no session cookie, no prior interaction with the site is required:

https://avideo.example/?search=video%22%3E%3Cscript%3Ealert(1337)%3C%2Fscript%3E&page=2

The browser fires an alert(1337) modal dialog as soon as the homepage finishes rendering. The injected <script> is no longer inside the href markup at render time; it lives inside the page's single trailing inline script block, surfaced there by the Layout plugin's HTML reorganization.

Impact

This is a Reflected XSS vulnerability (CWE-79) on the AVideo public homepage. Any unauthenticated remote attacker who induces a victim to follow a crafted URL executes arbitrary JavaScript in the victim's browser session under the AVideo origin, reading non-HttpOnly cookies and issuing authenticated AJAX requests as the victim. When the victim is an AVideo administrator, the injected JavaScript performs any admin action (create user, promote to admin, change configuration, install plugin) that uses cookie-based authentication without an additional CSRF token, escalating a single click on a crafted link into full administrative takeover.

Threat Intelligence Overview

EPSS Score
0.1%
Top 74% exploitable
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium
NVD CVE.org EPSS GHSA GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

Cross-Site Request Forgery exploits the automatic credential inclusion behavior of web browsers.

Affected Products (CPE)CVE.org

pkg:composer/wwbn_avideo

More in PHP

View all
CVE-2019-11043 CRITICAL POC
9.8 Oct 28

In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it

CVE-2012-1823 CRITICAL POC
9.8 May 11

sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not

CVE-2016-1555 CRITICAL POC
9.8 Apr 21

(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear

CVE-2018-11138 CRITICAL POC
9.8 May 31

The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by

CVE-2024-11680 CRITICAL POC
9.8 Nov 26

ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2017-9841 CRITICAL POC
9.8 Jun 27

Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c

CVE-2025-0108 HIGH POC
8.8 Feb 12

Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers

CVE-2021-25298 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2021-25296 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2013-4983 CRITICAL POC
10.0 Sep 10

The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy