CVE-2025-68951 phpMyFAQ has stored XSS in admin "List of users" via display_name HTML entity decoding (html_entity_decode) + Twig |raw

Medium 5.4 Published Updated

An attacker can execute arbitrary JavaScript in an administrator's browser by registering a user with a malicious display name, potentially leading to account takeover.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2025-68951?

CVE-2025-68951 is a medium-severity cross-site scripting vulnerability in Phpmyfaq Phpmyfaq, published on 29 Dec 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

phpMyFAQ is an open source FAQ web application. Versions 4.0.14 and 4.0.15 have a stored cross-site scripting (XSS) vulnerability that allows an attacker to execute arbitrary JavaScript in an administrator’s browser by registering a user whose display name contains HTML entities. When an administrator views the admin user list, the payload is decoded server-side and rendered without escaping, resulting in script execution in the admin context. Version 4.0.16 contains a patch for the issue.

Weakness: CWE-79

Which versions are affected by CVE-2025-68951?

2 open source packages ship an affected version, including thorsten/phpmyfaq. It affects 1 product.

PackageAffectedFixed in
thorsten/phpmyfaq PackagistFrom 4.0.144.0.16
thorsten/phpmyfaq PackagistFrom 4.0.144.0.16

Products include Phpmyfaq Phpmyfaq.

How do I fix CVE-2025-68951?

Upgrade thorsten/phpmyfaq to 4.0.16 or later.

Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.

Is CVE-2025-68951 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-68951 exists.

All Phpmyfaq Phpmyfaq vulnerabilities

Sources

Also known as GHSA-jv8r-hv7q-p6vc.

Is CVE-2025-68951 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free