{"id":"CVE-2026-47694","aliases":["CVE-2026-47694","GHSA-c8h8-vq34-9fw2"],"related":[],"kind":"vulnerability","state":"published","title":"WWBN AVideo: Stored XSS via unescaped Gallery category description","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### 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->setDescription($_POST['description']);\n\n  Storage setter:\n\n  objects/category.php\n\n  public function setDescription($description)\n  {\n      $this->description = $description;\n  }\n```\n  Sink:\n\n  `plugin/Gallery/view/mainAreaCategory.php`\n```\n  <div id=\"categoryDescription<?php echo $duid; ?>\" style=\"display: none;\"><?php echo $videos[0]['category_description']; ?></div>\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  <img src=x onerror=alert(document.domain)>\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]['category_description'], ENT_QUOTES, 'UTF-8');\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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2026-05-29T13:00:37.239Z","modified":"2026-09-10T03:51:08.419Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","score":5.4,"rating":"MEDIUM"}],"cwes":["CWE-79"],"affected":[{"ranges":[{"version":"<= 29.0","status":"affected"}],"vendor":"WWBN","product":"AVideo","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","lastAffected":"29.0"}],"ecosystem":"Packagist","package":"WWBN/AVideo","purl":"pkg:composer/WWBN/AVideo","source":"ghsa"},{"ranges":[{"status":"affected","lastAffected":"29.0"}],"vendor":"wwbn","product":"avideo","cpe":"cpe:2.3:a:wwbn:avideo:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/WWBN/AVideo/security/advisories/GHSA-c8h8-vq34-9fw2","tags":["exploit","mitigation","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-47694","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/WWBN/AVideo/commit/6a6ff1f5bff1904f91f612db9f0da083295392b1","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/WWBN/AVideo","tags":["package"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2026-05-30T02:29:09.316Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-47694","url":"https://www.cve.org/CVERecord?id=CVE-2026-47694","licence":"CVE Terms of Use","modified":"2026-05-30T02:29:30.640Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-c8h8-vq34-9fw2","url":"https://github.com/advisories/GHSA-c8h8-vq34-9fw2","licence":"CC-BY-4.0","modified":"2026-09-10T03:51:08.419Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-47694","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-47694","licence":"Public domain","modified":"2026-07-21T12:10:00.090Z"}],"updatedAt":"2026-11-25T22:59:23.320Z","epss":{"score":0.00162,"percentile":0.05625,"date":"2026-12-01T12:00:22.000Z"}}