CVE-2026-145045: phpMyFAQ before 4.2.0-RC.2 Stored XSS via SvgSanitizer Non-ASCII Namespace Prefix
phpMyFAQ before 4.2.0-RC.2 contains a stored cross-site scripting vulnerability that allows users with FAQEDIT rights to bypass SvgSanitizer using non-ASCII namespace prefixes. Attackers can upload SVG files containing prefixed script elements through the admin image upload endpoint, executing script in victims' sessions, including administrators, when served without a sandbox CSP.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 4.2.0-RC.2
Event History
Frequently Asked Questions
Who can exploit this issue?
An attacker needs an account with FAQ_EDIT rights and must be able to use the admin image upload endpoint. Exploitation also requires a victim to view the uploaded SVG.
Are administrators at risk?
Yes. Script embedded in a malicious uploaded SVG can execute in the session of a viewer, including an administrator, when the SVG is served without a sandbox CSP.
What configurations are affected?
The issue affects phpMyFAQ versions before 4.2.0-RC.2. The described attack relies on SVG uploads being served without a sandbox Content Security Policy.
What can be done before updating?
Restrict FAQ_EDIT permissions and access to the admin image upload endpoint to trusted users. Preventing untrusted SVG uploads or serving uploaded SVG content with a sandbox CSP can reduce exposure.