Skip to main content

phpMyFAQ EUVDEUVD-2026-144329

| CVE-2026-145045 MEDIUM
Improper Handling of Unicode Encoding (CWE-176)
2026-12-04 VulnCheck
5.1
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate with FAQ_EDIT right and CSRF token
  2. Delivery
    Upload SVG with non-ASCII script prefix
  3. Exploit
    Bypass SvgSanitizer isSafe() check
  4. Execution
    Victim directly opens stored SVG URL
  5. Impact
    Execute 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.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

phpMyFAQ 0 <4.2.0-RC.2

Affected Packages

euvd phpmyfaq fix: 4.2.0-RC.2

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

Vendor (VulnCheck) PRIMARY 5.1 MEDIUM
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
vuln.today AI 5.4 MEDIUM

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).

3.1 AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:P/PR:L/UI:A/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
Passive
Vulnerable system: Confidentiality
Low
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
Low
Subsequent system: Availability
None

Lifecycle Timeline

1
Patch available
Dec 04, 2026 - 17:18 EUVD

DescriptionCVE.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

Prevalence
Low
niche self-hosted open-source PHP FAQ application, limited enterprise footprint
Data Quality
4 sources
Confidence: Medium
EUVD NVD CVE.org Vulnrichment GitHub VulDB

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.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS N/A
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

CVE-2025-59943 CRITICAL POC
9.8 Oct 03

Duplicate-email registration handling in phpMyFAQ 4.0.7 through 4.0.13 (and 4.0-nightly-2025-10-03 and earlier) lets una

CVE-2023-5865 CRITICAL POC
9.8 Oct 31

Insufficient Session Expiration in GitHub repository thorsten/phpmyfaq prior to 3.2.2. Rated critical severity (CVSS 9.8

CVE-2023-1886 CRITICAL POC
9.8 Apr 05

Authentication Bypass by Capture-replay in GitHub repository thorsten/phpmyfaq prior to 3.1.12. Rated critical severity

CVE-2023-1753 CRITICAL POC
9.8 Mar 31

Weak Password Requirements in GitHub repository thorsten/phpmyfaq prior to 3.1.12. Rated critical severity (CVSS 9.8), t

CVE-2022-3754 CRITICAL POC
9.8 Oct 29

Weak Password Requirements in GitHub repository thorsten/phpmyfaq prior to 3.1.8. Rated critical severity (CVSS 9.8), th

CVE-2026-46364 CRITICAL POC
9.3 May 15

Unauthenticated SQL injection in phpMyFAQ before 4.1.2 allows remote attackers to extract credentials, admin tokens, and

CVE-2017-15730 HIGH POC
8.8 Oct 22

In phpMyFAQ before 2.9.9, there is Cross-Site Request Forgery (CSRF) in admin/stat.ratings.php. Rated high severity (CVS

CVE-2017-15808 HIGH POC
8.8 Oct 23

In phpMyFaq before 2.9.9, there is CSRF in admin/ajax.config.php. Rated high severity (CVSS 8.8), this vulnerability is

CVE-2017-15735 HIGH POC
8.8 Oct 22

In phpMyFAQ before 2.9.9, there is Cross-Site Request Forgery (CSRF) for modifying a glossary. Rated high severity (CVSS

CVE-2017-15734 HIGH POC
8.8 Oct 22

In phpMyFAQ before 2.9.9, there is Cross-Site Request Forgery (CSRF) in admin/stat.main.php. Rated high severity (CVSS 8

CVE-2024-28107 HIGH POC
8.8 Mar 25

phpMyFAQ is an open source FAQ web application for PHP 8.1+ and MySQL, PostgreSQL and other databases. Rated high severi

CVE-2024-27299 HIGH POC
8.8 Mar 25

phpMyFAQ is an open source FAQ web application for PHP 8.1+ and MySQL, PostgreSQL and other databases. Rated high severi

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy