CVE-2026-46361

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

Published May 15, 2026 CVSS 4.0 · 8.2 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical impact

phpMyFAQ versions prior to 4.1.2 contain a stored cross‑site scripting flaw in the search.twig template, where result.question and result.answerPreview are rendered with the raw filter. This bypasses the auto‑escape mechanism and allows an attacker with FAQ editor privileges to inject HTML‑entity‑encoded payloads that are not properly sanitized, enabling execution of arbitrary JavaScript in the browsers of every visitor to the site, including administrators, potentially leading to session hijacking or data exfiltration.

Affected Systems

The affected product is phpMyFAQ, supplied by the vendor thorsten. All releases before version 4.1.2 are vulnerable; upgrading to 4.1.2 or later removes the raw filter usage that permits the injection.

Risk and Exploitability

The flaw carries a CVSS score of 8.2, indicating a high severity. The EPSS score is < 1%, and the vulnerability is not currently listed in the CISA KEV catalog. The likely attack vector is through the web interface’s search feature, where an authorized editor can submit malicious content that is subsequently stored and rendered for all users. Because the vulnerability executes client‑side code, any user visiting a search result page could be impacted, making it a significant risk for sites with sensitive information.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update phpMyFAQ to version 4.1.2 or later, which removes the raw filter from search.twig
  • If an upgrade cannot be performed immediately, disable or restrict use of the raw filter in search.twig until a patch is applied
  • Limit editor privileges to only trusted personnel and enforce strict authentication requirements for those accounts

Generated by OpenCVE AI on May 28, 2026 at 16:53 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-pqh6-8fxf-jx22 phpMyFAQ has stored XSS via | raw Filter in search.twig — html_entity_decode(strip_tags()) Bypass in Search Result Rendering
History
Type Values Removed Values Added
First Time appeared Phpmyfaq
Phpmyfaq phpmyfaq
CPEs cpe:2.3:a:phpmyfaq:phpmyfaq:*:*:*:*:*:*:*:*
Vendors & Products Phpmyfaq
Phpmyfaq phpmyfaq
Metrics cvssV4_0

{'score': 8.2, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:P/VC:H/VI:L/VA:N/SC:H/SI:L/SA:N'}

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Thorsten
Thorsten phpmyfaq
Vendors & Products Thorsten
Thorsten phpmyfaq
Type Values Removed Values Added
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.
Title phpMyFAQ - Stored Cross-Site Scripting via raw Filter in search.twig
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 6.9, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:L/A:N'}

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 8, 2026, 2:03 PM
Reserved
May 13, 2026, 7:40 PM
Status
Deferred
Published
May 15, 2026, 7:17 PM
Modified
Oct 26, 2026, 2:10 PM