CVE-2026-56736

phpMyFAQ has Stored XSS in Admin FAQ Editor via HTML Entity Bypass in Frontend FAQ Submission

Published Sep 24, 2026 CVSS 3.1 · 8.2 High EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

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
Type Values Removed Values Added
First Time appeared Thorsten
Thorsten phpmyfaq
Vendors & Products Thorsten
Thorsten phpmyfaq
Type Values Removed Values Added
Metrics ssvc

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

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'}

Weaknesses
  • CWE-79

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

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Sep 24, 2026, 2:52 PM
Reserved
Jun 22, 2026, 7:17 PM
Status
Deferred
Published
Sep 24, 2026, 3:17 PM
Modified
Sep 24, 2026, 3:17 PM