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?
| Package | Affected versions | Fixed in |
|---|---|---|
| phpmyfaq/phpmyfaq (opens in a new tab) | <= 4.1.5 | 4.1.6 |
| thorsten/phpmyfaq (opens in a new tab) | <= 4.1.5 | 4.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 auditAdvisory details
| Severity | High |
|---|---|
| Published | |
| Updated | |
| CVE | CVE-2026-56738 (opens in a new tab) |
| GHSA | GHSA-rw77-vq4g-x3hp (opens in a new tab) |
| Weakness | CWE-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
- phpMyFAQ has Stored XSS in Admin FAQ Editor via HTML Entity Bypass in Frontend FAQ Submission (high, 24 September 2026)
- phpMyFAQ's two-factor authentication login bypasses the password factor (high, 24 September 2026)
- phpMyFAQ privilege escalation: GroupController::updatePermissions lets a GROUP_EDIT admin grant rights they do not hold (high, 25 August 2026)
- phpMyFAQ public FAQ APIs expose inactive FAQ content (opens in a new tab) (medium, 25 August 2026)
- phpMyFAQ has Potential Authenticated Path Traversal in PDF Export (opens in a new tab) (medium, 25 August 2026)