Skip to main content

phpMyFAQ EUVDEUVD-2026-30596

| CVE-2026-46361 HIGH
Cross-site Scripting (XSS) (CWE-79)
2026-05-15 VulnCheck GHSA-478m-mrw4-qf2w
8.2
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Recon
    Obtain FAQ editor account
  2. Delivery
    Submit FAQ entry with HTML-entity-encoded script payload
  3. Exploit
    Payload stored in database past strip_tags
  4. Install
    Victim performs search returning the entry
  5. C2
    html_entity_decode restores tags, raw filter emits HTML
  6. Execute
    JavaScript executes in admin/visitor browser
  7. Impact
    Session token exfiltration or privileged action via CSRF

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

Requires an authenticated account with FAQ editor or contributor privileges (CVSS PR:H) to store the payload, and requires a victim to execute a search whose results include the malicious entry (UI:P - passive user interaction by viewing search results). The malicious content must be HTML-entity-encoded (e.g., &lt;script&gt;) so it survives strip_tags() and is re-materialized by the subsequent html_entity_decode(). Affects default installations of phpMyFAQ <= 4.1.1 with no configuration toggle required - the vulnerable | raw usage in search.twig and the decode-after-strip pattern in SearchController.php are present out-of-the-box. Limiting factors: deployments where the editor role is restricted to fully trusted staff effectively eliminate the attacker pool, and instances with a strict CSP forbidding inline script will block payload execution.

Impact

Signals are conflicting and warrant nuanced prioritization. CVSS 4.0 is 8.2 (High) driven by Network/Low complexity/High confidentiality impact with scope change (SC:H) - reflecting that exploitation pivots from an editor account to all visitors including admins, enabling admin session theft. However, PR:H and UI:P show the attack requires high-privilege editor access to plant the payload and a victim to view a search result. EPSS is extremely low (0.01%, 1st percentile) and the vulnerability is NOT on CISA KEV; SSVC marks Exploitation as 'poc' (not active), Automatable=no, Technical Impact=partial. Net assessment: real but bounded - high impact if an editor account is malicious or compromised, but exploitation is not automatable and there is no evidence of in-the-wild abuse. Prioritize patching on instances with multiple editor-tier contributors or public account registration; lower urgency on tightly-controlled deployments.

Exploit ScenarioDerived

An attacker who has obtained or is granted FAQ editor privileges (e.g., a malicious contributor on a community knowledge base) creates an FAQ entry whose title or body contains an HTML-entity-encoded <script> payload. When any administrator or visitor performs a search that returns that entry, SearchController.php strips tags and then decodes the entities - restoring the script - and search.twig emits it via | raw, executing the JavaScript in the victim's browser and enabling admin session hijack or CSRF-based privilege escalation. A POC is referenced by SSVC and the VulnCheck advisory.

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 before 4.1.2 lets FAQ editors persist HTML-entity-encoded JavaScript that survives sanitization and executes in every visitor's browser, including administrators. The flaw stems from Twig's | raw filter being applied to result.question and result.answerPreview in search.twig, combined with a html_entity_decode(strip_tags()) round-trip in SearchController.php that resurrects encoded tags. Publicly available exploit code exists (POC per SSVC), though EPSS is 0.01% and the issue is not on the CISA KEV list.

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

Stored cross-site scripting in phpMyFAQ versions prior to 4.1.2 allows authenticated FAQ editors to persist JavaScript payloads that execute in every visitor's browser, including administrators, leading to session hijacking and privilege escalation. The flaw stems from search.twig rendering result.question and result.answerPreview with Twig's raw filter while SearchController.php's html_entity_decode(strip_tags()) chain reverses sanitization of HTML-entity-encoded payloads. No public exploit identified at time of analysis, though VulnCheck has published a dedicated advisory and the GHSA notes seven distinct raw-filter sinks in the same template.

v1 May 15, 2026 - 19:37 CVSS 6.9

Stored cross-site scripting in phpMyFAQ 4.1.1 and earlier allows attackers with FAQ editor privileges to inject HTML-entity-encoded JavaScript payloads that execute in all visitors' browsers, including administrators. The vulnerability exploits Twig template raw filters in search.twig combined with html_entity_decode() processing in SearchController.php that restores encoded tags after strip_tags() validation. GitHub security advisory GHSA-pqh6-8fxf-jx22 confirms this is distinct from CVE-2026-46360 (GHSA-cv2g-8cj8-vgc7) affecting faq.twig. No active exploitation reported; EPSS data not available; vendor patch released as version 4.1.2.

RemediationAI

Vendor-released patch: phpMyFAQ 4.1.2 - upgrade immediately via Composer (composer require thorsten/phpmyfaq:^4.1.2 or phpmyfaq/phpmyfaq:^4.1.2) per the GitHub advisory at https://github.com/thorsten/phpMyFAQ/security/advisories/GHSA-pqh6-8fxf-jx22. If patching cannot be performed immediately, restrict the FAQ editor/contributor role to fully trusted users and audit existing FAQ records and custom pages for HTML-entity-encoded payloads (search stored content for patterns like &lt;script, &#60;, onerror=, etc.). As a template-level workaround you can edit phpmyfaq/assets/templates/default/search.twig to remove the | raw filter from result.question and result.answerPreview (side effect: any legitimately HTML-formatted FAQ titles or previews will render as escaped text). A Content-Security-Policy header forbidding inline script (script-src 'self') provides defense-in-depth at the cost of breaking any inline JS the deployment relies on. Disabling the search feature entirely removes the vulnerable code path but eliminates a core user feature.

Affected VersionsENISA

phpMyFAQ 0 <4.1.2
phpMyFAQ 0 <4.1.2

Affected Packages

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

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 3 packages in composer, euvd

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

Technical ContextAI · show details

phpMyFAQ is a PHP-based open-source FAQ management application maintained by Thorsten Rinne (CPE cpe:2.3:a:thorsten:phpmyfaq). The root cause is CWE-79 (Improper Neutralization of Input During Web Page Generation) and is two-fold: the Twig template engine's autoescape is unconditionally disabled by the | raw filter on multiple variables in search.twig, and the upstream sanitization in Search.php/SearchController.php performs html_entity_decode(strip_tags(...)), which strips tags first and then decodes HTML entities - re-materializing tags that an attacker encoded as &lt;script&gt;. This is distinct from the previously patched GHSA-cv2g-8cj8-vgc7 in faq.twig and was not resolved by the 4.1.1 release.

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.2 HIGH
CVSS:4.0/AV:N/AC:L/AT:N/PR:H/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
High
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

5
Analysis Updated
May 28, 2026 - 16:41 vuln.today
v3 - CVSS changed
Analysis Updated
May 28, 2026 - 16:39 vuln.today
v2 - CVSS changed
Severity Changed
May 28, 2026 - 16:22 NVD
MEDIUM HIGH
CVSS changed
May 28, 2026 - 16:22 NVD
6.9 (MEDIUM) 8.2 (HIGH)
Patch available
May 15, 2026 - 20:02 EUVD

DescriptionCVE.org

phpMyFAQ before 4.1.2 contains a stored cross-site scripting vulnerability in search.twig where result.question and result.answerPreview are rendered with the raw filter, disabling autoescape protection. Attackers with FAQ editor privileges can inject HTML-entity-encoded payloads that bypass html_entity_decode(strip_tags()) processing in SearchController.php, executing arbitrary JavaScript in every visitor's browser context including administrators.

Executive ViewAI

Why It Matters

phpMyFAQ versions before 4.1.2 contain a vulnerability that allows FAQ editors to inject malicious code, which executes for all users including system administrators. This creates direct risks for credential theft and system compromise through both insider threats and privilege escalation. Immediate patching to version 4.1.2 is critical, as publicly available exploit code increases exploitation likelihood.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.0%
Top 99% exploitable
Data Quality
7 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment 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

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