Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconAuthenticate with FAQ_EDIT account
-
DeliveryCraft SVG with namespace-prefixed <x:script>
-
ExploitUpload via admin image API, bypassing SvgSanitizer
-
InstallFile stored unchanged and served as image/svg+xml
-
C2Lure super-admin to open SVG URL directly
-
ExecuteScript executes in site origin, steals CSRF token
-
ImpactCall /admin/api/* as admin to create users or alter config
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 backend account with the FAQ_EDIT (edit_faq) permission - this is explicitly not an unauthenticated issue. The attacker uploads an SVG containing a namespace-prefixed script element (e.g. <x:script> with xmlns:x bound to the SVG namespace, or <h:script> bound to the XHTML namespace) through the admin image upload endpoint (/admin/api/content/images), which SvgSanitizer stores unchanged because its regexes only match element names immediately after '<'. Script execution additionally requires: (1) a victim (e.g. super-admin) to open the stored SVG URL directly as a top-level document - an <img> embed in a FAQ does not execute it; and (2) a server that does NOT send Content-Security-Policy: sandbox for user SVGs. The advisory confirms that condition holds specifically for IIS with the shipped web.config, for hand-written nginx configs derived from the old repo-root nginx.conf sample, and for Apache without mod_headers; conversely, the shipped Apache-with-mod_headers, Docker nginx, and production Caddy configs DO send the sandbox header and neutralize the payload. These layered requirements - authentication, direct user interaction, and a non-hardened server configuration - substantially limit realistic exploitation. |
| Impact | This is a genuinely low-priority issue despite being a stored XSS, and the signals are consistent in pointing that way. The CVSS 4.0 vector (AV:N/AC:H/AT:P/PR:L/UI:P) and the computed base score of 2.1 reflect multiple real constraints: the attacker must already hold an authenticated FAQ_EDIT account (PR:L), the victim must actively open the SVG URL as a top-level document (UI:P - an <img> embed does not fire the script), and full exploitation requires a deployment that does NOT emit the Content-Security-Policy: sandbox header for user SVGs (AT:P/AC:H). The vendor advisory is explicit that the shipped Apache-with-mod_headers, Docker nginx, and production Caddy configs all neutralize the payload via that header, leaving only IIS with the shipped web.config, hand-written nginx based on the old sample, and Apache without mod_headers actually exploitable. The vuln.today decision label is 'monitor', not act_now/emergency. No EPSS score and no KEV status were provided in the input, so there is no signal of active exploitation; per the data there is no CISA KEV listing. A detailed public PoC exists in the VulnCheck/GHSA advisory (a standalone script exercising the real SvgSanitizer plus a headless-Chromium confirmation), which raises the practical likelihood of opportunistic abuse, but PoC availability is distinct from active exploitation and nothing here indicates in-the-wild use. Net: a real sanitizer-bypass bug worth patching, but a low-real-risk issue gated behind authentication, user interaction, and a specific server configuration - not an urgent fire-drill. |
| Exploit ScenarioDerived | An authenticated phpMyFAQ user holding only FAQ_EDIT permission uploads a crafted SVG whose script element carries an XML namespace prefix (e.g. <x:script> bound to the SVG namespace), which the regex-based SvgSanitizer fails to recognize, so isSafe() returns true and ImageController::upload() stores the file byte-for-byte. The editor then links the SVG URL to a super-admin; when the admin opens it directly on a server that does not send the sandbox CSP (notably IIS with the shipped web.config), the script runs in the phpMyFAQ origin and can read the admin's CSRF token and call /admin/api/* as that admin. A working public PoC demonstrating the bypass and browser execution is published in the advisory, though the high attack complexity and required user interaction limit real-world reliability. |
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 4.2.0 pre-releases (4.2.0-alpha through 4.2.0-RC.1) lets an authenticated FAQ_EDIT user bypass SvgSanitizer with namespace-prefixed elements such as <x:script> and upload a malicious SVG through the admin image endpoint. Script execution requires a higher-privileged victim to open the stored SVG URL directly and a server that does not send Content-Security-Policy: sandbox for user SVGs, notably IIS with the shipped web.config; the issue is rated 2.1, carries the vuln.today priority label monitor, has no confirmed active exploitation reported, and has a public PoC reference that is not verified as working exploit code.
RemediationAI
Upgrade phpMyFAQ to 4.2.0-RC.2, the fixed release listed in the package data (https://github.com/thorsten/phpMyFAQ/releases/tag/4.2.0-RC.2), and review the vendor advisory at https://github.com/thorsten/phpMyFAQ/security/advisories/GHSA-h77h-69jx-2qvj. The advisory's code-level fix is to stop matching SVG markup with regexes: parse it with DOMDocument using LIBXML_NONET and no entity substitution, walk the tree, compare localName case-insensitively against an allowlist independent of prefix and namespace, reject any element outside the SVG namespace, or use a maintained SVG sanitizer library. As a short-term mitigation, make the existing checks prefix-tolerant with a pattern such as '/<(?:[\w.-]+:)?' . preg_quote($element, '/') . '\b/i' and apply the same change to the <script>/<foreignObject patterns and the removal regexes, adding tests for prefixed script, foreignObject, use, animate and set. Also ship Content-Security-Policy: sandbox and X-Content-Type-Options: nosniff for content/user/images/*.svg in phpmyfaq/web.config, for example with an outboundRules rule or a <location> with customHeaders, and consider sending Content-Disposition: attachment for user SVGs; the advisory states that the shipped Apache .htaccess with mod_headers, Docker nginx, and production Caddy configurations already send the sandbox header and neutralize the payload, while IIS with the shipped web.config, hand-written nginx configs based on the old repo-root nginx.conf sample, and Apache without mod_headers do not.
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 defect is in phpMyFAQ's SvgSanitizer (phpmyfaq/src/phpMyFAQ/Helper/SvgSanitizer.php), whose dangerous-element regexes match element names only when they come immediately after '<', such as '/<script\b[^>]*>.*?<\/script>/is' and '/<foreignObject\b/i'. A namespace-prefixed element such as <x:script> bound to the SVG namespace, or <h:script> bound to the XHTML namespace, is not matched, so isSafe() returns true. In an SVG served as image/svg+xml, the browser's XML parser resolves those prefixed elements as real script elements, and ImageController::upload() stores the file byte-for-byte under content/user/images/ without calling sanitize(). This is a CWE-79 stored cross-site scripting issue with a CWE-184 incomplete-list component, affecting the 4.2.0 pre-release SvgSanitizer and the admin image upload path guarded by the FAQ_EDIT permission. The advisory notes the payload is contained by Content-Security-Policy: sandbox in the shipped Apache .htaccess when mod_headers is present, in the Docker nginx config, and in the production Caddy config; the shipped IIS web.config lacks that header for content/user/images/*.svg, so on IIS the script runs in the phpMyFAQ origin. The CPE string is cpe:2.3:a:thorsten:phpmyfaq:*:*:*:*:*:*:*:*.
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:H/AT:P/PR:L/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N
PR:L for the required FAQ_EDIT account, UI:R since the victim must open the SVG directly, AC:H because exploitation depends on a server not sending sandbox CSP, and S:C as script runs against higher-privileged users' sessions.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
1DescriptionCVE.org
phpMyFAQ from 4.2.0-alpha before 4.2.0-RC.2 contains a stored cross-site scripting vulnerability that allows FAQ_EDIT users to bypass SvgSanitizer using namespace-prefixed elements like <x:script>. Attackers can upload malicious SVGs through the admin image upload so script runs in the site origin on IIS, hijacking sessions of users like super-admins.
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-126782
GHSA-cvqc-pqw6-wfwf
NVD
CVE.org
EPSS
Exploit-DB