Skip to main content

phpMyFAQ EUVDEUVD-2026-30578

| CVE-2026-46367 HIGH
Cross-site Scripting (XSS) (CWE-79)
8.3
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Recon
    Register low-privilege account
  2. Delivery
    Identify FAQ permitting comments
  3. Exploit
    Submit URL with stray double-quote payload
  4. Install
    Stored XSS persists in comment
  5. C2
    Admin views FAQ or comments panel
  6. Execute
    onmouseover exfiltrates session cookie
  7. Impact
    Attacker replays cookie for full takeover

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 (1) phpMyFAQ deployment at version 4.1.1 with the non-default setting main.enableCommentEditor = true in the admin Configuration panel, (2) the attacker holding any registered user account on the target (CVSS PR:L), (3) at least one FAQ entry configured to accept comments, and (4) a victim - ideally an admin - passively viewing the FAQ page or the /admin/content/comments panel and hovering the malicious link to fire the onmouseover handler (CVSS UI:P). The payload URL must use a www. prefix because Utils::parseUrl() strips https:// and only re-adds it for www-prefixed URLs, which is what triggers the linkification path. Exploitation is limited by the non-default config requirement, the need for a low-privilege account (open registration accelerates this), and the user-interaction requirement; sites that disabled the comment editor or do not permit self-registration are not exposed.

Impact

Signals are mixed: CVSS 4.0 scores 8.3 (High) driven by VC:H and SC:H (subsequent confidential impact - i.e., admin cookie theft crossing a trust boundary), AV:N, AC:L, PR:L, UI:P, while EPSS sits at 0.01% (2nd percentile) and SSVC marks Exploitation=poc, Automatable=no, Technical Impact=partial. The CVSS vector confirms low-privilege authenticated access plus passive user interaction (UI:P - viewing a page) are required, which is consistent with the description. The realistic priority is moderate-to-high for any internet-exposed phpMyFAQ instance that has enabled the comment editor, because account registration is typically open and admin compromise is one click away, but the non-default config requirement (main.enableCommentEditor) and the lack of automation potential keep mass exploitation unlikely - consistent with the very low EPSS. No KEV listing and SSVC=poc mean this is not confirmed actively exploited; treat as a targeted-risk patch rather than an emergency.

Exploit ScenarioDerived

An attacker registers a normal account on a phpMyFAQ 4.1.1 site that has the comment editor enabled, opens any FAQ permitting comments, and submits the comment text 'https://www.evil.com/"onmouseover="alert(document.cookie)' - the trailing quote closes the href attribute and turns onmouseover into a live handler. When an administrator later browses /admin/content/comments or the affected FAQ page and hovers the link, the payload exfiltrates the admin session cookie to the attacker, who replays it for full application takeover. A working PoC is published in the GHSA advisory, making this trivially reproducible.

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

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

Alert me

AnalysisAIv3 – May 28, 2026

Stored cross-site scripting in phpMyFAQ 4.1.1 lets any authenticated user with a registered account persist JavaScript inside FAQ or News comments by submitting a URL containing an unescaped double quote, which Utils::parseUrl() injects unescaped into an href attribute. Payloads execute for every visitor - including admins viewing the comments panel - enabling session cookie theft and full application takeover. Publicly available exploit code exists in the GHSA advisory, though EPSS is only 0.01% and SSVC categorizes exploitation as POC rather than active.

Earlier versions of this analysis (2)
v2 May 28, 2026 - 16:36 cvss changed CVSS 8.3

Stored cross-site scripting in phpMyFAQ 4.1.1 lets any authenticated low-privilege user inject JavaScript through comment URLs that execute when admins or visitors render the affected FAQ, News, or admin comments page. The flaw enables session cookie theft and full administrative takeover, and while publicly available exploit code exists in the GHSA advisory, EPSS scores it at 0.01% and CISA SSVC rates exploitation as 'poc' with partial technical impact - not confirmed actively exploited.

v1 May 15, 2026 - 19:31 CVSS 7.6

Stored cross-site scripting in phpMyFAQ before 4.1.2 enables authenticated users to inject persistent JavaScript payloads through malformed URLs in comments, affecting all visitors including administrators. The vulnerability arises from improper URL parsing in Utils::parseUrl() that allows unescaped quotes to break out of href attributes and inject event handlers. When visitors hover over affected links on FAQ or News pages, the injected code executes, potentially stealing admin session cookies for full application takeover.

RemediationAI

Vendor-released patch: upgrade to phpMyFAQ 4.1.2 via Composer (thorsten/phpmyfaq or phpmyfaq/phpmyfaq), as documented in GHSA-9525-27vj-c8r8 at https://github.com/thorsten/phpMyFAQ/security/advisories/GHSA-9525-27vj-c8r8. If immediate upgrade is not possible, the highest-leverage workaround is to disable the rich comment editor by setting main.enableCommentEditor = false in the admin Configuration panel, which routes comment input back through FILTER_SANITIZE_SPECIAL_CHARS and prevents the double-quote from surviving to the parseUrl() sink - the trade-off is loss of HTML formatting in comments. As compensating controls, disable open user registration and remove existing low-trust accounts to eliminate the authenticated precondition, purge or moderate stored comments before applying the fix to remove any pre-planted payloads, and deploy a strict Content-Security-Policy header (the app currently sets none) such as default-src 'self'; script-src 'self' to neutralize inline event handlers, accepting that any inline scripts the app legitimately uses will need refactoring.

Affected VersionsENISA

phpMyFAQ 4.1.1 <4.1.2
phpMyFAQ 4.1.1 <4.1.2

Affected Packages

composer phpmyfaq fix: 4.1.2
composer phpmyfaq/phpmyfaq fix: 4.1.2
composer thorsten/phpmyfaq fix: 4.1.2

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 3 packages in composer

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

Technical ContextAI · show details

The vulnerable sink is Utils::parseUrl() at phpmyfaq/src/phpMyFAQ/Utils.php line 281, which uses the regex /(https?:\/\/[^\s]+)/i and substitutes matches directly into <a href="$1">$1</a> with no htmlspecialchars() call - a textbook CWE-79 (Improper Neutralization of Input During Web Page Generation) flaw where the character class [^\s]+ greedily consumes the literal double-quote needed to break out of the attribute. The sink is only reachable when main.enableCommentEditor is enabled, because that path routes comments through sanitizeHtmlComment() instead of FILTER_SANITIZE_SPECIAL_CHARS, preserving the quote through storage; rendering then uses {{ comment.comment|raw }} in comment.macros.twig line 40, disabling Twig auto-escaping. The CPE cpe:2.3:a:thorsten:phpmyfaq:*:*:*:*:*:*:*:* covers the affected upstream package, and the absence of any Content-Security-Policy header in the application removes a key mitigating control.

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.3 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:H/VI:L/VA:N/SC:H/SI:L/SA:N

Primary rating from Vendor (VulnCheck) · only source for this CVE.

CVSS VectorVendor: VulnCheck

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

Lifecycle Timeline

4
Analysis Updated
May 28, 2026 - 16:38 vuln.today
v3 - CVSS changed
Analysis Updated
May 28, 2026 - 16:36 vuln.today
v2 - CVSS changed
CVSS changed
May 28, 2026 - 16:22 NVD
7.6 (HIGH) 8.3 (HIGH)
Patch available
May 15, 2026 - 20:02 EUVD

DescriptionCVE.org

phpMyFAQ before 4.1.2 contains a stored cross-site scripting vulnerability in Utils::parseUrl() that allows authenticated users to inject JavaScript via malformed URLs in comments. Attackers can craft URLs with unescaped quotes to inject event handlers, stealing admin session cookies and achieving full application takeover when visitors view affected FAQ pages.

Executive ViewAI

Why It Matters

phpMyFAQ 4.1.1 contains a vulnerability allowing registered users to inject malicious code into comments that executes for all site visitors including administrators. Publicly available exploit code exists. Attackers could steal admin credentials and gain full application control, requiring urgent patching to prevent user data compromise.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.0%
Top 98% exploitable
Threat Intel
2
1 source
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub VulDB

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.0%
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
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

42
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +42
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