phpMyFAQ stored XSS in layout.customCss configuration
Affects phpMyFAQ before 4.1.12 when security.permLevel is set to medium and users hold the delegated CONFIGURATION_EDIT right. No vendor rating is given. Fixed in 4.1.12.
- Exploited
- No known exploitation
- Fix
- Fixed in 4.1.12
- Who is exposed
- Specific setups only
Summary
Written by a model
phpMyFAQ before 4.1.12 contains a stored cross-site scripting vulnerability that allows delegated admins with the CONFIGURATION_EDIT 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.
Who should check
Teams running phpMyFAQ before 4.1.12 with security.permLevel set to medium that delegate CONFIGURATION_EDIT to non-SuperAdmin users.
Not fixed by: Twig's standard | e escape is not the right fix for this field.
“Any phpMyFAQ installation running with security.permLevel=medium”
What to do
Check whether your setup matches what the bug needs.
Affects phpMyFAQ versions before 4.1.12. The security.permLevel setting must be medium (group-based delegation mode). The attacker must hold the delegated CONFIGURATION_EDIT right, not be SuperAdmin.Upgrade to a fixed version: 4.1.12.
Check your systems with an agent
Paste this into a coding or ops agent. It checks your systems read-only and reports a table per asset.
Check whether my systems are affected by CVE-2026-140388 (phpMyFAQ before 4.1.12 Stored XSS via layout.customCss Configuration Field), using the cve.now data below.
Rules: work read-only. Do not run exploit code, proof-of-concept scripts or scanners that send attack payloads, and do not change any configuration, package, image or deployment. Report findings only.
What cve.now has for CVE-2026-140388 (entry last updated 2026-12-01):
Affected:
- thorsten phpMyFAQ: fixed in 4.1.12
Fixed versions: 4.1.12.
Conditions (all must be true for the bug to be hit):
- Affects phpMyFAQ versions before 4.1.12. (source: https://www.vulncheck.com/advisories/phpmyfaq-before-4.1.12-stored-xss-via-layout-customcss-configuration-field)
- The security.permLevel setting must be medium (group-based delegation mode). (source: https://github.com/thorsten/phpMyFAQ/security/advisories/GHSA-7jxx-h8hx-jxxf)
- The attacker must hold the delegated CONFIGURATION_EDIT right, not be SuperAdmin. (source: https://github.com/thorsten/phpMyFAQ/security/advisories/GHSA-7jxx-h8hx-jxxf)
Setup: the bug needs a feature or setting that is off by default or uncommon. Check whether each asset has it on.
Attacker needs: network access, high-privilege login, no user action.
CISA KEV: CVE-2026-140388 is not listed as of cve.now's last read.
This KEV status is for CVE-2026-140388 only. If you also check another CVE, look up its own KEV status; never assume it from this one.
How to check:
- Installed software: check what is actually running, not what a repo declares. Read the version from each host, container image and Kubernetes node (the binary's version output, the OS package database, image layers), and check whether the conditions above hold there. Distribution packages may carry a backported fix under an older version number; confirm against the distribution's own advisory.
Verify against the linked advisories before concluding, and cite the date you read each one:
- https://github.com/thorsten/phpMyFAQ/security/advisories/GHSA-7jxx-h8hx-jxxf
- https://www.vulncheck.com/advisories/phpmyfaq-before-4.1.12-stored-xss-via-layout-customcss-configuration-field
Do not conclude an asset is unaffected unless you checked it and the evidence covers both its version and the conditions above. If you could not check something, mark it unknown and say what is missing.
Report a table with one row per asset and these columns: Asset | Version or build | Status (affected, fixed, not applicable, unknown) | Compensating controls | Exposure (internet-facing, internal, none) | Evidence | Next action.
Entry: https://cve.now/CVE-2026-140388
For follow-up questions, use the cve.now MCP server at https://mcp.cve.now/mcp (no authentication), for example execute with name cve.get and arguments {"id": "CVE-2026-140388"}.Affected versions
- thorsten phpMyFAQfixed in 4.1.12
cve.now Index
- Exploitation?/40Unknown. No CISA SSVC exploitation rating yet
- Exposure8/25Specific setups only, reachable over the network
- Reach?/20Unknown. No tracked technology or package matched
- Severity8.7/10CVSS 8.7
- No patch0/5No signal
What would change the score
- Would score about 67 if added to CISA KEV
- Would score about 62 if CISA's SSVC rates exploitation active
- Would score about 24 if CISA's SSVC rates it automatable
Timeline
- CVE published
- First seen by cve.now
Evidence 4
| Kind | Source |
|---|---|
| Vendor advisory 1Establishes: Affected and fixed versions. | |
| Advisory | GitHub · thorsten/phpMyFAQ · Advisory GHSA-7jxx-h8hx-jxxf |
| CVE record 2Establishes: The identifier and description. | |
| Record | CVE List · CVE-2026-140388 |
| Record | NVD · CVE-2026-140388 |
| Other links 1 | |
| Link | vulncheck.com · advisories/phpmyfaq-before-4.1.12-stored-xss-via-layout-customcss-configuration-field |
Questions about CVE-2026-140388
Is CVE-2026-140388 being exploited?
It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.
Source: cve.now feed data
What does this mean?
A stored cross-site scripting flaw in the layout.customCss configuration field lets attacker JavaScript run in every public visitor's browser, including SuperAdmins, which enables session hijacking.
Source: vulncheck.com, github.com
Which versions are affected by CVE-2026-140388?
phpMyFAQ: before 4.1.12.
Source: cve.now feed data
Am I affected, and how do I check?
Affects phpMyFAQ versions before 4.1.12 that use security.permLevel set to medium (group-based delegation mode), where a user holds the delegated CONFIGURATION_EDIT right rather than being SuperAdmin. Check the installed version and the security.permLevel setting to see whether this setup applies.
Source: vulncheck.com, github.com
How do I fix CVE-2026-140388?
Upgrade phpMyFAQ to 4.1.12 or later, which is the fixed version.
Source: vulncheck.com, github.com
Related
- CVE-2026-140385phpMyFAQ 4.1.7 before 4.1.12 WebAuthn Assertion Replay Authentication Bypass
- CVE-2026-140389phpMyFAQ 4.1.11 Remember-Me Cookie Not Invalidated After Password Change
- CVE-2026-140383phpMyFAQ 4.2.0-alpha before 4.2.0-RC.2 Password Reset Token Forgery Account Takeover
- CVE-2026-140384phpMyFAQ before 4.1.12 Privilege Escalation via Account Takeover in User Edit API
- CVE-2026-130351phpMyFAQ 4.2.0-alpha before 4.2.0-RC.2 Cross-Tenant Configuration Overwrite via Redis Store
- CVE-2026-130348phpMyFAQ 4.1.0 before 4.1.12 and 4.2.0-alpha before 4.2.0-RC.2 Category ACL Bypass
No corrections so far. Something wrong on this page? Report an error.