CVE-2026-56738

High

Description

phpMyFAQ is an open source FAQ web application. The `StopWords::add()` method inversions prior to 4.1.6 builds a SQL `INSERT` statement using `sprintf()` and inserts the user-supplied stop word value directly into the query string without calling the application's database escaping function on it. A sibling method, `StopWords::update()`, which modifies an existing stop word, correctly escapes the same kind of input. The omission is isolated to the `add()` (insert) code path. An authenticated administrator who can reach the stop-word management feature can submit a crafted value as the "word" parameter that breaks out of the SQL string literal and injects arbitrary SQL, including statements to drop tables, exfiltrate data, or modify other rows in the database. Version 4.1.6 fixes the issue.

SeverityHigh
CVSS8.5
Exploit probability—
ProductPhpmyfaq/phpmyfaq
PublishedSep 24, 2026
First seenSep 24, 2026
Weakness typeCWE-89SQL injection

How to fix

Update
  • phpmyfaq/phpmyfaq4.1.6 or later
  • thorsten/phpmyfaq4.1.6 or later

Affected products

ProductAffected versionsFixed in
phpmyfaq/phpmyfaqPackagistv < 4.1.64.1.6
thorsten/phpmyfaqPackagistv < 4.1.64.1.6

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.

CVE-2026-56738 · Phpmyfaq/phpmyfaq · Dark Radar