Skip to main content
← All vulnerabilities
CVE-2026-34974GHSA-5CRX-PFHQ-4HGG

phpMyFAQ: SVG Sanitizer Bypass via HTML Entity Encoding leads to Stored XSS and Privilege Escalation

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 4.1.1
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • thorsten phpMyFAQ

    fixed in 4.1.1

  • thorsten/phpmyfaqPackagist

    fixed in 4.1.1

References 2

GitHub · thorsten/phpMyFAQ