Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconObtain delegated CONFIGURATION_EDIT admin account
-
DeliveryAuthenticate and prime CSRF token
-
ExploitPOST crafted CSS payload closing the style block
-
InstallphpMyFAQ stores value unsanitized in layout.customCss
-
C2Payload rendered via raw filter on every public page
-
ExecuteScript executes in each visitor's browser
-
ImpactHijack 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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).
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
2DescriptionCVE.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
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.
Apply vendor patch.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Cross-Site Scripting occurs when an application accepts untrusted data and sends it to a web browser without proper validation or encoding.
Duplicate-email registration handling in phpMyFAQ 4.0.7 through 4.0.13 (and 4.0-nightly-2025-10-03 and earlier) lets una
Insufficient Session Expiration in GitHub repository thorsten/phpmyfaq prior to 3.2.2. Rated critical severity (CVSS 9.8
Authentication Bypass by Capture-replay in GitHub repository thorsten/phpmyfaq prior to 3.1.12. Rated critical severity
Weak Password Requirements in GitHub repository thorsten/phpmyfaq prior to 3.1.12. Rated critical severity (CVSS 9.8), t
Weak Password Requirements in GitHub repository thorsten/phpmyfaq prior to 3.1.8. Rated critical severity (CVSS 9.8), th
Unauthenticated SQL injection in phpMyFAQ before 4.1.2 allows remote attackers to extract credentials, admin tokens, and
In phpMyFAQ before 2.9.9, there is Cross-Site Request Forgery (CSRF) in admin/stat.ratings.php. Rated high severity (CVS
In phpMyFaq before 2.9.9, there is CSRF in admin/ajax.config.php. Rated high severity (CVSS 8.8), this vulnerability is
In phpMyFAQ before 2.9.9, there is Cross-Site Request Forgery (CSRF) for modifying a glossary. Rated high severity (CVSS
In phpMyFAQ before 2.9.9, there is Cross-Site Request Forgery (CSRF) in admin/stat.main.php. Rated high severity (CVSS 8
phpMyFAQ is an open source FAQ web application for PHP 8.1+ and MySQL, PostgreSQL and other databases. Rated high severi
phpMyFAQ is an open source FAQ web application for PHP 8.1+ and MySQL, PostgreSQL and other databases. Rated high severi
EUVD-2026-140255
GHSA-8jrj-957q-q228
NVD
CVE.org
EPSS
Exploit-DB