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.
Published: 2026-05-15
Score: 6.9 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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 6.9, indicating a moderate severity. The EPSS score is not available, 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.

Generated by OpenCVE AI on May 15, 2026 at 20:43 UTC.

Remediation

No vendor fix or workaround currently provided.

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 15, 2026 at 20:43 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sat, 16 May 2026 02:15:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Sat, 16 May 2026 00:15:00 +0000

Type Values Removed Values Added
First Time appeared Thorsten
Thorsten phpmyfaq
Vendors & Products Thorsten
Thorsten phpmyfaq

Fri, 15 May 2026 19:00:00 +0000

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'}


Subscriptions

Thorsten Phpmyfaq
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-05-16T01:18:01.446Z

Reserved: 2026-05-13T19:40:27.809Z

Link: CVE-2026-46361

cve-icon Vulnrichment

Updated: 2026-05-16T01:17:55.555Z

cve-icon NVD

Status : Received

Published: 2026-05-15T19:17:03.400

Modified: 2026-05-16T02:16:15.593

Link: CVE-2026-46361

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-05-16T00:00:11Z

Weaknesses