Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconRegister low-privilege account
-
DeliveryIdentify FAQ permitting comments
-
ExploitSubmit URL with stray double-quote payload
-
InstallStored XSS persists in comment
-
C2Admin views FAQ or comments panel
-
Executeonmouseover exfiltrates session cookie
-
ImpactAttacker replays cookie for full takeover
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 | Exploitation requires (1) phpMyFAQ deployment at version 4.1.1 with the non-default setting main.enableCommentEditor = true in the admin Configuration panel, (2) the attacker holding any registered user account on the target (CVSS PR:L), (3) at least one FAQ entry configured to accept comments, and (4) a victim - ideally an admin - passively viewing the FAQ page or the /admin/content/comments panel and hovering the malicious link to fire the onmouseover handler (CVSS UI:P). The payload URL must use a www. prefix because Utils::parseUrl() strips https:// and only re-adds it for www-prefixed URLs, which is what triggers the linkification path. Exploitation is limited by the non-default config requirement, the need for a low-privilege account (open registration accelerates this), and the user-interaction requirement; sites that disabled the comment editor or do not permit self-registration are not exposed. |
| Impact | Signals are mixed: CVSS 4.0 scores 8.3 (High) driven by VC:H and SC:H (subsequent confidential impact - i.e., admin cookie theft crossing a trust boundary), AV:N, AC:L, PR:L, UI:P, while EPSS sits at 0.01% (2nd percentile) and SSVC marks Exploitation=poc, Automatable=no, Technical Impact=partial. The CVSS vector confirms low-privilege authenticated access plus passive user interaction (UI:P - viewing a page) are required, which is consistent with the description. The realistic priority is moderate-to-high for any internet-exposed phpMyFAQ instance that has enabled the comment editor, because account registration is typically open and admin compromise is one click away, but the non-default config requirement (main.enableCommentEditor) and the lack of automation potential keep mass exploitation unlikely - consistent with the very low EPSS. No KEV listing and SSVC=poc mean this is not confirmed actively exploited; treat as a targeted-risk patch rather than an emergency. |
| Exploit ScenarioDerived | An attacker registers a normal account on a phpMyFAQ 4.1.1 site that has the comment editor enabled, opens any FAQ permitting comments, and submits the comment text 'https://www.evil.com/"onmouseover="alert(document.cookie)' - the trailing quote closes the href attribute and turns onmouseover into a live handler. When an administrator later browses /admin/content/comments or the affected FAQ page and hovers the link, the payload exfiltrates the admin session cookie to the attacker, who replays it for full application takeover. A working PoC is published in the GHSA advisory, making this trivially reproducible. |
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 4.1.1 lets any authenticated user with a registered account persist JavaScript inside FAQ or News comments by submitting a URL containing an unescaped double quote, which Utils::parseUrl() injects unescaped into an href attribute. Payloads execute for every visitor - including admins viewing the comments panel - enabling session cookie theft and full application takeover. Publicly available exploit code exists in the GHSA advisory, though EPSS is only 0.01% and SSVC categorizes exploitation as POC rather than active.
Earlier versions of this analysis (2)
Stored cross-site scripting in phpMyFAQ 4.1.1 lets any authenticated low-privilege user inject JavaScript through comment URLs that execute when admins or visitors render the affected FAQ, News, or admin comments page. The flaw enables session cookie theft and full administrative takeover, and while publicly available exploit code exists in the GHSA advisory, EPSS scores it at 0.01% and CISA SSVC rates exploitation as 'poc' with partial technical impact - not confirmed actively exploited.
Stored cross-site scripting in phpMyFAQ before 4.1.2 enables authenticated users to inject persistent JavaScript payloads through malformed URLs in comments, affecting all visitors including administrators. The vulnerability arises from improper URL parsing in Utils::parseUrl() that allows unescaped quotes to break out of href attributes and inject event handlers. When visitors hover over affected links on FAQ or News pages, the injected code executes, potentially stealing admin session cookies for full application takeover.
RemediationAI
Vendor-released patch: upgrade to phpMyFAQ 4.1.2 via Composer (thorsten/phpmyfaq or phpmyfaq/phpmyfaq), as documented in GHSA-9525-27vj-c8r8 at https://github.com/thorsten/phpMyFAQ/security/advisories/GHSA-9525-27vj-c8r8. If immediate upgrade is not possible, the highest-leverage workaround is to disable the rich comment editor by setting main.enableCommentEditor = false in the admin Configuration panel, which routes comment input back through FILTER_SANITIZE_SPECIAL_CHARS and prevents the double-quote from surviving to the parseUrl() sink - the trade-off is loss of HTML formatting in comments. As compensating controls, disable open user registration and remove existing low-trust accounts to eliminate the authenticated precondition, purge or moderate stored comments before applying the fix to remove any pre-planted payloads, and deploy a strict Content-Security-Policy header (the app currently sets none) such as default-src 'self'; script-src 'self' to neutralize inline event handlers, accepting that any inline scripts the app legitimately uses will need refactoring.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 3 packages in composer
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerable sink is Utils::parseUrl() at phpmyfaq/src/phpMyFAQ/Utils.php line 281, which uses the regex /(https?:\/\/[^\s]+)/i and substitutes matches directly into <a href="$1">$1</a> with no htmlspecialchars() call - a textbook CWE-79 (Improper Neutralization of Input During Web Page Generation) flaw where the character class [^\s]+ greedily consumes the literal double-quote needed to break out of the attribute. The sink is only reachable when main.enableCommentEditor is enabled, because that path routes comments through sanitizeHtmlComment() instead of FILTER_SANITIZE_SPECIAL_CHARS, preserving the quote through storage; rendering then uses {{ comment.comment|raw }} in comment.macros.twig line 40, disabling Twig auto-escaping. The CPE cpe:2.3:a:thorsten:phpmyfaq:*:*:*:*:*:*:*:* covers the affected upstream package, and the absence of any Content-Security-Policy header in the application removes a key mitigating control.
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:L/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
4DescriptionCVE.org
phpMyFAQ before 4.1.2 contains a stored cross-site scripting vulnerability in Utils::parseUrl() that allows authenticated users to inject JavaScript via malformed URLs in comments. Attackers can craft URLs with unescaped quotes to inject event handlers, stealing admin session cookies and achieving full application takeover when visitors view affected FAQ pages.
Executive ViewAI
phpMyFAQ 4.1.1 contains a vulnerability allowing registered users to inject malicious code into comments that executes for all site visitors including administrators. Publicly available exploit code exists. Attackers could steal admin credentials and gain full application control, requiring urgent patching to prevent user data compromise.
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-30578
GHSA-w42g-jj8w-fj77
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB