CVE-2026-46361 phpMyFAQ - Stored Cross-Site Scripting via raw Filter in search.twig
Attackers with editor privileges can inject JavaScript via search results, executing code in visitors' browsers including administrators.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2026-46361?
CVE-2026-46361 is a high-severity cross-site scripting vulnerability in thorsten phpmyfaq, published on 15 May 2026. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.
Official description
phpMyFAQ before 4.1.2 contains a stored cross-site scripting vulnerability in search.twig where result.question and result.answerPreview are rendered with the raw filter, disabling autoescape protection. Attackers with FAQ editor privileges can inject HTML-entity-encoded payloads that bypass html_entity_decode(strip_tags()) processing in SearchController.php, executing arbitrary JavaScript in every visitor's browser context including administrators.
Weakness: CWE-79
Which versions are affected by CVE-2026-46361?
4 open source packages ship an affected version, including thorsten/phpmyfaq and phpmyfaq/phpmyfaq.
| Package | Affected | Fixed in |
|---|---|---|
thorsten/phpmyfaq Packagist | All versions | 4.1.2 |
thorsten/phpmyfaq Packagist | All versions | 4.1.2 |
phpmyfaq/phpmyfaq Packagist | All versions | 4.1.2 |
phpmyfaq/phpmyfaq Packagist | All versions | 4.1.2 |
How do I fix CVE-2026-46361?
Upgrade thorsten/phpmyfaq to 4.1.2 or later.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2026-46361 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-46361 exists.
Sources
Also known as GHSA-pqh6-8fxf-jx22.