Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain FAQ editor account
-
DeliverySave question with quote+event-handler payload
-
ExploitDrive record into Top-Ten via views
-
ExecutionTitle rendered with Twig raw filter in title attribute
-
PersistScript runs for every start-page visitor
-
ImpactSteal sessions / redirect / deface
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 an authenticated account with FAQ edit (editor) permission (PR:L) to store the malicious title, and the target instance must use the default template whose startpage.twig (lines 73-76) renders the top-ten FAQ title through Twig's raw filter inside a double-quoted title="" attribute. The payload must be pure attribute injection using a quote and event handler (e.g. x" onmouseover="alert(document.cookie)) with no angle brackets, so it survives FILTER_SANITIZE_SPECIAL_CHARS and the Symfony HtmlSanitizer (which the write path defeats by html_entity_decode-ing quotes before storage). The record must also reach the Top-Ten list via views/votes, and a visitor must load the public start page (UI:P) for the script to fire. Limiting factors: editor-level authentication is needed, exploitation targets only sites on the vulnerable default template, and the injected title is subject to makeShorterText 8-word truncation, which constrains payload length. |
| Impact | This is a genuine but moderate-priority stored XSS, not a drop-everything emergency. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N) scores 5.1 (Medium): network-reachable and low-complexity, but it requires PR:L - an authenticated account holding FAQ edit (editor) permission - to plant the payload, and passive user interaction (UI:P) in that a victim must visit the public start page. The asymmetry that raises real-world concern is the trust gap: a lower-trust editor can inject script that executes in the browser of every unauthenticated start-page visitor, with a scope change (SC:L/SI:L) reflecting cross-context impact. No EPSS score, KEV listing, or active-exploitation evidence was provided, so there is no signal of in-the-wild use; the vuln.today decision label is 'this_month' rather than act_now/emergency, consistent with a patch-in-the-normal-cycle priority. The root cause is well understood and vendor-confirmed via the GHSA advisory and commit diff, and the fix is available (4.1.12). Net: a real, confirmed vulnerability worth remediating promptly, but the editor-privilege prerequisite and absence of exploitation telemetry keep it below critical urgency. No key signals conflict; the main missing data is EPSS and any exploitation observation. |
| Exploit ScenarioDerived | An authenticated user holding FAQ edit (editor) permission saves a FAQ question whose first words are an attribute-breakout payload such as x" onmouseover="alert(document.cookie), then drives the record into the Top-Ten list via a few views. The default start-page template renders that title into a double-quoted title="" attribute with Twig's raw filter, so the stored quote and event handler become live HTML, executing script in the browser of every subsequent (including unauthenticated) start-page visitor. The GHSA advisory documents step-by-step reproduction, though no packaged/verified exploit code is indicated in the provided data. |
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 default start page lets an authenticated user holding FAQ edit (editor) permission persist a malicious FAQ title that executes in the browser of every visitor who loads the public landing page. The flaw is an attribute-context escaping failure: startpage.twig renders the top-ten FAQ titles with Twig's raw filter inside a double-quoted title="" attribute, while sibling lists on the same page escape correctly, and the write path re-decodes entity-encoded quotes before storage so a payload such as x" onmouseover="alert(document.cookie) survives sanitisation and breaks out of the attribute. Affected builds are 4.0.12 through 4.0.19, 4.1.x before 4.1.12 and 4.2.0 pre-releases before 4.2.0-RC.1; fixes are released in 4.1.12 and 4.2.0-RC.1, exploitation requires the injected record to reach the top-ten list and a victim to visit the start page, and a public PoC reference exists in the vendor advisory but is not verified as working exploit code.
RemediationAI
Vendor-released patch: 4.1.12 (and 4.2.0-RC.1 for the 4.2.0 pre-release line). Upgrading to those builds is the complete fix; the evidence does not present a partial mitigation that fully removes the defect. Operators who cannot upgrade immediately can apply the upstream commit f2cd84cac27a6a361fc4334610ee77fef44cf91d, which replaces title="{{ topten.title | raw }}" with title="{{ topten.preview }}" in assets/templates/default/startpage.twig and adds a regression test (tests/phpMyFAQ/Twig/StartpageTemplateTest.php) asserting that title="x" onmouseover="alert(1)" is rendered escaped; backporting that single template line is low-risk but leaves the double-decoding write path in FaqController.php untouched and must be re-verified after any theme update. Because exploitation requires an FAQ edit permission and the vulnerable default-template code path, instances running a custom theme that does not render the top-ten title through the raw filter in an attribute, or that restrict FAQ edit rights to trusted staff, have narrower exposure - but these are scoping factors, not substitutes for the vendor fix. Details and the fixed release are at https://github.com/thorsten/phpMyFAQ/security/advisories/GHSA-wxmp-76j5-f3c9 and https://github.com/thorsten/phpMyFAQ/releases/tag/4.1.12.
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
CWE-79 applies here in its attribute-injection form. phpMyFAQ's default theme writes the top-ten (most viewed/voted) record titles into the anchor at assets/templates/default/startpage.twig lines 73-76 as title="{{ topten.title | raw }}" - the raw filter disables Twig's contextual auto-escaping, and the surrounding double-quoted attribute means a literal quote character terminates the attribute early. Every other list on the page, including the sticky-records block roughly twenty lines above, escapes the same data correctly, so the defect is an inconsistency in one sink rather than a systemic escaping failure. The write path compounds it: Administration/Api/FaqController.php runs the submitted question through FILTER_SANITIZE_SPECIAL_CHARS (htmlspecialchars with ENT_QUOTES plus tag stripping, producing ") and then immediately calls html_entity_decode with ENT_QUOTES | ENT_HTML5, restoring literal quote characters before the value is stored; Filter::removeAttributes (Symfony HtmlSanitizer with a safe-elements allowlist) then leaves the tag-free string, quotes intact. Statistics.php pulls the stored question via Utils::makeShorterText with 8-word truncation and performs no escaping. The result is a payload that requires no angle brackets, so it bypasses both the tag-stripping in filterSanitizeString and the HtmlSanitizer, and executes as an event handler in the anchor's attribute set for unauthenticated visitors. The supplied evidence does not describe any additional trigger preconditions beyond these code paths.
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
Editor permission is required to store the payload (PR:L), a victim must load the start page (UI:R), and script executing in the visitor's browser crosses security authority (S:C) with limited C/I impact and no availability effect.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
phpMyFAQ 4.0.12 through 4.0.19, 4.1.x before 4.1.12, and 4.2.0 pre-releases before 4.2.0-RC.1 contain a stored cross-site scripting vulnerability in startpage.twig, where top-ten FAQ titles are rendered with Twig's raw filter. Authenticated users with FAQ edit permission can save a question containing a double quote and event handler, which runs script for every start page visitor.
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-127012
GHSA-rmqm-gwp7-595q
NVD
CVE.org
EPSS
Vulnrichment
Exploit-DB