{"id":"CVE-2026-34974","published":"2026-04-02T14:48:22Z","modified":"2026-04-02T16:22:14Z","title":"phpMyFAQ: SVG Sanitizer Bypass via HTML Entity Encoding leads to Stored XSS and Privilege Escalation","vendor":"thorsten","product":"phpMyFAQ","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00187,"percentile":0.08509,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/thorsten/phpMyFAQ/security/advisories/GHSA-5crx-pfhq-4hgg","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/thorsten/phpMyFAQ/releases/tag/4.1.1","tags":["x_refsource_MISC"]}],"priority":{"score":5.5,"factors":[{"name":"EPSS percentile","points":1.7},{"name":"CVSS severity","points":3.78}]},"vendorSlug":"thorsten","affectedVersions":[{"vendor":"thorsten","product":"phpMyFAQ","versions":["< 4.1.1"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-04-02T16:16:00.518178Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"thorsten/phpmyfaq","vulnerableRanges":["<4.1.1"],"patched":["4.1.1"],"from":["GHSA-5crx-pfhq-4hgg"],"provenance":"source"}],"summary":{"text":"The phpMyFAQ FAQ web application's regex-based SVG sanitizer (SvgSanitizer.php) fails to neutralise javascript: URLs in SVG <a href> attributes when they are HTML entity encoded, allowing malicious script to be stored through uploaded SVG files. An attacker who holds the edit_faq permission can exploit this over the network by uploading a crafted SVG that runs arbitrary JavaScript when another user views it, which requires that user to interact with the content and can be used to escalate from editor to administrator.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:19:58Z"},"euvd":{"id":"EUVD-2026-18332","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-27836","published":"2026-02-27","fixed":"4.0.18","kev":false,"link":{"from":"CVE-2026-27836","to":"CVE-2026-34974","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:thorsten/phpmyfaq","fromFixed":"4.0.18","toFixed":"4.1.1","daysApart":34}]}},{"cve":"CVE-2026-32629","published":"2026-04-02","fixed":"4.1.1","kev":false},{"cve":"CVE-2026-34973","published":"2026-04-02","fixed":"4.1.1","kev":false},{"cve":"CVE-2026-34974","published":"2026-04-02","fixed":"4.1.1","kev":false},{"cve":"CVE-2026-45007","published":"2026-05-15","fixed":"4.1.2","kev":false},{"cve":"CVE-2026-45008","published":"2026-05-15","fixed":"4.1.2","kev":false},{"cve":"CVE-2026-45009","published":"2026-05-15","fixed":"4.1.2","kev":false}],"package":"Packagist:thorsten/phpmyfaq"}}