CVE-2026-34974 Details
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.
A vulnerability exists in phpMyFAQ versions prior to 4.1.1, where the regex-based SVG sanitizer can be bypassed using HTML entity encoding in 'javascript:' URLs within SVG '<a href>' attributes. This flaw allows users with 'edit_faq' permission to upload malicious SVG files that execute arbitrary JavaScript when viewed. The vulnerability enables privilege escalation from editor to full admin takeover.
Users are advised to update to phpMyFAQ version 4.1.1 or later, and to consider replacing the regex-based SVG sanitization with a DOM-based allowlist approach. Alternatively, SVG files can be served with a 'Content-Disposition: attachment' header to prevent inline rendering.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Apr 2, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://github.com/thorsten/phpMyFAQ/security/advisories/GHSA-5crx-pfhq-4hgg | CISA-ADP | ExploitVendor Advisory |
| https://github.com/thorsten/phpMyFAQ/releases/tag/4.1.1 | [email protected] | Product |
| https://github.com/thorsten/phpMyFAQ/security/advisories/GHSA-5crx-pfhq-4hgg | [email protected] | ExploitVendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| phpmyfaq phpmyfaq | < 4.1.1 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 24, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Apr 6, 2026 | Initial Analysis | [email protected] |
| Apr 2, 2026 | CVE Modified | CISA-ADP |
| Apr 2, 2026 | New CVE Received | [email protected] |