# phpMyFAQ has Stored XSS in Admin FAQ Editor via HTML Entity Bypass in Frontend FAQ Submission

High severity, published 2026-09-24. Update thorsten/phpmyfaq to 4.2.0-alpha or later and phpmyfaq/phpmyfaq to 4.2.0-alpha or later: composer update thorsten/phpmyfaq phpmyfaq/phpmyfaq.

Canonical URL: https://buzzphp.com/security/ghsa-pgwp-vc7q-cvj3 · Data from GitHub as of 2026-11-25.

| | |
| --- | --- |
| Severity | high (CVSS 8.2) |
| Published | 2026-09-24 |
| Updated | 2026-09-24 |
| CVE | [CVE-2026-56736](https://nvd.nist.gov/vuln/detail/CVE-2026-56736) |
| GHSA | [GHSA-pgwp-vc7q-cvj3](https://github.com/advisories/GHSA-pgwp-vc7q-cvj3) |
| Weakness | CWE-79 |

| Package | Affected versions | Fixed in |
| --- | --- | --- |
| thorsten/phpmyfaq | < 4.2.0-alpha | 4.2.0-alpha |
| phpmyfaq/phpmyfaq | < 4.2.0-alpha | 4.2.0-alpha |

## What to do

Update thorsten/phpmyfaq to 4.2.0-alpha or later and phpmyfaq/phpmyfaq to 4.2.0-alpha or later: composer update thorsten/phpmyfaq phpmyfaq/phpmyfaq.

Check which version you run with `composer show thorsten/phpmyfaq`, and every affected package with `composer audit`.

## About this advisory

Summary A stored cross-site scripting (XSS) vulnerability in phpMyFAQ allows any unauthenticated user (or low-privileged registered user) to inject arbitrary JavaScript that executes in an administrator's browser when they review or edit a user-submitted FAQ entry. This leads to admin account takeover via session theft. The vulnerability exists because htmlentitydecode() converts HTML entities into executable HTML after striptags() has already passed them through, and the admin template renders the content with Twig's |raw filter without any output sanitization.

Details Vulnerable file: phpmyfaq/src/phpMyFAQ/Controller/Frontend/Api/FaqController.php (lines 109-115)

Root cause:



## Links

- [GHSA-pgwp-vc7q-cvj3 on GitHub](https://github.com/advisories/GHSA-pgwp-vc7q-cvj3)
- [CVE-2026-56736 on the National Vulnerability Database](https://nvd.nist.gov/vuln/detail/CVE-2026-56736)
- [All Composer security advisories](https://buzzphp.com/security)
