Skip to main content

phpMyFAQ CVE-2026-140388

| EUVDEUVD-2026-140255 HIGH
Cross-site Scripting (XSS) (CWE-79)
2026-12-01 VulnCheck GHSA-8jrj-957q-q228
8.7
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Obtain delegated CONFIGURATION_EDIT admin account
  2. Delivery
    Authenticate and prime CSRF token
  3. Exploit
    POST crafted CSS payload closing the style block
  4. Install
    phpMyFAQ stores value unsanitized in layout.customCss
  5. C2
    Payload rendered via raw filter on every public page
  6. Execute
    Script executes in each visitor's browser
  7. Impact
    Hijack SuperAdmin/visitor sessions

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Output encoding, context-aware escaping
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Execution

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires two concrete, non-default conditions stated in the vendor advisory: (1) the installation must run with security.permLevel set to 'medium' (the group-based delegation mode) - under the default 'Basic' level the CONFIGURATION_EDIT right is SuperAdmin-only and this attack path does not exist; and (2) the attacker must hold a user/group account granted the delegated 'Configuration -> Edit configuration' right (editconfig, ID 20) without SuperAdmin. Given those, the attacker submits an HTML-tag-bearing value to the layout.customCss setting via POST /admin/api/configuration (a valid session and the correct per-endpoint pmf-csrf-token are enforced and must be satisfied). The payload then executes with no victim interaction beyond loading any public page, because it is rendered through {{ customCss | raw }} and the production-default CSP retains script-src 'unsafe-inline'. LIMITING FACTORS: the non-default permLevel=medium requirement and the pre-existing delegated-admin privilege substantially narrow who can exploit this; session and CSRF checks are enforced (only field sanitization is missing). The only complete fix per the vendor is upgrading to phpMyFAQ 4.1.12.

Impact

This is a genuine but conditional priority rather than a drop-everything emergency, and the signals are internally consistent once the deployment precondition is understood. The vendor CVSS 4.0 vector (AV:N/AC:H/AT:P/PR:H/UI:N, score 8.7 High) correctly encodes a network-reachable flaw that nonetheless requires an authenticated, privileged actor (PR:H) and a specific attack prerequisite (AT:P) - the non-default security.permLevel=medium delegation mode. The vuln.today decision label is 'this_week' (not act_now/emergency), which matches: impact is high (stored XSS on every public page, scope change to visitors' browsers including SuperAdmins, enabling session hijacking) but the attacker must already hold a delegated CONFIGURATION_EDIT admin right in a non-default configuration. No EPSS score and no KEV listing were provided, so there is no evidence of mass automated exploitation; this is 'no public exploitation observed' territory. However, the vendor GitHub Security Advisory (GHSA-7jxx-h8hx-jxxf) contains a complete, step-by-step working exploit that the reporter (VulnCheck) independently reproduced three times against commit 4dcef9d4, so weaponization requires no research effort for anyone who already has the required admin right. Net: a real, well-documented, patched issue whose realistic blast radius is gated by both a privileged role and a non-default setting - important for installations running delegated admin, lower concern for default (Basic) deployments where CONFIGURATION_EDIT is SuperAdmin-only. No signals are in conflict; the main caveat is that EPSS/KEV are simply absent, not low, so exploitation likelihood cannot be quantified.

Exploit ScenarioDerived

A delegated phpMyFAQ admin who holds only the CONFIGURATION_EDIT right (not SuperAdmin) in a permLevel=medium installation submits the payload </style><script>...</script><style> to the layout.customCss field via POST /admin/api/configuration. phpMyFAQ stores it verbatim and renders it with Twig's {{ customCss | raw }} inside the <style> block of every public page, and the production-default CSP keeps 'unsafe-inline', so the script executes in every visitor's browser - unauthenticated users and SuperAdmins alike - allowing session-cookie theft. A complete, independently reproduced exploit (three confirmed runs) is published in the vendor's GitHub Security Advisory, so no additional exploit development is needed.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.5% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Dec 02, 2026

Stored cross-site scripting in phpMyFAQ before 4.1.12 lets a delegated administrator holding only the CONFIGURATION_EDIT (editconfig, ID 20) right inject HTML into the layout.customCss setting through POST /admin/api/configuration, after which the value is rendered unescaped into the <style> block of every public page and executes in the browser of any visitor, including SuperAdmins viewing the public site. Exploitation is conditional rather than universal: the installation must be running with security.permLevel set to 'medium' (group-based delegation), because under the default 'Basic' level the editconfig right is SuperAdmin-only and the path does not exist, and the attacker must already hold a valid session plus the correct per-endpoint pmf-csrf-token - both checks are enforced; only output sanitization is missing. The vendor advisory ships a detailed proof-of-concept with three reproduction runs, but it is documented researcher reproduction rather than confirmed in-the-wild use, and the vendor-released fix is phpMyFAQ 4.1.12; the priority signal (this_week) reflects a real but deployment-gated exposure rather than a drop-everything emergency.

RemediationAI

Upgrade to phpMyFAQ 4.1.12, which the vendor identifies as the only complete fix (Composer: composer/thorsten/phpmyfaq fixed in 4.1.12); the patch reference is 'Available from vendor' and the advisory at https://github.com/thorsten/phpMyFAQ/security/advisories/GHSA-7jxx-h8hx-jxxf documents the template-layer change that stops the layout.customCss value from being emitted raw. Until upgrading, the most direct compensating control follows from the advisory's own precondition: set security.permLevel back to 'Basic', which makes the CONFIGURATION_EDIT (editconfig, ID 20) right SuperAdmin-only and removes the delegated-admin attack path - the trade-off is that group-based configuration delegation stops working for all non-SuperAdmin staff. Where 'medium' must be retained, restrict editconfig group membership to staff who already effectively hold full administrative trust, since any holder of that right can persist script to every public page, and audit the stored layout.customCss value for stray HTML tags (a value beginning with </style> is the signature of this payload) and clear it through the same configuration endpoint. The advisory additionally recommends moving the CSP off script-src 'unsafe-inline' to per-request nonces so that any similar sink elsewhere in the template set cannot execute inline script; that is hardening, not a substitute for patching, and it requires reworking templates that still rely on inline scripts and style attributes.

Affected VersionsENISA

phpMyFAQ 0 <4.1.12

Affected Packages

euvd phpmyfaq fix: 4.1.12

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

phpMyFAQ builds its public pages with Twig, and the default template phpmyfaq/assets/templates/default/index.twig renders the administrator-configurable stylesheet value inside a <style media="screen"> block using the expression {{ customCss | raw }} - the | raw filter disables Twig's auto-escaping, so the stored configuration value reaches the HTML verbatim. A value such as </style><script>payload</script><style> closes the style element and opens a valid script element, which is CWE-79 (improper neutralization of input during web page generation) in its stored/persistent form. The production-default Content-Security-Policy set in phpmyfaq/src/phpMyFAQ/EventListener/SecurityHeadersListener.php keeps script-src 'self' 'unsafe-inline', explicitly because templates still carry inline scripts and style attributes, so no browser-side control blocks the injected inline script. On the input side, the configuration API is protected by session authentication and a per-endpoint pmf-csrf-token cookie, and by an authorization check on the editconfig permission; the defect is that once those gates pass, the field value is neither tag-stripped nor CSS-allowlisted at write time nor at render time. The advisory's recommended fix is a render-time tag strip (a Twig filter passing the value through strip_tags() or a CSS-specific allowlist) and/or sanitization at the API write layer, since Twig's standard | e escaping would corrupt legitimate CSS containing angle brackets; replacing 'unsafe-inline' with per-request nonces is described as separate hardening that would limit the blast radius of similar sinks elsewhere. Our assessment carries CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:L/A:N, reflecting network reachability but high attack complexity and high privilege prerequisites, changed scope, high confidentiality impact and low integrity impact - a more constrained picture than the vendor's CVSS 4.0 base score of 8.7.

Know when Phpmyfaq gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 8.7 HIGH
CVSS:4.0/AV:N/AC:H/AT:P/PR:H/UI:N/VC:H/VI:H/VA:N/SC:H/SI:H/SA:N
vuln.today AI 6.6 MEDIUM

Non-default permLevel=medium is required (AC:H) plus a delegated CONFIGURATION_EDIT admin role (PR:H); injected script runs in visitors' browsers (S:C), enabling session hijacking (C:H) with limited in-browser integrity impact (I:L).

3.1 AV:N/AC:H/PR:H/UI:N/S:C/C:H/I:L/A:N
4.0 AV:N/AC:H/AT:P/PR:H/UI:N/VC:H/VI:L/VA:N/SC:H/SI:L/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Network
Attack Complexity
High
Attack Requirements
Present
Privileges Required
High
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
None
Subsequent system: Confidentiality
High
Subsequent system: Integrity
High
Subsequent system: Availability
None

Lifecycle Timeline

2
Patch available
Dec 01, 2026 - 16:02 EUVD
CVE Published
Dec 01, 2026 - 14:29 cve.org
HIGH 8.7

DescriptionCVE.org

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.

Technical POC Analysis

CWE-79 stored cross-site scripting.

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

A stored cross-site scripting vulnerability in phpMyFAQ (before 4.1.12) allows a delegated administrator with only configuration edit rights to inject malicious HTML into the custom CSS setting, which then executes in the browsers of all site visitors, including SuperAdmins. This poses a risk of session hijacking or credential theft for privileged users, potentially leading to broader compromise of the FAQ platform and any integrated systems.

Business Impact: Medium
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.5%
Top 56% exploitable
Prevalence
Low
niche open-source FAQ application, modest self-hosted footprint
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.5%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
Medium

Priority Score

44
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.

CVE-2025-59943 CRITICAL POC
9.8 Oct 03

Duplicate-email registration handling in phpMyFAQ 4.0.7 through 4.0.13 (and 4.0-nightly-2025-10-03 and earlier) lets una

CVE-2023-5865 CRITICAL POC
9.8 Oct 31

Insufficient Session Expiration in GitHub repository thorsten/phpmyfaq prior to 3.2.2. Rated critical severity (CVSS 9.8

CVE-2023-1886 CRITICAL POC
9.8 Apr 05

Authentication Bypass by Capture-replay in GitHub repository thorsten/phpmyfaq prior to 3.1.12. Rated critical severity

CVE-2023-1753 CRITICAL POC
9.8 Mar 31

Weak Password Requirements in GitHub repository thorsten/phpmyfaq prior to 3.1.12. Rated critical severity (CVSS 9.8), t

CVE-2022-3754 CRITICAL POC
9.8 Oct 29

Weak Password Requirements in GitHub repository thorsten/phpmyfaq prior to 3.1.8. Rated critical severity (CVSS 9.8), th

CVE-2026-46364 CRITICAL POC
9.3 May 15

Unauthenticated SQL injection in phpMyFAQ before 4.1.2 allows remote attackers to extract credentials, admin tokens, and

CVE-2017-15730 HIGH POC
8.8 Oct 22

In phpMyFAQ before 2.9.9, there is Cross-Site Request Forgery (CSRF) in admin/stat.ratings.php. Rated high severity (CVS

CVE-2017-15808 HIGH POC
8.8 Oct 23

In phpMyFaq before 2.9.9, there is CSRF in admin/ajax.config.php. Rated high severity (CVSS 8.8), this vulnerability is

CVE-2017-15735 HIGH POC
8.8 Oct 22

In phpMyFAQ before 2.9.9, there is Cross-Site Request Forgery (CSRF) for modifying a glossary. Rated high severity (CVSS

CVE-2017-15734 HIGH POC
8.8 Oct 22

In phpMyFAQ before 2.9.9, there is Cross-Site Request Forgery (CSRF) in admin/stat.main.php. Rated high severity (CVSS 8

CVE-2024-28107 HIGH POC
8.8 Mar 25

phpMyFAQ is an open source FAQ web application for PHP 8.1+ and MySQL, PostgreSQL and other databases. Rated high severi

CVE-2024-27299 HIGH POC
8.8 Mar 25

phpMyFAQ is an open source FAQ web application for PHP 8.1+ and MySQL, PostgreSQL and other databases. Rated high severi

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy