CVE-2026-46363

phpMyFAQ - Stored XSS in FAQ Question/Answer via Encode-Decode Bypass

Published May 15, 2026 CVSS 4.0 · 5.1 Medium EPSS < 1% KEV · Not listed
Description
phpMyFAQ before 4.1.2 contains a stored cross-site scripting vulnerability in FAQ creation and update endpoints that bypass sanitization through encode-decode cycles. The vulnerability allows authenticated attackers with FAQ_ADD permission to inject malicious script tags via question or answer parameters, which execute in every visitor's browser when FAQ content is rendered with the raw Twig filter.

Analysis

AI-generated

Technical impact

The flaw is a stored XSS in the FAQ creation and update endpoints that lets an authenticated user with FAQ_ADD permission inject arbitrary JavaScript into question or answer fields. When the FAQ page is rendered with the raw Twig filter, the malicious code executes in every visitor's browser. This issue belongs to CWE‑79.

Affected Systems

The vulnerability affects the community edition of phpMyFAQ versions prior to 4.1.2. Users running phpMyFAQ 4.0, 4.1.1 or earlier are exposed.

Risk and Exploitability

The CVSS score of 5.1 indicates moderate severity. An attacker needs authentication and FAQ_ADD rights to store script tags; every viewer of the affected FAQ will execute the code. The EPSS score of < 1% indicates a very low but non‑zero exploitation probability, and the flaw is not listed in CISA KEV.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade phpMyFAQ to version 4.1.2 or later, where the sanitization routine removes the encode‑decode bypass.
  • Restrict the FAQ_ADD permission to trusted administrators only, removing it from users who do not need to create or edit FAQs.
  • Configure Twig to use safe filters or auto‑escape and avoid the raw filter when rendering FAQ content.

Generated by OpenCVE AI on May 28, 2026 at 17:23 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-h36g-93qx-rxgr phpMyFAQ: Stored XSS in FAQ Question/Answer via Encode-Decode Bypass of removeAttributes() Sanitization
Github GHSA Github GHSA GHSA-f5p7-2c9q-8896 phpMyFAQ has Stored XSS in FAQ Question/Answer via Encode-Decode Bypass of removeAttributes() Sanitization
History
Type Values Removed Values Added
First Time appeared Phpmyfaq
Phpmyfaq phpmyfaq
CPEs cpe:2.3:a:phpmyfaq:phpmyfaq:*:*:*:*:*:*:*:*
Vendors & Products Phpmyfaq
Phpmyfaq phpmyfaq
Metrics cvssV4_0

{'score': 5.1, 'vector': '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'}

Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
First Time appeared Thorsten
Thorsten phpmyfaq
Vendors & Products Thorsten
Thorsten phpmyfaq
Type Values Removed Values Added
Description phpMyFAQ before 4.1.2 contains a stored cross-site scripting vulnerability in FAQ creation and update endpoints that bypass sanitization through encode-decode cycles. The vulnerability allows authenticated attackers with FAQ_ADD permission to inject malicious script tags via question or answer parameters, which execute in every visitor's browser when FAQ content is rendered with the raw Twig filter.
Title phpMyFAQ - Stored XSS in FAQ Question/Answer via Encode-Decode Bypass
Weaknesses CWE-79
References
Metrics cvssV3_1

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

Weaknesses
  • CWE-79

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

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 8, 2026, 2:03 PM
Reserved
May 13, 2026, 7:40 PM
Status
Deferred
Published
May 15, 2026, 7:17 PM
Modified
Oct 26, 2026, 2:10 PM