CVE-2026-140388: phpMyFAQ before 4.1.12 Stored XSS via layout.customCss Configuration Field
phpMyFAQ before 4.1.12 contains a stored cross-site scripting vulnerability that allows delegated admins with the CONFIGURATIONEDIT right to inject scripts via the layout.customCss setting. Attackers can submit a payload closing the style block through the admin configuration API, executing JavaScript in every public visitor's browser, including SuperAdmins, enabling session hijacking.
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.1.12
Event History
Frequently Asked Questions
Who can exploit this issue, and who is exposed to the injected script?
Exploitation requires a delegated phpMyFAQ administrator with the CONFIGURATION_EDIT right. Once stored in layout.customCss, the script executes in every public visitor's browser, including SuperAdmin users.
What access and interaction does exploitation require?
The attacker needs network access, high privileges in the form of the CONFIGURATION_EDIT right, and access to the admin configuration API. No victim interaction is required for the payload to be stored, but it executes when users visit affected public pages.
Which versions require remediation?
phpMyFAQ versions before 4.1.12 are affected. Updating to 4.1.12 or later addresses the affected version range described here.
What can be done if an update cannot be applied immediately?
Restrict the CONFIGURATION_EDIT right to fully trusted administrators and review the layout.customCss setting for content that closes the style block or includes script payloads. Remove any malicious configuration values and treat sessions of users who may have visited affected pages, especially SuperAdmins, as potentially exposed.