Vulnerability · Published Apr 2, 2026 · Assigned by GitHub_M
CVE-2026-32629phpMyFAQ: Stored XSS via Unsanitized Email Field in Admin FAQ Editor
Medium 5.4
In plain English
A medium-severity improper input validation in phpMyFAQ from thorsten. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 20% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
phpMyFAQ is an open source FAQ web application. Prior to version 4.1.1, an unauthenticated attacker can submit a guest FAQ with an email address that is syntactically valid per RFC 5321 (quoted local part) yet contains raw HTML — for example "<script>alert(1)</script>"@evil.com. PHP's FILTER_VALIDATE_EMAIL accepts this email as valid. The email is stored in the database without HTML sanitization and later rendered in the admin FAQ editor template using Twig's |raw filter, which bypasses auto-escaping entirely. This issue has been patched in version 4.1.1.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Packagist | phpmyfaq/phpmyfaq | 4.1.1 | GHSA-98gw-w575-h2ph |
| Packagist | thorsten/phpmyfaq | 4.1.1 | GHSA-98gw-w575-h2ph |
Affected products (as reported)
Weakness: CWE-20, CWE-79 · Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:H/SI:H/SA:N/E:P
References
- https://github.com/thorsten/phpMyFAQ/security/advisories/GHSA-98gw-w575-h2ph x_refsource_CONFIRM
- https://github.com/thorsten/phpMyFAQ/releases/tag/4.1.1 x_refsource_MISC