Skip to content
OpenAdvisories
Medium · 5.4 CVE-2026-32629 EUVD-2026-18248GHSA-98gw-w575-h2ph

phpMyFAQ: Stored XSS via Unsanitized Email Field in Admin FAQ Editor

Published Apr 2, 2026 · Updated Apr 2, 2026 · Assigned by GitHub_M

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 products

VendorProductAffectedFixed
thorsten phpMyFAQ < 4.1.1 —

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist phpmyfaq/phpmyfaq < 4.1.1 4.1.1 GHSA-98gw-w575-h2ph
Packagist thorsten/phpmyfaq < 4.1.1 4.1.1 GHSA-98gw-w575-h2ph

References