Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate with FAQ_EDIT right and CSRF token
-
DeliveryUpload SVG with non-ASCII script prefix
-
ExploitBypass SvgSanitizer isSafe() check
-
ExecutionVictim directly opens stored SVG URL
-
ImpactExecute script in victim/admin session
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Unicode normalization
|
| Exploitation Conditions | Requires an authenticated user holding the delegated FAQ_EDIT right plus a valid CSRF token to POST a crafted SVG to the admin image upload endpoint (/admin/api/content/images); the SVG must use a non-ASCII namespace prefix on a script element (e.g. <xé:script>, 'x' + U+00E9) to evade SvgSanitizer's ASCII-only \w prefix regex. Exploitation then requires a victim to directly open the stored same-origin .svg URL (active user interaction), and succeeds ONLY on deployments that do not send Content-Security-Policy: sandbox for /content/user/images/*.svg - per the advisory this means the repository's legacy root nginx.conf, the development FrankenPHP config, or hand-rolled servers. The attack is blocked on deployments using the shipped Apache .htaccess, IIS web.config, the documented nginx reference config, or the production Caddy config, all of which send the sandbox header. These factors (delegated privilege, required victim interaction, and non-default/legacy server configuration) materially limit real-world exploitability. |
| Impact | This is a medium-severity stored XSS (SvgSanitizer bypass, CWE-176) with a genuine but bounded real-world risk, best treated as a scheduled rather than emergency fix - consistent with the input Decision label of 'this_month'. Supporting signals: the CVSS 4.0 vector is network-borne with low complexity (AV:N/AC:L) but requires a low-privilege authenticated role (PR:L) and user interaction (UI:P in the official input, UI:A per the researcher), and the vendor-rated impact is low across the board (VC:L/VI:L/SC:L/SI:L, score 5.1). There is NO CISA KEV listing and NO EPSS score provided, so there is no evidence of active or probable mass exploitation. A detailed public PoC/reproduction exists in the GitHub Security Advisory (it is not verified as a packaged working exploit). A notable conflict in the data: the official input scores impact as Low (5.1), while the researcher's own vector in the advisory rates it VC:H/VI:H (7.2 High) because the injected script can act as an administrator; the true impact depends on which privileged victim opens the file, so treat the severity as 'disputed Low-to-High, impact victim-dependent'. Critically, exploitation is also deployment-conditional: the advisory states the shipped Apache (.htaccess), IIS (web.config), documented nginx reference, and production Caddy configs already send Content-Security-Policy: sandbox for the image path and block execution, so only non-default or legacy server configurations are actually exploitable. Net: a real, trackable issue warranting patching this cycle, not a drop-everything emergency. |
| Exploit ScenarioDerived | An attacker holding the delegated FAQ_EDIT right uploads a malicious SVG whose script element uses a non-ASCII namespace prefix (e.g. <xé:script>) through the admin image upload endpoint, bypassing SvgSanitizer so the file is stored unsanitized at a same-origin URL. If an administrator (or other victim) later opens that SVG URL directly on a deployment that does not send Content-Security-Policy: sandbox for /content/user/images/*.svg, the script runs in their phpMyFAQ session and can act as that user. A step-by-step public PoC with a working reproduction file is published in the GitHub Security Advisory, though it is not verified as a packaged exploit. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Dec 04, 2026
Stored cross-site scripting in phpMyFAQ through 4.2.0-RC.1 lets an authenticated user holding the delegated FAQ_EDIT right upload an SVG whose script element carries a non-ASCII namespace prefix (for example <xé:script>, an 'x' followed by U+00E9), which SvgSanitizer's ASCII-only prefix matching fails to recognise, so ImageController stores the file unchanged under content/user/images/ and returns it as a same-origin URL. Script then executes in the session of any victim - including an administrator - who directly opens that URL, but only on deployments that do not send Content-Security-Policy: sandbox for /content/user/images/*.svg, namely the repository's legacy root nginx.conf, the development FrankenPHP config, or hand-rolled servers; the shipped Apache .htaccess, IIS web.config, documented nginx reference and production Caddy config all send that header and block execution. The exploit chain also requires a valid CSRF token and active victim interaction, which keeps this at medium severity (assessed CVSS:3.1 5.1, S:C/C:L/I:L) and makes a scheduled fix appropriate, matching the 'this_month' priority label; a public PoC reference exists in the GHSA advisory (local reproduction steps); it is not verified as working exploit code, and there is no confirmed active exploitation (CISA KEV).
RemediationAI
Vendor-released patch: upgrade to phpMyFAQ 4.2.0-RC.2 or later, which is the first version listed as fixed (https://github.com/thorsten/phpMyFAQ/security/advisories/GHSA-982p-ffjg-8646). The upstream fix approach is to match namespace prefixes as XML NCNames including non-ASCII characters (adding the /u modifier and allowing \x{80}-\x{10FFFF}) or, more robustly, to drop any element whose local name is dangerous regardless of prefix, with non-ASCII-prefix cases added to SvgSanitizerTest. If upgrading must be deferred, the decisive compensating control is to ensure every response for /content/user/images/*.svg carries Content-Security-Policy: sandbox - deployments on Apache with the shipped .htaccess, IIS with web.config, the documented nginx reference configuration or the production Caddy configuration already do this and are not exploitable, whereas the legacy root nginx.conf, the development FrankenPHP config and hand-rolled servers must have the header added at the server or reverse-proxy layer; the trade-off is that sandboxing those SVG responses also restricts other capabilities (scripts, forms, navigation) for legitimately served SVG assets. Additional interim measures are to restrict the delegated FAQ_EDIT right to trusted editors, since the upload requires that privilege plus a valid CSRF token, and to review existing content/user/images/ for SVG files containing prefixed script elements; neither measure removes the underlying sanitizer bypass, so upgrading remains the only complete fix. Applying these steps on a scheduled basis is consistent with the 'this_month' priority for this medium-severity issue.
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
The root cause is CWE-176 (Improper Handling of Unicode Encoding) inside phpMyFAQ's SVG sanitizer. SvgSanitizer defines the namespace prefix pattern as '(?:[\w.-]+:)?' at SvgSanitizer.php line 40; because \w is used without the /u modifier it matches only ASCII word characters, so a prefix such as 'xé:' (U+00E9) is not treated as a namespace prefix and the element is not inspected as a script element. containsDangerousContent() therefore returns false for <xé:script>, detectIssues() returns an empty list and isSafe() reports true, while the equivalent ASCII form <x:script> and a bare <script> are both correctly rejected. The persistence path is in Controller/Administration/Api/ImageController.php: upload() moves the file into content/user/images/ at line 116 and only invokes sanitize() at line 144 when isSafe() is false, so a bypassing file is stored byte-for-byte; the filename, .svg extension and mime_content_type()==image/svg+xml checks all pass. Whether the stored payload ever executes depends entirely on the HTTP response headers for that path: browsers honour a Content-Security-Policy: sandbox header on the SVG response and suppress the script, which is why the Apache (.htaccess), IIS (web.config), documented nginx reference and production Caddy configurations are not exploitable, while the legacy root nginx.conf, the development FrankenPHP config and hand-rolled servers that omit the header are. The affected CPE is the wildcard cpe:2.3:a:thorsten:phpmyfaq:*:*:*:*:*:*:*:*, with the advisory listing vulnerable versions <= 4.2.0-RC.1 and the fix in 4.2.0-RC.2.
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
Network upload (AV:N) with low per-attack complexity on vulnerable configs (AC:L); delegated FAQ_EDIT privilege (PR:L); victim must open the stored SVG (UI:R); script runs cross-context in the browser session (S:C), with limited impact (C:L/I:L).
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
1DescriptionCVE.org
phpMyFAQ before 4.2.0-RC.2 contains a stored cross-site scripting vulnerability that allows users with FAQ_EDIT rights to bypass SvgSanitizer using non-ASCII namespace prefixes. Attackers can upload SVG files containing prefixed script elements through the admin image upload endpoint, executing script in victims' sessions, including administrators, when served without a sandbox CSP.
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-144329
NVD
CVE.org
Vulnrichment
GitHub
VulDB
Exploit-DB