Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. thorsten/phpmyfaq
  4. ›
  5. CVE-2026-56738

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

September 24, 2026

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.

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.


References

  • github.com/advisories/GHSA-rw77-vq4g-x3hp
  • github.com/thorsten/phpMyFAQ/commit/d56ef5d75c3c007de095bc4c13b470c7ac783f0f
  • github.com/thorsten/phpMyFAQ/releases/tag/4.1.6
  • github.com/thorsten/phpMyFAQ/security/advisories/GHSA-rw77-vq4g-x3hp
  • nvd.nist.gov/vuln/detail/CVE-2026-56738

Code Behaviors & Features

Detect and mitigate CVE-2026-56738 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 4.1.6

Fixed versions

  • 4.1.6

Solution

Upgrade to version 4.1.6 or above.

Impact 6.5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Source file

packagist/thorsten/phpmyfaq/CVE-2026-56738.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Mon, 12 Oct 2026 12:17:48 +0000.