# CVE-2024-56199: phpMyFAQ Vulnerable to Stored HTML Injection at FAQ

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.2
- **CVSS:** 5.2 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:U/C:N/I:H/A:L`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: High; User interaction: Required; Scope: Unchanged; Confidentiality impact: None; Integrity impact: High; Availability impact: Low
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.69% (percentile 48, 2026-11-26)
- **CWE:** CWE-79, CWE-80
- **Aliases:** GHSA-ww33-jppq-qfrp
- **Published:** 2025-01-02T17:27:08.690Z
- **Modified:** 2026-06-17T08:11:50.140Z

## Who should check

- Projects that depend on Packagist package phpmyfaq/phpmyfaq (\>= 3.2.10, \<= 4.0.1)
- Projects that depend on Packagist package thorsten/phpmyfaq (\>= 3.2.10, \<= 4.0.1)
- Anyone running thorsten phpMyFAQ \>= 3.2.10, \< 4.0.2

## Description

phpMyFAQ is an open source FAQ web application. Starting no later than version 3.2.10 and prior to version 4.0.2, an attacker can inject malicious HTML content into the FAQ editor at \`http\[:\]//localhost/admin/index\[.\]php?action=editentry\`, resulting in a complete disruption of the FAQ page's user interface. By injecting malformed HTML elements styled to cover the entire screen, an attacker can render the page unusable. This injection manipulates the page structure by introducing overlapping buttons, images, and iframes, breaking the intended layout and functionality. Exploiting this issue can lead to Denial of Service for legitimate users, damage to the user experience, and potential abuse in phishing or defacement attacks. Version 4.0.2 contains a patch for the vulnerability.

## Affected and fixed versions

- Packagist `phpmyfaq/phpmyfaq`: affected \>= 3.2.10, \<= 4.0.1; fixed no fix listed yet (osv)
- Packagist `thorsten/phpmyfaq`: affected \>= 3.2.10, \<= 4.0.1; fixed no fix listed yet (osv)
- thorsten phpMyFAQ: \>= 3.2.10, \< 4.0.2 (cvelist)

## Mitigation

- Upgrade phpMyFAQ to 4.0.2 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-56199. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-56199.md
Affected: phpmyfaq/phpmyfaq >= 3.2.10, <= 4.0.1; thorsten/phpmyfaq >= 3.2.10, <= 4.0.1
Fixed in: thorsten phpMyFAQ 4.0.2

Steps:
1. Search this machine and project for phpmyfaq/phpmyfaq (Packagist), thorsten/phpmyfaq (Packagist), thorsten phpMyFAQ: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-56199 being exploited?

There is no confirmed exploitation: CVE-2024-56199 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.69% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-56199?

Medium: CVSS 5.2 (v3.1, scored by CNA). Remote, login needed. A user has to take an action, such as opening a link, for the attack to work.

### Which versions are affected by CVE-2024-56199?

phpmyfaq/phpmyfaq \>= 3.2.10, \<= 4.0.1; thorsten/phpmyfaq \>= 3.2.10, \<= 4.0.1.

### Is there a fix for CVE-2024-56199?

Yes. Fixed in thorsten phpMyFAQ 4.0.2. Upgrade phpMyFAQ to 4.0.2 or later.

### How do I check if I'm affected by CVE-2024-56199?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://github.com/thorsten/phpMyFAQ/security/advisories/GHSA-ww33-jppq-qfrp>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2024-56199>
- other: <https://github.com/thorsten/phpMyFAQ>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-56199>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-ww33-jppq-qfrp> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2024-56199> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-56199>
