Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconObtain FAQ editor account
-
DeliverySubmit FAQ entry with HTML-entity-encoded script payload
-
ExploitPayload stored in database past strip_tags
-
InstallVictim performs search returning the entry
-
C2html_entity_decode restores tags, raw filter emits HTML
-
ExecuteJavaScript executes in admin/visitor browser
-
ImpactSession token exfiltration or privileged action via CSRF
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires an authenticated account with FAQ editor or contributor privileges (CVSS PR:H) to store the payload, and requires a victim to execute a search whose results include the malicious entry (UI:P - passive user interaction by viewing search results). The malicious content must be HTML-entity-encoded (e.g., |
| Impact | Signals are conflicting and warrant nuanced prioritization. CVSS 4.0 is 8.2 (High) driven by Network/Low complexity/High confidentiality impact with scope change (SC:H) - reflecting that exploitation pivots from an editor account to all visitors including admins, enabling admin session theft. However, PR:H and UI:P show the attack requires high-privilege editor access to plant the payload and a victim to view a search result. EPSS is extremely low (0.01%, 1st percentile) and the vulnerability is NOT on CISA KEV; SSVC marks Exploitation as 'poc' (not active), Automatable=no, Technical Impact=partial. Net assessment: real but bounded - high impact if an editor account is malicious or compromised, but exploitation is not automatable and there is no evidence of in-the-wild abuse. Prioritize patching on instances with multiple editor-tier contributors or public account registration; lower urgency on tightly-controlled deployments. |
| Exploit ScenarioDerived | An attacker who has obtained or is granted FAQ editor privileges (e.g., a malicious contributor on a community knowledge base) creates an FAQ entry whose title or body contains an HTML-entity-encoded |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv3 – May 28, 2026
Stored cross-site scripting in phpMyFAQ before 4.1.2 lets FAQ editors persist HTML-entity-encoded JavaScript that survives sanitization and executes in every visitor's browser, including administrators. The flaw stems from Twig's | raw filter being applied to result.question and result.answerPreview in search.twig, combined with a html_entity_decode(strip_tags()) round-trip in SearchController.php that resurrects encoded tags. Publicly available exploit code exists (POC per SSVC), though EPSS is 0.01% and the issue is not on the CISA KEV list.
Earlier versions of this analysis (2)
Stored cross-site scripting in phpMyFAQ versions prior to 4.1.2 allows authenticated FAQ editors to persist JavaScript payloads that execute in every visitor's browser, including administrators, leading to session hijacking and privilege escalation. The flaw stems from search.twig rendering result.question and result.answerPreview with Twig's raw filter while SearchController.php's html_entity_decode(strip_tags()) chain reverses sanitization of HTML-entity-encoded payloads. No public exploit identified at time of analysis, though VulnCheck has published a dedicated advisory and the GHSA notes seven distinct raw-filter sinks in the same template.
Stored cross-site scripting in phpMyFAQ 4.1.1 and earlier allows attackers with FAQ editor privileges to inject HTML-entity-encoded JavaScript payloads that execute in all visitors' browsers, including administrators. The vulnerability exploits Twig template raw filters in search.twig combined with html_entity_decode() processing in SearchController.php that restores encoded tags after strip_tags() validation. GitHub security advisory GHSA-pqh6-8fxf-jx22 confirms this is distinct from CVE-2026-46360 (GHSA-cv2g-8cj8-vgc7) affecting faq.twig. No active exploitation reported; EPSS data not available; vendor patch released as version 4.1.2.
RemediationAI
Vendor-released patch: phpMyFAQ 4.1.2 - upgrade immediately via Composer (composer require thorsten/phpmyfaq:^4.1.2 or phpmyfaq/phpmyfaq:^4.1.2) per the GitHub advisory at https://github.com/thorsten/phpMyFAQ/security/advisories/GHSA-pqh6-8fxf-jx22. If patching cannot be performed immediately, restrict the FAQ editor/contributor role to fully trusted users and audit existing FAQ records and custom pages for HTML-entity-encoded payloads (search stored content for patterns like <script, <, onerror=, etc.). As a template-level workaround you can edit phpmyfaq/assets/templates/default/search.twig to remove the | raw filter from result.question and result.answerPreview (side effect: any legitimately HTML-formatted FAQ titles or previews will render as escaped text). A Content-Security-Policy header forbidding inline script (script-src 'self') provides defense-in-depth at the cost of breaking any inline JS the deployment relies on. Disabling the search feature entirely removes the vulnerable code path but eliminates a core user feature.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 3 packages in composer, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
phpMyFAQ is a PHP-based open-source FAQ management application maintained by Thorsten Rinne (CPE cpe:2.3:a:thorsten:phpmyfaq). The root cause is CWE-79 (Improper Neutralization of Input During Web Page Generation) and is two-fold: the Twig template engine's autoescape is unconditionally disabled by the | raw filter on multiple variables in search.twig, and the upstream sanitization in Search.php/SearchController.php performs html_entity_decode(strip_tags(...)), which strips tags first and then decodes HTML entities - re-materializing tags that an attacker encoded as <script>. This is distinct from the previously patched GHSA-cv2g-8cj8-vgc7 in faq.twig and was not resolved by the 4.1.1 release.
Know when Phpmyfaq gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Primary rating from Vendor (VulnCheck) · only source for this CVE.
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
5DescriptionCVE.org
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.
Executive ViewAI
phpMyFAQ versions before 4.1.2 contain a vulnerability that allows FAQ editors to inject malicious code, which executes for all users including system administrators. This creates direct risks for credential theft and system compromise through both insider threats and privilege escalation. Immediate patching to version 4.1.2 is critical, as publicly available exploit code increases exploitation likelihood.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
Duplicate-email registration handling in phpMyFAQ 4.0.7 through 4.0.13 (and 4.0-nightly-2025-10-03 and earlier) lets una
Insufficient Session Expiration in GitHub repository thorsten/phpmyfaq prior to 3.2.2. Rated critical severity (CVSS 9.8
Authentication Bypass by Capture-replay in GitHub repository thorsten/phpmyfaq prior to 3.1.12. Rated critical severity
Weak Password Requirements in GitHub repository thorsten/phpmyfaq prior to 3.1.12. Rated critical severity (CVSS 9.8), t
Weak Password Requirements in GitHub repository thorsten/phpmyfaq prior to 3.1.8. Rated critical severity (CVSS 9.8), th
Unauthenticated SQL injection in phpMyFAQ before 4.1.2 allows remote attackers to extract credentials, admin tokens, and
In phpMyFAQ before 2.9.9, there is Cross-Site Request Forgery (CSRF) in admin/stat.ratings.php. Rated high severity (CVS
In phpMyFaq before 2.9.9, there is CSRF in admin/ajax.config.php. Rated high severity (CVSS 8.8), this vulnerability is
In phpMyFAQ before 2.9.9, there is Cross-Site Request Forgery (CSRF) for modifying a glossary. Rated high severity (CVSS
In phpMyFAQ before 2.9.9, there is Cross-Site Request Forgery (CSRF) in admin/stat.main.php. Rated high severity (CVSS 8
phpMyFAQ is an open source FAQ web application for PHP 8.1+ and MySQL, PostgreSQL and other databases. Rated high severi
phpMyFAQ is an open source FAQ web application for PHP 8.1+ and MySQL, PostgreSQL and other databases. Rated high severi
EUVD-2026-30596
GHSA-478m-mrw4-qf2w
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB