BuzzPHP
LightDarkSystem

phpMyFAQ has SQL Injection in `StopWords::add()` — Unescaped Stop Word Insertion

High severity. Published 24 September 2026. Update phpmyfaq/phpmyfaq to 4.1.6 or later and thorsten/phpmyfaq to 4.1.6 or later: composer update phpmyfaq/phpmyfaq thorsten/phpmyfaq.

Which versions are affected?

PackageAffected versionsFixed in
phpmyfaq/phpmyfaq (opens in a new tab)<= 4.1.54.1.6
thorsten/phpmyfaq (opens in a new tab)<= 4.1.54.1.6

What should you do?

Update every affected package you use to its fixed version, then check that nothing else in your project matches an advisory. To see which version you run, and whether anything is still affected:

composer show phpmyfaq/phpmyfaq
composer audit

Advisory details

SeverityHigh
Published
Updated
CVECVE-2026-56738 (opens in a new tab)
GHSAGHSA-rw77-vq4g-x3hp (opens in a new tab)
WeaknessCWE-89

What the advisory says

Summary

The StopWords::add() method in phpMyFAQ 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.

Source: GHSA-rw77-vq4g-x3hp (opens in a new tab) in the GitHub Advisory Database (CC BY 4.0). Data from GitHub (opens in a new tab) as of .

Other recent advisories for this package

All Composer security advisories