5.4medium
WWBN AVideo: Stored XSS via unescaped Gallery category description
- Severity
- 5.4medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.16% (higher than 5% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-c8h8-vq34-9fw2
Description
WWBN AVideo is an open source video platform. In 29.0 and earlier, AVideo stores category descriptions from user input and later renders category_description as raw HTML in the Gallery view. A user who can create or edit categories can store JavaScript in a category description, which executes when another user views the affected Gallery/category page. This is a stored XSS in the category description field, separate from previously fixed XSS issues in video titles or comments.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| WWBN AVideo | <= 29.0, up to 29.0 | CVE List, NVD |
| WWBN/AVideo (Packagist) | up to 29.0 | GitHub Advisory Database |
All scores
| GitHub_M | 5.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| GitHub | 5.4medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.
What each source says
CVE List
WWBN AVideo is an open source video platform. In 29.0 and earlier, AVideo stores category descriptions from user input and later renders category_description as raw HTML in the Gallery view. A user who can create or edit categories can store JavaScript in a category description, which executes when another user views the affected Gallery/category page. This is a stored XSS in the category description field, separate from previously fixed XSS issues in video titles or comments.
GitHub Advisory Database
Summary
AVideo stores category descriptions from user input and later renders category_description as raw HTML in the Gallery view. A user who can create or edit
categories can store JavaScript in a category description, which executes when another user views the affected Gallery/category page.
This is a stored XSS in the category description field, separate from previously fixed XSS issues in video titles or comments.
Details
Source:
objects/categoryAddNew.json.php
$objCat->setDescription($_POST['description']);
Storage setter:
objects/category.php
public function setDescription($description)
{
$this->description = $description;
}
Sink:
plugin/Gallery/view/mainAreaCategory.php
<div id="categoryDescription<?php echo $duid; ?>" style="display: none;"><?php echo $videos[0]['category_description']; ?></div>
The value is rendered without htmlspecialchars(), htmlentities(), HTMLPurifier, or equivalent output encoding.
PoC
Prerequisites:
- AVideo current master / v29.0
- User account with permission to create or edit categories
- Gallery plugin/view enabled
- At least one video assigned to the affected category
Steps:
- Log in as a user who can create or edit categories.
- Create or edit a category.
- Set the category description to:
<img src=x onerror=alert(document.domain)>
- Save the category.
- Assign at least one video to that category.
- Open the Gallery/category page that renders the category section.
- The payload is inserted into the page as raw HTML and JavaScript executes.
Impact
An attacker with category edit permission can execute JavaScript in the browser of users or administrators who view the affected Gallery/category page. This can be used to perform actions as the victim, steal same-origin data accessible to JavaScript, or abuse administrative UI actions if an administrator views the malicious category.
Recommended fix
- Sanitize category descriptions on input with the same HTML policy used for video descriptions, or store plain text only.
- Encode on output:
echo htmlspecialchars($videos[0]['category_description'], ENT_QUOTES, 'UTF-8');
- If limited HTML is intended, run the description through HTMLPurifier before storage or before render.
- Add regression tests for category description rendering in Gallery views.
NVD (es)
WWBN AVideo es una plataforma de vídeo de código abierto. En la versión 29.0 y anteriores, AVideo almacena descripciones de categorías de la entrada del usuario y posteriormente renderiza category_description como HTML sin procesar en la vista de Galería. Un usuario que puede crear o editar categorías puede almacenar JavaScript en una descripción de categoría, que se ejecuta cuando otro usuario ve la página de Galería/categoría afectada. Esto es un XSS almacenado en el campo de descripción de categoría, separado de problemas de XSS previamente corregidos en títulos de vídeo o comentarios.
References
| https://github.com/WWBN/AVideo/security/advisories/GHSA-c8h8-vq34-9fw2 | exploit, mitigation, vendor-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-47694 | advisory | |
| https://github.com/WWBN/AVideo/commit/6a6ff1f5bff1904f91f612db9f0da083295392b1 | web | |
| https://github.com/WWBN/AVideo | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-47694 changed 2026-05-30 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-c8h8-vq34-9fw2 changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2026-47694 changed 2026-07-21 | Public domain |