Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as low-privilege registered user
-
DeliveryPost FAQ comment with https://javascript:443/ href
-
ExploitSanitizer approves, parseUrl() strips https:// yielding javascript: link
-
ExecutionAdmin views FAQ and clicks attacker-worded link
-
PersistScript runs on shared admin origin
-
ImpactRead CSRF tokens and invoke admin APIs
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 main.enableCommentEditor to be set to true (it is opt-in and defaults to false) and comments enabled on at least one FAQ; only FAQ comments are reachable (CommentController rejects type=news). The attacker must be a logged-in frontend user - with the default records.allowCommentsForGuests=true no extra permission is needed, otherwise the COMMENT_ADD permission is required (consistent with PR:L). The payload fires only when a victim clicks the attacker-controlled link (UI/UI:P), and maximum impact requires that victim to be an administrator since frontend and /admin/ share an origin. The existing CSP (script-src 'self' 'unsafe-inline') does not block javascript: navigations, and HttpOnly cookies do not prevent the in-page script. Installations that never enabled the comment editor are not exposed. |
| Impact | This is a genuine but conditional, medium-severity stored XSS, not a drop-everything emergency. The supplied CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N, base 5.1) is internally consistent with the mechanism: remote and low-complexity to inject, but requiring a low-privilege authenticated account (PR:L) and victim click (UI:P), with limited (not total) confidentiality/integrity impact and a cross-boundary effect on the admin origin (SC:L/SI:L). No KEV status and no EPSS score are present in the input, so there is no signal of active or widespread exploitation; the vuln.today decision label is 'this_month' (prioritize but not act_now/emergency), which matches a low-probability, high-trust-boundary issue. The one escalating factor is impact rather than likelihood: because the frontend and /admin/ share an origin, a logged-in administrator who clicks the attacker-controlled link lets the script read admin CSRF tokens and invoke admin APIs (create users, grant permissions, change config), so a successful hit can escalate toward full application compromise despite the modest base score. The decisive mitigating factor is that the required feature, main.enableCommentEditor, is off by default, so most installations are not exposed. No key signals conflict; the main gap is the absence of EPSS/KEV data, consistent with this being a disclosed-but-not-yet-exploited issue. |
| Exploit ScenarioDerived | On an installation where an admin has enabled the opt-in comment editor (main.enableCommentEditor=true), a self-registered frontend user posts an FAQ comment containing <a href="https://javascript:443/alert(document.domain)">; the sanitizer approves it as a valid https URL, then Utils::parseUrl() strips the https:// prefix and the Twig |raw print emits a live javascript: link. When an administrator viewing the FAQ clicks the attacker-worded link, script executes on the shared phpMyFAQ/admin origin and can read CSRF tokens and call admin APIs. A working standalone PoC reproducing the sanitizer-plus-parseUrl rewrite is included in the GHSA advisory. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 17, 2026
Stored cross-site scripting in phpMyFAQ's FAQ comment rendering lets any logged-in frontend user plant a link that runs attacker script on the shared frontend/admin origin when a victim clicks it - but only on installations where the opt-in comment editor (main.enableCommentEditor, off by default) has been enabled and comments are allowed on at least one FAQ. The root cause is a transformation applied after sanitization: Utils::parseUrl() strips the https:// prefix from already-sanitized HTML, turning the sanitizer-approved href "https://javascript:443/..." into a live javascript: URL that the template prints with |raw. This is a genuine but conditional, medium-severity issue rather than a drop-everything emergency: the victim must click the attacker-controlled link, and meaningful impact (reading admin pages, harvesting CSRF tokens, calling admin APIs) requires that victim to be an administrator, since the frontend and /admin/ share an origin. Fixed by the vendor in 4.1.12 and 4.2.0-RC.2; a public PoC reference exists but it is not verified as working exploit code, and there is no confirmed active exploitation.
RemediationAI
Upgrade to phpMyFAQ 4.1.12 or 4.2.0-RC.2, the vendor-released fixed versions published at https://github.com/thorsten/phpMyFAQ/releases/tag/4.1.12 and https://github.com/thorsten/phpMyFAQ/releases/tag/4.2.0-RC.2, which include commit b78abdf889d18ebc1bc507fe1f5cbd9d7db8b143; that commit reworks Utils::parseUrl() to linkify only text nodes, leave existing markup and href attributes untouched, and preserve absolute schemes, with regression tests asserting that href="javascript:" never appears in the output. Details are in the advisory at https://github.com/thorsten/phpMyFAQ/security/advisories/GHSA-37pw-f446-wpf2 and the related VulnCheck note at https://www.vulncheck.com/advisories/phpmyfaq-before-4.1.12-and-4.2.0-alpha-before-4.2.0-rc.2-stored-xss-via-utils-parseurl. For installations that cannot patch immediately, the vendor-documented precondition is configuration-side: the exploitable path only exists when main.enableCommentEditor is true (it defaults to false), so leaving it disabled - or turning it off - removes the vector, at the cost of losing the WYSIWYG comment editor and forcing comments back to plain text; the trade-off is that the feature is a usability loss rather than a functional or availability impact. The advisory notes that the alternative of linkifying before sanitization also works, but that requires the code change and is not a runtime toggle. Because the frontend and /admin/ share an origin, treat any administrator who clicked a comment link while the editor was enabled as potentially compromised and rotate sessions; the existing CSP (script-src 'self' 'unsafe-inline') does not block javascript: navigations and should not be relied on as a mitigation.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
phpMyFAQ renders FAQ comments that logged-in users submit through a Symfony HtmlSanitizer pipeline when the comment editor is enabled (Filter::removeAttributes() with allowSafeElements() and allowRelativeLinks()), which correctly keeps http/https anchors and drops direct javascript: schemes. The flaw sits in the subsequent, legacy linkification step: Utils::parseUrl() begins with a global str_replace over the entire HTML string removing every "http://" and "https://" substring, including inside attribute values, and only afterwards runs its URL-matching regex with htmlspecialchars(). Because the sanitizer accepts "https://javascript:443/alert(document.domain)" as a well-formed https URL whose host is the literal string "javascript" and whose port is 443, the rewrite produces href="javascript:443/alert(...)", which the browser evaluates as a javascript: navigation (the leading 443/ is parsed as a label followed by a division expression). The template emits the comment with |raw, and the site's CSP (script-src 'self' 'unsafe-inline') does not block javascript: navigation, nor do HttpOnly cookies prevent in-page script from acting as the victim. The class is CWE-79 (improper neutralization during page generation), with the related CWE-116 problem of output being altered after sanitization; the same str_replace also silently breaks every legitimate absolute link, rendering it as a relative path. The vendor fix (commit b78abdf889d18ebc1bc507fe1f5cbd9d7db8b143) rewrites parseUrl() to split on tags, linkify only text nodes outside <a> elements, and never modify existing attribute values. Note that only FAQ comments are reachable via this path - CommentController rejects type=news - and the advisory's technical analysis states the exploitable comment-editor code path exists only on the 4.2 line (4.2.0-alpha through 4.2.0-RC.2), reporting 4.1.x as unaffected, while the CVE description and package range list 4.1.x before 4.1.12 as vulnerable; both 4.1.12 and 4.2.0-RC.2 are nevertheless published as fixed releases.
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:L/VI:L/VA:N/SC:L/SI:L/SA:N
Remote, low-complexity injection by an authenticated low-privilege user (PR:L) that requires a victim click (UI:R); the payload executes in the separate admin security context, so S:C with limited C/I and no availability impact.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
phpMyFAQ before 4.1.12 and 4.2.0-alpha before 4.2.0-RC.2 contains a stored cross-site scripting vulnerability that allows registered users to inject javascript: links via FAQ comments. When the comment editor is enabled, Utils::parseUrl() strips https:// from sanitized hrefs, turning an allowed https://javascript:443/ link into executable script that runs on the shared admin origin when clicked.
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.
Related Vulnerabilities in phpMyFAQ Authorization Bypass and Info Disclosure
View all 27Duplicate-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-126806
GHSA-56cq-9h4v-c7jp
NVD
CVE.org
EPSS
Exploit-DB