CVE-2026-34974
MEDIUM 5.4CVSS 3.1phpMyFAQ: SVG Sanitizer Bypass via HTML Entity Encoding Leads to Stored XSS and Privilege Escalation
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.
- Published
- 2 Apr 2026
- Last modified
- 24 Jul 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-79
- Also known as
- GHSA-5crx-pfhq-4hgg
- Sources
- NVDJSONOSV GHSA-5crx-pfhq-4hggJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | phpmyfaq | phpmyfaqcpe:2.3:a:phpmyfaq:phpmyfaq:*:*:*:*:*:*:*:* |
< 4.1.1 | 4.1.1 |
| OSV | Packagist | thorsten/phpmyfaq | < 4.1.1 | 4.1.1 |
References
- https://github.com/thorsten/phpMyFAQ/releases/tag/4.1.1 · Product, WEB
- https://github.com/thorsten/phpMyFAQ/security/advisories/GHSA-5crx-pfhq-4hgg · Exploit, Vendor Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-34974 · ADVISORY
- https://github.com/thorsten/phpMyFAQ · PACKAGE
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 2 Apr 2026)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 1 Apr 2026)