Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. phpmyfaq/phpmyfaq
  4. ›
  5. CVE-2026-56736

CVE-2026-56736: phpMyFAQ has Stored XSS in Admin FAQ Editor via HTML Entity Bypass in Frontend FAQ Submission

September 24, 2026

A stored cross-site scripting (XSS) vulnerability in phpMyFAQ 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.

References

  • github.com/advisories/GHSA-pgwp-vc7q-cvj3
  • github.com/thorsten/phpMyFAQ/commit/24b68068747ad632398e3b3bab2989e76e43ef82
  • github.com/thorsten/phpMyFAQ/releases/tag/4.2.0-alpha
  • github.com/thorsten/phpMyFAQ/security/advisories/GHSA-pgwp-vc7q-cvj3
  • nvd.nist.gov/vuln/detail/CVE-2026-56736

Code Behaviors & Features

Detect and mitigate CVE-2026-56736 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Dependency Scanning using SBOM also detects vulnerabilities from proprietary advisories that this site does not include. Learn more about Dependency Scanning using SBOM →

Affected versions

All versions before 4.2.0-alpha

Fixed versions

  • 4.2.0-alpha

Solution

Upgrade to version 4.2.0-alpha or above.

Impact 8.2 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

packagist/phpmyfaq/phpmyfaq/CVE-2026-56736.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sun, 08 Nov 2026 00:16:13 +0000.