---
id: CVE-2026-56736
title: phpMyFAQ is an open source FAQ web application
summary: >-
  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 ex…
severity: high
cvss: 8.2
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:L/A:N'
cwe:
  - CWE-79
vendor: thorsten
product: phpMyFAQ
affected:
  - phpMyFAQ < 4.2.0-alpha
published: '2026-09-24'
updated: '2026-09-24'
sourceUpdated: '2026-09-24T15:17:24.240'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-56736'
references:
  - url: >-
      https://github.com/thorsten/phpMyFAQ/security/advisories/GHSA-pgwp-vc7q-cvj3
    label: security-advisories@github.com
  - url: >-
      https://github.com/thorsten/phpMyFAQ/security/advisories/GHSA-pgwp-vc7q-cvj3
    label: 134c704f-9b21-4f2e-91b3-4a467353bcc0
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-56736'
  - url: >-
      https://github.com/thorsten/phpMyFAQ/commit/24b68068747ad632398e3b3bab2989e76e43ef82
  - url: 'https://github.com/thorsten/phpMyFAQ/releases/tag/4.2.0-alpha'
  - url: 'https://github.com/advisories/GHSA-pgwp-vc7q-cvj3'
tags:
  - nvd
  - cve.org
  - exploit-available
  - ghsa
  - composer
exploitAvailable: true
ssvc:
  exploitation: poc
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-09-24T14:51:56.083267Z'
ingestedAt: '2026-09-24T15:45:56.641Z'
aliases:
  - GHSA-pgwp-vc7q-cvj3
ecosystem: composer
patched:
  - thorsten/phpmyfaq 4.2.0-alpha
  - phpmyfaq/phpmyfaq 4.2.0-alpha
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Package advisory (CVE-2026-56736)

Affected packages:

- `thorsten/phpmyfaq < 4.2.0-alpha`
- `phpmyfaq/phpmyfaq < 4.2.0-alpha`

Patched in:

- `thorsten/phpmyfaq 4.2.0-alpha`
- `phpmyfaq/phpmyfaq 4.2.0-alpha`

Source: https://github.com/advisories/GHSA-pgwp-vc7q-cvj3
