# CVE-2026-34974: phpMyFAQ: SVG Sanitizer Bypass via HTML Entity Encoding leads to Stored XSS and Privilege Escalation

- Severity: Medium 5.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 11% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-01T23:42:47.000Z
- Modified: 2026-07-24T21:10:00.143Z
- Also known as: GHSA-5crx-pfhq-4hgg
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- thorsten phpMyFAQ: < 4.1.1
- thorsten/phpmyfaq (Packagist): before 4.1.1
- phpmyfaq phpmyfaq: before 4.1.1

## Every score

- GitHub_M: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/thorsten/phpMyFAQ/security/advisories/GHSA-5crx-pfhq-4hgg> (exploit, vendor-advisory, web)
- <https://github.com/thorsten/phpMyFAQ/releases/tag/4.1.1> (product, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-34974> (advisory)
- <https://github.com/thorsten/phpMyFAQ> (package)

## Sources

- CVE List: [CVE-2026-34974](https://www.cve.org/CVERecord?id=CVE-2026-34974), CVE Terms of Use, modified 2026-04-02
- GitHub Advisory Database: [GHSA-5crx-pfhq-4hgg](https://github.com/advisories/GHSA-5crx-pfhq-4hgg), CC-BY-4.0, modified 2026-04-06
- NVD: [CVE-2026-34974](https://nvd.nist.gov/vuln/detail/CVE-2026-34974), Public domain, modified 2026-07-24

---

Page: https://cve.day/CVE-2026-34974 · Whole record: https://cve.day/CVE-2026-34974.json · Rebuilt by cve.day 2026-11-25T22:59:17.800Z
