Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate with FAQ editor account
-
DeliveryCraft FAQ content embedding JavaScript payload
-
ExploitSubmit edited FAQ via web interface
-
ExecutionServer stores raw script after html_entity_decode() strips encoding
-
PersistVictim visits FAQ page
-
ImpactBrowser executes attacker's stored JavaScript
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 an attacker to hold a phpMyFAQ account with FAQ editing privileges (PR:L). Anonymous or read-only users cannot trigger the vulnerability. Once a malicious payload is stored, all subsequent visitors to the affected FAQ page are impacted without any further action by the attacker (passive UI:P). The decode-after-sanitize flaw exists unconditionally in the convertOldInternalLinks() code path - no special server configuration or non-default feature flag is required beyond having FAQ content processed by that function. Exploitation is limited to phpMyFAQ versions before 4.1.8. |
| Impact | The CVSS 4.0 base score of 5.1 (Medium) reflects the authentication gate (PR:L - FAQ editing privileges required) and passive victim interaction (UI:P - viewing the page), which meaningfully reduce exploitability compared to unauthenticated or zero-interaction XSS. However, because the payload is stored server-side, a single successful injection reaches every subsequent visitor, amplifying real-world impact beyond what the medium score suggests. The scope-change metrics (SC:L/SI:L) confirm cross-user impact. No KEV listing exists and no public POC has been identified, so opportunistic mass exploitation is not currently indicated. Actual risk is highest in deployments where FAQ editing rights are broadly granted to untrusted or lightly-vetted users (e.g., community knowledge bases). In tightly controlled internal deployments with few trusted editors, risk is substantially lower. |
| Exploit ScenarioDerived | An attacker with a phpMyFAQ editor account crafts a FAQ answer embedding a JavaScript payload - for example, a session-hijacking script. When the server processes the saved content via convertOldInternalLinks(), html_entity_decode() reverses the entity encoding and stores the raw script tag. Any user who subsequently views that FAQ page receives the script in their browser and executes it, potentially exposing their session cookie or triggering further actions under their identity. No public POC has been identified, but the vulnerability is straightforward to reproduce given knowledge of the affected function. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 04, 2026
Stored cross-site scripting in phpMyFAQ before 4.1.8 allows authenticated FAQ editors to plant persistent JavaScript payloads that execute in every visitor's browser. The root cause is FaqHelper::convertOldInternalLinks() calling html_entity_decode() on content that was previously sanitized via entity encoding - effectively undoing the protection and re-introducing executable HTML. The impact extends beyond the attacker's own session to all users who subsequently view the poisoned FAQ pages, confirmed by the scope-change metrics in the CVSS 4.0 vector. No public exploit or KEV listing exists at time of analysis.
RemediationAI
Upgrade phpMyFAQ to version 4.1.8 or later, which resolves the decode-after-sanitize flaw in FaqHelper::convertOldInternalLinks(). The vendor security advisory is available at https://github.com/thorsten/phpMyFAQ/security/advisories/GHSA-x6qj-5jhf-xgpm. If immediate patching is not possible, the most effective compensating control is to restrict FAQ editing privileges strictly to trusted administrative accounts, preventing untrusted users from reaching the injection point. Additionally, deploying a Content Security Policy (CSP) header that disallows inline scripts can substantially reduce the impact of any stored XSS payloads that reach the browser, though this may require testing for compatibility with phpMyFAQ's own JavaScript features.
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 is an open-source PHP FAQ management system maintained by Thorsten Rinne (CPE: cpe:2.3:a:thorsten:phpmyfaq). The vulnerability is rooted in CWE-79 (Improper Neutralization of Input During Web Page Generation). The specific flaw is a decode-after-sanitize anti-pattern: the sanitization pipeline encodes dangerous characters (e.g., '<' → '<'), but the subsequent call to PHP's html_entity_decode() in FaqHelper::convertOldInternalLinks() reverts those encodings before the content is rendered, allowing injected HTML and script tags to survive to the browser. This class of bug is particularly subtle because the sanitizer itself functions correctly - it is the post-processing step that reintroduces the attack surface.
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:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N
Network-accessible app, low-privilege editor account required (PR:L), victim must view the page (UI:R), scope change to other users' browsers (S:C); no availability impact.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
Lifecycle Timeline
1DescriptionCVE.org
phpMyFAQ versions before 4.1.8 contain a stored cross-site scripting vulnerability in FaqHelper::convertOldInternalLinks() that calls html_entity_decode() on sanitized FAQ content, reversing entity-encoding protection. Authenticated users with FAQ editing privileges can inject JavaScript payloads that execute in the browsers of all users viewing the affected FAQ pages.
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-71016
GHSA-2xm9-x25x-7x5q
NVD
CVE.org
EPSS
Exploit-DB