Skip to main content

phpMyFAQ EUVDEUVD-2026-126806

| CVE-2026-130341 MEDIUM
Cross-site Scripting (XSS) (CWE-79)
2026-11-17 VulnCheck GHSA-56cq-9h4v-c7jp
5.1
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Authenticate as low-privilege registered user
  2. Delivery
    Post FAQ comment with https://javascript:443/ href
  3. Exploit
    Sanitizer approves, parseUrl() strips https:// yielding javascript: link
  4. Execution
    Admin views FAQ and clicks attacker-worded link
  5. Persist
    Script runs on shared admin origin
  6. Impact
    Read CSRF tokens and invoke admin APIs

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 main.enableCommentEditor to be set to true (it is opt-in and defaults to false) and comments enabled on at least one FAQ; only FAQ comments are reachable (CommentController rejects type=news). The attacker must be a logged-in frontend user - with the default records.allowCommentsForGuests=true no extra permission is needed, otherwise the COMMENT_ADD permission is required (consistent with PR:L). The payload fires only when a victim clicks the attacker-controlled link (UI/UI:P), and maximum impact requires that victim to be an administrator since frontend and /admin/ share an origin. The existing CSP (script-src 'self' 'unsafe-inline') does not block javascript: navigations, and HttpOnly cookies do not prevent the in-page script. Installations that never enabled the comment editor are not exposed.

Impact

This is a genuine but conditional, medium-severity stored XSS, not a drop-everything emergency. The supplied CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N, base 5.1) is internally consistent with the mechanism: remote and low-complexity to inject, but requiring a low-privilege authenticated account (PR:L) and victim click (UI:P), with limited (not total) confidentiality/integrity impact and a cross-boundary effect on the admin origin (SC:L/SI:L). No KEV status and no EPSS score are present in the input, so there is no signal of active or widespread exploitation; the vuln.today decision label is 'this_month' (prioritize but not act_now/emergency), which matches a low-probability, high-trust-boundary issue. The one escalating factor is impact rather than likelihood: because the frontend and /admin/ share an origin, a logged-in administrator who clicks the attacker-controlled link lets the script read admin CSRF tokens and invoke admin APIs (create users, grant permissions, change config), so a successful hit can escalate toward full application compromise despite the modest base score. The decisive mitigating factor is that the required feature, main.enableCommentEditor, is off by default, so most installations are not exposed. No key signals conflict; the main gap is the absence of EPSS/KEV data, consistent with this being a disclosed-but-not-yet-exploited issue.

Exploit ScenarioDerived

On an installation where an admin has enabled the opt-in comment editor (main.enableCommentEditor=true), a self-registered frontend user posts an FAQ comment containing <a href="https://javascript:443/alert(document.domain)">; the sanitizer approves it as a valid https URL, then Utils::parseUrl() strips the https:// prefix and the Twig |raw print emits a live javascript: link. When an administrator viewing the FAQ clicks the attacker-worded link, script executes on the shared phpMyFAQ/admin origin and can read CSRF tokens and call admin APIs. A working standalone PoC reproducing the sanitizer-plus-parseUrl rewrite is included in the GHSA advisory.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.2% 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 FAQ comment rendering lets any logged-in frontend user plant a link that runs attacker script on the shared frontend/admin origin when a victim clicks it - but only on installations where the opt-in comment editor (main.enableCommentEditor, off by default) has been enabled and comments are allowed on at least one FAQ. The root cause is a transformation applied after sanitization: Utils::parseUrl() strips the https:// prefix from already-sanitized HTML, turning the sanitizer-approved href "https://javascript:443/..." into a live javascript: URL that the template prints with |raw. This is a genuine but conditional, medium-severity issue rather than a drop-everything emergency: the victim must click the attacker-controlled link, and meaningful impact (reading admin pages, harvesting CSRF tokens, calling admin APIs) requires that victim to be an administrator, since the frontend and /admin/ share an origin. Fixed by the vendor in 4.1.12 and 4.2.0-RC.2; a public PoC reference exists but it is not verified as working exploit code, and there is no confirmed active exploitation.

RemediationAI

Upgrade to phpMyFAQ 4.1.12 or 4.2.0-RC.2, the vendor-released fixed versions published at https://github.com/thorsten/phpMyFAQ/releases/tag/4.1.12 and https://github.com/thorsten/phpMyFAQ/releases/tag/4.2.0-RC.2, which include commit b78abdf889d18ebc1bc507fe1f5cbd9d7db8b143; that commit reworks Utils::parseUrl() to linkify only text nodes, leave existing markup and href attributes untouched, and preserve absolute schemes, with regression tests asserting that href="javascript:" never appears in the output. Details are in the advisory at https://github.com/thorsten/phpMyFAQ/security/advisories/GHSA-37pw-f446-wpf2 and the related VulnCheck note at https://www.vulncheck.com/advisories/phpmyfaq-before-4.1.12-and-4.2.0-alpha-before-4.2.0-rc.2-stored-xss-via-utils-parseurl. For installations that cannot patch immediately, the vendor-documented precondition is configuration-side: the exploitable path only exists when main.enableCommentEditor is true (it defaults to false), so leaving it disabled - or turning it off - removes the vector, at the cost of losing the WYSIWYG comment editor and forcing comments back to plain text; the trade-off is that the feature is a usability loss rather than a functional or availability impact. The advisory notes that the alternative of linkifying before sanitization also works, but that requires the code change and is not a runtime toggle. Because the frontend and /admin/ share an origin, treat any administrator who clicked a comment link while the editor was enabled as potentially compromised and rotate sessions; the existing CSP (script-src 'self' 'unsafe-inline') does not block javascript: navigations and should not be relied on as a mitigation.

Affected VersionsENISA

phpMyFAQ 4.2.0-alpha <4.2.0-RC.2
phpMyFAQ 0 <4.1.12

Affected Packages

euvd phpmyfaq fix: 4.1.12, 4.2.0-RC.2

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 renders FAQ comments that logged-in users submit through a Symfony HtmlSanitizer pipeline when the comment editor is enabled (Filter::removeAttributes() with allowSafeElements() and allowRelativeLinks()), which correctly keeps http/https anchors and drops direct javascript: schemes. The flaw sits in the subsequent, legacy linkification step: Utils::parseUrl() begins with a global str_replace over the entire HTML string removing every "http://" and "https://" substring, including inside attribute values, and only afterwards runs its URL-matching regex with htmlspecialchars(). Because the sanitizer accepts "https://javascript:443/alert(document.domain)" as a well-formed https URL whose host is the literal string "javascript" and whose port is 443, the rewrite produces href="javascript:443/alert(...)", which the browser evaluates as a javascript: navigation (the leading 443/ is parsed as a label followed by a division expression). The template emits the comment with |raw, and the site's CSP (script-src 'self' 'unsafe-inline') does not block javascript: navigation, nor do HttpOnly cookies prevent in-page script from acting as the victim. The class is CWE-79 (improper neutralization during page generation), with the related CWE-116 problem of output being altered after sanitization; the same str_replace also silently breaks every legitimate absolute link, rendering it as a relative path. The vendor fix (commit b78abdf889d18ebc1bc507fe1f5cbd9d7db8b143) rewrites parseUrl() to split on tags, linkify only text nodes outside <a> elements, and never modify existing attribute values. Note that only FAQ comments are reachable via this path - CommentController rejects type=news - and the advisory's technical analysis states the exploitable comment-editor code path exists only on the 4.2 line (4.2.0-alpha through 4.2.0-RC.2), reporting 4.1.x as unaffected, while the CVE description and package range list 4.1.x before 4.1.12 as vulnerable; both 4.1.12 and 4.2.0-RC.2 are nevertheless published as fixed releases.

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

Remote, low-complexity injection by an authenticated low-privilege user (PR:L) that requires a victim click (UI:R); the payload executes in the separate admin security context, so S:C with limited C/I and no availability impact.

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 before 4.1.12 and 4.2.0-alpha before 4.2.0-RC.2 contains a stored cross-site scripting vulnerability that allows registered users to inject javascript: links via FAQ comments. When the comment editor is enabled, Utils::parseUrl() strips https:// from sanitized hrefs, turning an allowed https://javascript:443/ link into executable script that runs on the shared admin origin when clicked.

Threat Intelligence Overview

EPSS Score
0.2%
Top 93% exploitable
Prevalence
Low
niche open-source PHP FAQ application, modest and non-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.2%
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· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

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