Skip to main content
Menu
CVEs

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.

CVE-2026-140388Published December 1, 2026, updated

8.7HighCNA
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”

github.com

What to do

  1. 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.
  2. 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

cve.now Index

17Pof 100 · provisional · methodology v3
  • 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

  1. CVE published
  2. First seen by cve.now

Evidence 4

KindSource
Vendor advisory 1Establishes: Affected and fixed versions.
AdvisoryGitHub · thorsten/phpMyFAQ · Advisory GHSA-7jxx-h8hx-jxxf
CVE record 2Establishes: The identifier and description.
RecordCVE List · CVE-2026-140388
RecordNVD · CVE-2026-140388
Other links 1
Linkvulncheck.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

No corrections so far. Something wrong on this page? Report an error.