phpMyFAQ: SVG Sanitizer Bypass via HTML Entity Encoding leads to Stored XSS and Privilege Escalation
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-79.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| thorsten | phpMyFAQ | before 4.1.1 | 4.1.1 | Patch available | CNA |
| — | thorsten/phpmyfaq (Packagist) | before 4.1.1 | 4.1.1 | Patch available | GHSA-5crx-pfhq-4hgg |
- phpMyFAQ Vendorthorsten Affected before 4.1.1 Fixed in 4.1.1 Patch available CNA
- thorsten/phpmyfaq (Packagist) Vendor— Affected before 4.1.1 Fixed in 4.1.1 Patch available GHSA-5crx-pfhq-4hgg
Remediation
- Fix · CNA phpMyFAQ (thorsten) Fixed in 4.1.1
- Fix · GHSA-5crx-pfhq-4hgg thorsten/phpmyfaq (Packagist) Fixed in 4.1.1 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-34974
- 2026-10-03 Alias added: GHSA-5crx-pfhq-4hgg
References
More thorsten Phpmyfaq vulnerabilities
- TI-2023-00296 Improper Authentication in thorsten/phpmyfaq CVSS 3.1CRITICAL 9.8
- TI-2026-53313 phpMyFAQ 3.1.0 through 4.1.6 Authentication Bypass via LDAP CVSS 4.0HIGH 8.8
- TI-2025-37331 phpMyFAQ duplicate email registration allows multiple accounts with the same email CVSS 3.1CRITICAL 9.8
- TI-2024-36257 phpMyFAQ Generates an Error Message Containing Sensitive Information if database server is not available CVSS 3.1HIGH 8.6
- TI-2023-03720 Improper Neutralization of Formula Elements in a CSV File in thorsten/phpmyfaq CVSS 3.1CRITICAL 9.8
- TI-2023-00749 Command Injection in thorsten/phpmyfaq CVSS 3.1CRITICAL 9.8
Sources
- CVE-2026-34974 · CVE Program
- CVE-2026-34974 · NVD
- FIRST EPSS
- GHSA-5crx-pfhq-4hgg · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences