Description
phpMyFAQ is an open source FAQ web application. A stored cross-site scripting (XSS) vulnerability in versions prior to 4.2.0-alpha allows any unauthenticated user (or low-privileged registered user) to inject arbitrary JavaScript that executes in an administrator's browser when they review or edit a user-submitted FAQ entry. This leads to admin account takeover via session theft. The vulnerability exists because `html_entity_decode()` converts HTML entities into executable HTML after `strip_tags()` has already passed them through, and the admin template renders the content with Twig's `|raw` filter without any output sanitization. Version 4.2.0-alpha fixes the issue.
Published: 2026-09-24
Score: 8.2 High
EPSS: < 1% Very Low
KEV: No
Impact: Stored XSS enabling session theft and admin account takeover
Action: Immediate Patch
AI Analysis

Impact

A stored cross‑site scripting vulnerability allows any unauthenticated or low‑privileged registered user to submit FAQ content containing HTML entities that are later interpreted as executable JavaScript. The application strips tags, then decodes entities, and finally renders the stored content with Twig's raw filter, enabling the injected script to run in an administrator's browser. This can lead to session hijacking, credential theft, and full takeover of the admin account. The flaw is a classic input‑validation weakness (CWE‑79).

Affected Systems

The open‑source phpMyFAQ application from thorsten is affected. All releases older than version 4.2.0‑alpha contain the vulnerability, as they process and store FAQ content without proper sanitization before rendering it in the admin interface.

Risk and Exploitability

The vulnerability receives a CVSS score of 8.2, indicating high severity. The EPSS score is less than 1%, suggesting a low exploitation probability, though the lack of authentication on the submission endpoint means an attacker can easily trigger the flaw. It is not listed in the CISA KEV catalog, so no current evidence of exploitation has been reported.

Generated by OpenCVE AI on September 26, 2026 at 02:47 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade phpMyFAQ to version 4.2.0‑alpha or newer, which removes the unsafe entity decode and raw output.
  • Restrict FAQ submissions to authenticated users and apply strong input sanitization before storing, such as escaping or stripping disallowed tags.
  • Revise the Twig template to avoid using the raw filter on user‑supplied FAQ content, or enforce a content‑security‑policy that mitigates XSS.

Generated by OpenCVE AI on September 26, 2026 at 02:47 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-pgwp-vc7q-cvj3 phpMyFAQ has Stored XSS in Admin FAQ Editor via HTML Entity Bypass in Frontend FAQ Submission
History

Fri, 25 Sep 2026 02:00:00 +0000

Type Values Removed Values Added
First Time appeared Thorsten
Thorsten phpmyfaq
Vendors & Products Thorsten
Thorsten phpmyfaq

Thu, 24 Sep 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Thu, 24 Sep 2026 14:45:00 +0000

Type Values Removed Values Added
Description phpMyFAQ is an open source FAQ web application. A stored cross-site scripting (XSS) vulnerability in versions prior to 4.2.0-alpha allows any unauthenticated user (or low-privileged registered user) to inject arbitrary JavaScript that executes in an administrator's browser when they review or edit a user-submitted FAQ entry. This leads to admin account takeover via session theft. The vulnerability exists because `html_entity_decode()` converts HTML entities into executable HTML after `strip_tags()` has already passed them through, and the admin template renders the content with Twig's `|raw` filter without any output sanitization. Version 4.2.0-alpha fixes the issue.
Title phpMyFAQ has Stored XSS in Admin FAQ Editor via HTML Entity Bypass in Frontend FAQ Submission
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 8.2, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N'}


Subscriptions

Thorsten Phpmyfaq
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-09-24T14:52:17.024Z

Reserved: 2026-06-22T19:17:28.959Z

Link: CVE-2026-56736

cve-icon Vulnrichment

Updated: 2026-09-24T14:52:13.519Z

cve-icon NVD

Status : Deferred

Published: 2026-09-24T15:17:24.100

Modified: 2026-09-24T15:17:24.240

Link: CVE-2026-56736

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-26T03:00:03Z

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')