CVE-2026-56738: phpMyFAQ SQL Injection Vulnerability in StopWords::add() Method

phpmyfaq/phpmyfaq Updated 25 Sep 2026

Summary

24/09/2026
Yes i
High
8.5

CVE-2026-56738: phpMyFAQ has SQL Injection in StopWords::add() — Unescaped Stop Word Insertion. Affects phpmyfaq/phpmyfaq versions < 4.1.6. Fixed in 4.1.6. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

phpMyFAQ is an open-source FAQ management system that allows users to create and manage FAQs efficiently. It provides features such as multilingual support, user management, and a customizable interface. However, a vulnerability exists in the StopWords management feature, specifically in the method responsible for adding new stop words, which can lead to SQL injection attacks.

Vulnerability Detail

The vulnerability arises from the StopWords::add() method, which constructs an SQL INSERT statement using user-supplied input without proper escaping. This oversight allows an authenticated administrator to inject arbitrary SQL commands, potentially leading to data exfiltration, modification, or even deletion of database tables. The vulnerability is particularly concerning as it can be exploited by an attacker with valid administrator credentials, allowing them to execute harmful SQL statements that compromise the integrity and availability of the database.

How To Fix

Minimum fixed version

4.1.6

This is the first release that contains the fix.

composer require phpmyfaq/phpmyfaq:4.1.6

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, ensure that only trusted administrators have access to the Stop Words management feature until the package is updated. Additionally, consider implementing input validation to sanitize user inputs before processing them.

Conclusion

The SQL injection vulnerability in phpMyFAQ's StopWords::add() method poses a significant risk to applications using this software. By updating to the patched version and implementing best practices for input validation, administrators can mitigate the risks associated with this vulnerability.

See every vulnerability recorded for phpmyfaq/phpmyfaq →

Share this vulnerability

FAQ

CVE-2026-56738 is a vulnerability in phpMyFAQ that allows SQL injection through the StopWords::add() method due to improper input handling.

You can check if your application is affected by using Vulert, which monitors open-source vulnerabilities in real-time. Visit Vulert Scanner to analyze your composer.lock file.

The vulnerability can lead to unauthorized data access, data modification, or even complete database deletion, compromising the integrity and availability of the application.

An attacker with valid administrator credentials can exploit this vulnerability, making it crucial to secure administrator accounts.

Update phpMyFAQ to version 4.1.6 or later to fix the vulnerability. Additionally, restrict access to the Stop Words management feature and validate user inputs.

Related vulnerabilities

Recent vulnerabilities recorded for phpmyfaq/phpmyfaq.

How To Fix

Minimum fixed version

4.1.6

This is the first release that contains the fix.

composer require phpmyfaq/phpmyfaq:4.1.6

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback