Skip to main content

phpMyFAQ CVE-2026-130592

| EUVDEUVD-2026-127012 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-11-17 VulnCheck GHSA-rmqm-gwp7-595q
5.1
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Obtain FAQ editor account
  2. Delivery
    Save question with quote+event-handler payload
  3. Exploit
    Drive record into Top-Ten via views
  4. Execution
    Title rendered with Twig raw filter in title attribute
  5. Persist
    Script runs for every start-page visitor
  6. Impact
    Steal sessions / redirect / deface

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 authenticated account with FAQ edit (editor) permission (PR:L) to store the malicious title, and the target instance must use the default template whose startpage.twig (lines 73-76) renders the top-ten FAQ title through Twig's raw filter inside a double-quoted title="" attribute. The payload must be pure attribute injection using a quote and event handler (e.g. x" onmouseover="alert(document.cookie)) with no angle brackets, so it survives FILTER_SANITIZE_SPECIAL_CHARS and the Symfony HtmlSanitizer (which the write path defeats by html_entity_decode-ing quotes before storage). The record must also reach the Top-Ten list via views/votes, and a visitor must load the public start page (UI:P) for the script to fire. Limiting factors: editor-level authentication is needed, exploitation targets only sites on the vulnerable default template, and the injected title is subject to makeShorterText 8-word truncation, which constrains payload length.

Impact

This is a genuine but moderate-priority stored XSS, not a drop-everything emergency. The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N) scores 5.1 (Medium): network-reachable and low-complexity, but it requires PR:L - an authenticated account holding FAQ edit (editor) permission - to plant the payload, and passive user interaction (UI:P) in that a victim must visit the public start page. The asymmetry that raises real-world concern is the trust gap: a lower-trust editor can inject script that executes in the browser of every unauthenticated start-page visitor, with a scope change (SC:L/SI:L) reflecting cross-context impact. No EPSS score, KEV listing, or active-exploitation evidence was provided, so there is no signal of in-the-wild use; the vuln.today decision label is 'this_month' rather than act_now/emergency, consistent with a patch-in-the-normal-cycle priority. The root cause is well understood and vendor-confirmed via the GHSA advisory and commit diff, and the fix is available (4.1.12). Net: a real, confirmed vulnerability worth remediating promptly, but the editor-privilege prerequisite and absence of exploitation telemetry keep it below critical urgency. No key signals conflict; the main missing data is EPSS and any exploitation observation.

Exploit ScenarioDerived

An authenticated user holding FAQ edit (editor) permission saves a FAQ question whose first words are an attribute-breakout payload such as x" onmouseover="alert(document.cookie), then drives the record into the Top-Ten list via a few views. The default start-page template renders that title into a double-quoted title="" attribute with Twig's raw filter, so the stored quote and event handler become live HTML, executing script in the browser of every subsequent (including unauthenticated) start-page visitor. The GHSA advisory documents step-by-step reproduction, though no packaged/verified exploit code is indicated in the provided data.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Nov 17, 2026

Stored cross-site scripting in phpMyFAQ's default start page lets an authenticated user holding FAQ edit (editor) permission persist a malicious FAQ title that executes in the browser of every visitor who loads the public landing page. The flaw is an attribute-context escaping failure: startpage.twig renders the top-ten FAQ titles with Twig's raw filter inside a double-quoted title="" attribute, while sibling lists on the same page escape correctly, and the write path re-decodes entity-encoded quotes before storage so a payload such as x" onmouseover="alert(document.cookie) survives sanitisation and breaks out of the attribute. Affected builds are 4.0.12 through 4.0.19, 4.1.x before 4.1.12 and 4.2.0 pre-releases before 4.2.0-RC.1; fixes are released in 4.1.12 and 4.2.0-RC.1, exploitation requires the injected record to reach the top-ten list and a victim to visit the start page, and a public PoC reference exists in the vendor advisory but is not verified as working exploit code.

RemediationAI

Vendor-released patch: 4.1.12 (and 4.2.0-RC.1 for the 4.2.0 pre-release line). Upgrading to those builds is the complete fix; the evidence does not present a partial mitigation that fully removes the defect. Operators who cannot upgrade immediately can apply the upstream commit f2cd84cac27a6a361fc4334610ee77fef44cf91d, which replaces title="{{ topten.title | raw }}" with title="{{ topten.preview }}" in assets/templates/default/startpage.twig and adds a regression test (tests/phpMyFAQ/Twig/StartpageTemplateTest.php) asserting that title="x" onmouseover="alert(1)" is rendered escaped; backporting that single template line is low-risk but leaves the double-decoding write path in FaqController.php untouched and must be re-verified after any theme update. Because exploitation requires an FAQ edit permission and the vulnerable default-template code path, instances running a custom theme that does not render the top-ten title through the raw filter in an attribute, or that restrict FAQ edit rights to trusted staff, have narrower exposure - but these are scoping factors, not substitutes for the vendor fix. Details and the fixed release are at https://github.com/thorsten/phpMyFAQ/security/advisories/GHSA-wxmp-76j5-f3c9 and https://github.com/thorsten/phpMyFAQ/releases/tag/4.1.12.

Affected VersionsENISA

phpMyFAQ 4.2.0-alpha <4.2.0-RC.1
phpMyFAQ 4.0.12 ≤4.0.19
phpMyFAQ 4.1.0 <4.1.12

Affected Packages

euvd phpmyfaq fix: 4.1.12, 4.2.0-RC.1

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

CWE-79 applies here in its attribute-injection form. phpMyFAQ's default theme writes the top-ten (most viewed/voted) record titles into the anchor at assets/templates/default/startpage.twig lines 73-76 as title="{{ topten.title | raw }}" - the raw filter disables Twig's contextual auto-escaping, and the surrounding double-quoted attribute means a literal quote character terminates the attribute early. Every other list on the page, including the sticky-records block roughly twenty lines above, escapes the same data correctly, so the defect is an inconsistency in one sink rather than a systemic escaping failure. The write path compounds it: Administration/Api/FaqController.php runs the submitted question through FILTER_SANITIZE_SPECIAL_CHARS (htmlspecialchars with ENT_QUOTES plus tag stripping, producing &quot;) and then immediately calls html_entity_decode with ENT_QUOTES | ENT_HTML5, restoring literal quote characters before the value is stored; Filter::removeAttributes (Symfony HtmlSanitizer with a safe-elements allowlist) then leaves the tag-free string, quotes intact. Statistics.php pulls the stored question via Utils::makeShorterText with 8-word truncation and performs no escaping. The result is a payload that requires no angle brackets, so it bypasses both the tag-stripping in filterSanitizeString and the HtmlSanitizer, and executes as an event handler in the anchor's attribute set for unauthenticated visitors. The supplied evidence does not describe any additional trigger preconditions beyond these code paths.

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 5.1 MEDIUM
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
vuln.today AI 5.4 MEDIUM

Editor permission is required to store the payload (PR:L), a victim must load the start page (UI:R), and script executing in the visitor's browser crosses security authority (S:C) with limited C/I impact and no availability effect.

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

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

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

DescriptionCVE.org

phpMyFAQ 4.0.12 through 4.0.19, 4.1.x before 4.1.12, and 4.2.0 pre-releases before 4.2.0-RC.1 contain a stored cross-site scripting vulnerability in startpage.twig, where top-ten FAQ titles are rendered with Twig's raw filter. Authenticated users with FAQ edit permission can save a question containing a double quote and event handler, which runs script for every start page visitor.

Threat Intelligence Overview

EPSS Score
0.3%
Top 75% exploitable
Prevalence
Low
niche open-source FAQ web application, limited enterprise deployment footprint
Social Media
1
Sightings
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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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
Poc
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

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