phpMyFAQ has Stored XSS in Admin FAQ Editor via HTML Entity Bypass in Frontend FAQ Submission
High severity. Published 24 September 2026. 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.
Which versions are affected?
| Package | Affected versions | Fixed in |
|---|---|---|
| thorsten/phpmyfaq (opens in a new tab) | < 4.2.0-alpha | 4.2.0-alpha |
| phpmyfaq/phpmyfaq (opens in a new tab) | < 4.2.0-alpha | 4.2.0-alpha |
What should you do?
Update every affected package you use to its fixed version, then check that nothing else in your project matches an advisory. To see which version you run, and whether anything is still affected:
composer show thorsten/phpmyfaq
composer auditAdvisory details
| Severity | HighCVSS 8.2 |
|---|---|
| Published | |
| Updated | |
| CVE | CVE-2026-56736 (opens in a new tab) |
| GHSA | GHSA-pgwp-vc7q-cvj3 (opens in a new tab) |
| Weakness | CWE-79 |
What the advisory says
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:
Source: GHSA-pgwp-vc7q-cvj3 (opens in a new tab) in the GitHub Advisory Database (CC BY 4.0). Data from GitHub (opens in a new tab) as of .
Other recent advisories for this package
- phpMyFAQ has SQL Injection in `StopWords::add()` — Unescaped Stop Word Insertion (high, 24 September 2026)
- phpMyFAQ's two-factor authentication login bypasses the password factor (high, 24 September 2026)
- phpMyFAQ privilege escalation: GroupController::updatePermissions lets a GROUP_EDIT admin grant rights they do not hold (high, 25 August 2026)
- phpMyFAQ public FAQ APIs expose inactive FAQ content (opens in a new tab) (medium, 25 August 2026)
- phpMyFAQ has Potential Authenticated Path Traversal in PDF Export (opens in a new tab) (medium, 25 August 2026)