CVE-2026-46361 phpMyFAQ - Stored Cross-Site Scripting via raw Filter in search.twig

High 8.2 Published Updated

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.

PackageAffectedFixed in
thorsten/phpmyfaq PackagistAll versions4.1.2
thorsten/phpmyfaq PackagistAll versions4.1.2
phpmyfaq/phpmyfaq PackagistAll versions4.1.2
phpmyfaq/phpmyfaq PackagistAll versions4.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.

Is CVE-2026-46361 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free