Skip to main content

phpMyFAQ EUVDEUVD-2026-126782

| CVE-2026-130365 LOW
Cross-site Scripting (XSS) (CWE-79)
2026-11-17 VulnCheck GHSA-cvqc-pqw6-wfwf
2.1
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Recon
    Authenticate with FAQ_EDIT account
  2. Delivery
    Craft SVG with namespace-prefixed <x:script>
  3. Exploit
    Upload via admin image API, bypassing SvgSanitizer
  4. Install
    File stored unchanged and served as image/svg+xml
  5. C2
    Lure super-admin to open SVG URL directly
  6. Execute
    Script executes in site origin, steals CSRF token
  7. Impact
    Call /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.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.2% exploitation probability (EPSS)

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

Alert me

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

phpMyFAQ 4.2.0-alpha <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 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

Vendor (VulnCheck) PRIMARY 2.1 LOW
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
vuln.today AI 4.4 MEDIUM

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.

3.1 AV:N/AC:H/PR:L/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:H/AT:P/PR:L/UI:P/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
High
Attack Requirements
Present
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
Nov 17, 2026 - 03:16 EUVD

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

EPSS Score
0.2%
Top 93% exploitable
Prevalence
Low
niche open-source FAQ application, limited enterprise deployment footprint
Social Media
1
Sightings
Data Quality
5 sources
Confidence: Medium

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 LOW
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.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
Defer
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Low

Priority Score

10
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +10
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