GHSA-C8H8-VQ34-9FW2
Vulnerability from github – Published: 2026-06-04 18:46 – Updated: 2026-06-04 18:48Summary
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
```php $objCat->setDescription($_POST['description']);
Storage setter:
objects/category.php
public function setDescription($description) { $this->description = $description; }
Sink:
`plugin/Gallery/view/mainAreaCategory.php`
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:
1. Log in as a user who can create or edit categories.
2. Create or edit a category.
3. Set the category description to:
4. Save the category.
5. Assign at least one video to that category.
6. Open the Gallery/category page that renders the category section.
7. 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:
```php
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.
{
"affected": [
{
"package": {
"ecosystem": "Packagist",
"name": "WWBN/AVideo"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "29.0"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [
"CVE-2026-47694"
],
"database_specific": {
"cwe_ids": [
"CWE-79"
],
"github_reviewed": true,
"github_reviewed_at": "2026-06-04T18:46:31Z",
"nvd_published_at": "2026-05-29T14:16:31Z",
"severity": "MODERATE"
},
"details": "### Summary\n\n 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\ncategories can store JavaScript in a category description, which executes when another user views the affected Gallery/category page.\n\n This is a stored XSS in the category `description` field, separate from previously fixed XSS issues in video titles or comments.\n\n ### Details\n\n Source:\n\n `objects/categoryAddNew.json.php`\n\n ```php\n $objCat-\u003esetDescription($_POST[\u0027description\u0027]);\n\n Storage setter:\n\n objects/category.php\n\n public function setDescription($description)\n {\n $this-\u003edescription = $description;\n }\n```\n Sink:\n\n `plugin/Gallery/view/mainAreaCategory.php`\n```\n \u003cdiv id=\"categoryDescription\u003c?php echo $duid; ?\u003e\" style=\"display: none;\"\u003e\u003c?php echo $videos[0][\u0027category_description\u0027]; ?\u003e\u003c/div\u003e\n```\n The value is rendered without `htmlspecialchars()`, `htmlentities()`, `HTMLPurifier`, or equivalent output encoding.\n\n ### PoC\n\n Prerequisites:\n\n - AVideo current master / v29.0\n - User account with permission to create or edit categories\n - Gallery plugin/view enabled\n - At least one video assigned to the affected category\n\n Steps:\n\n 1. Log in as a user who can create or edit categories.\n 2. Create or edit a category.\n 3. Set the category description to:\n```\n \u003cimg src=x onerror=alert(document.domain)\u003e\n```\n 4. Save the category.\n 5. Assign at least one video to that category.\n 6. Open the Gallery/category page that renders the category section.\n 7. The payload is inserted into the page as raw HTML and JavaScript executes.\n\n ### Impact\n\n 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\n 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\n malicious category.\n\n### Recommended fix\n\n- Sanitize category descriptions on input with the same HTML policy used for video descriptions, or store plain text only.\n- Encode on output:\n\n```php\necho htmlspecialchars($videos[0][\u0027category_description\u0027], ENT_QUOTES, \u0027UTF-8\u0027);\n```\n\n- If limited HTML is intended, run the description through HTMLPurifier before storage or before render.\n- Add regression tests for category description rendering in Gallery views.",
"id": "GHSA-c8h8-vq34-9fw2",
"modified": "2026-06-04T18:48:22Z",
"published": "2026-06-04T18:46:31Z",
"references": [
{
"type": "WEB",
"url": "https://github.com/WWBN/AVideo/security/advisories/GHSA-c8h8-vq34-9fw2"
},
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-47694"
},
{
"type": "WEB",
"url": "https://github.com/WWBN/AVideo/commit/6a6ff1f5bff1904f91f612db9f0da083295392b1"
},
{
"type": "PACKAGE",
"url": "https://github.com/WWBN/AVideo"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N",
"type": "CVSS_V3"
}
],
"summary": "WWBN AVideo: Stored XSS via unescaped Gallery category description"
}
Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.
Sightings
| Author | Source | Type | Date | Other |
|---|
Nomenclature
- Seen: The vulnerability was mentioned, discussed, or observed by the user.
- Confirmed: The vulnerability has been validated from an analyst's perspective.
- Published Proof of Concept: A public proof of concept is available for this vulnerability.
- Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
- Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
- Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
- Not confirmed: The user expressed doubt about the validity of the vulnerability.
- Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline
Sightings and recorded dates, grouped by day · UTC
How durations are calculated
Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.
Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.
Loading timeline…
The approach is described in our paper Mapping CVEs to MITRE ATT&CK Techniques: A Curated Gold-Set Classifier and the Limits of LLM-Assisted Label Expansion.
Browse all ATT&CK techniques and the vulnerabilities related to each.
Related by attack behaviour
Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.