CVE-2026-34974
phpMyFAQ: SVG Sanitizer Bypass via HTML Entity Encoding leads to Stored XSS and Privilege Escalation
Description
phpMyFAQ is an open source FAQ web application. Prior to version 4.1.1, the regex-based SVG sanitizer in phpMyFAQ (SvgSanitizer.php) can be bypassed using HTML entity encoding in javascript: URLs within SVG <a href> attributes. Any user with edit_faq permission can upload a malicious SVG that executes arbitrary JavaScript when viewed, enabling privilege escalation from editor to full admin takeover. This issue has been patched in version 4.1.1.
INFO
Published Date :
April 2, 2026, 3:16 p.m.
Last Modified :
April 6, 2026, 4:09 p.m.
Remotely Exploit :
Yes !
Source :
[email protected]
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS 3.1 | MEDIUM | [email protected] |
Solution
- Update phpMyFAQ to version 4.1.1.
- Apply vendor patch for SVG sanitizer.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2026-34974.
| URL | Resource |
|---|---|
| https://github.com/thorsten/phpMyFAQ/releases/tag/4.1.1 | Product |
| https://github.com/thorsten/phpMyFAQ/security/advisories/GHSA-5crx-pfhq-4hgg | Exploit Vendor Advisory |
| https://github.com/thorsten/phpMyFAQ/security/advisories/GHSA-5crx-pfhq-4hgg | Exploit Vendor Advisory |
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2026-34974 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2026-34974
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2026-34974 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2026-34974 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
Initial Analysis by [email protected]
Apr. 06, 2026
Action Type Old Value New Value Added CPE Configuration OR *cpe:2.3:a:phpmyfaq:phpmyfaq:*:*:*:*:*:*:*:* versions up to (excluding) 4.1.1 Added Reference Type GitHub, Inc.: https://github.com/thorsten/phpMyFAQ/releases/tag/4.1.1 Types: Product Added Reference Type CISA-ADP: https://github.com/thorsten/phpMyFAQ/security/advisories/GHSA-5crx-pfhq-4hgg Types: Exploit, Vendor Advisory Added Reference Type GitHub, Inc.: https://github.com/thorsten/phpMyFAQ/security/advisories/GHSA-5crx-pfhq-4hgg Types: Exploit, Vendor Advisory -
CVE Modified by 134c704f-9b21-4f2e-91b3-4a467353bcc0
Apr. 02, 2026
Action Type Old Value New Value Added Reference https://github.com/thorsten/phpMyFAQ/security/advisories/GHSA-5crx-pfhq-4hgg -
New CVE Received by [email protected]
Apr. 02, 2026
Action Type Old Value New Value Added Description phpMyFAQ is an open source FAQ web application. Prior to version 4.1.1, the regex-based SVG sanitizer in phpMyFAQ (SvgSanitizer.php) can be bypassed using HTML entity encoding in javascript: URLs within SVG <a href> attributes. Any user with edit_faq permission can upload a malicious SVG that executes arbitrary JavaScript when viewed, enabling privilege escalation from editor to full admin takeover. This issue has been patched in version 4.1.1. Added CVSS V3.1 AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N Added CWE CWE-79 Added Reference https://github.com/thorsten/phpMyFAQ/releases/tag/4.1.1 Added Reference https://github.com/thorsten/phpMyFAQ/security/advisories/GHSA-5crx-pfhq-4hgg