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

Advisory record · `GHSA-rw77-vq4g-x3hp`

- **Identifiers:** `GHSA-rw77-vq4g-x3hp` · `CVE-2026-56738` · `PKSA-5kfv-yxk9-ft5p` · `PKSA-mq9q-wz1h-jkfd`
- **State:** Confirmed
- **Severity:** CVSS 8.5 High
- **Critical:** No
- **Weakness (CWE):** [CWE-89](https://cwe.mitre.org/data/definitions/89.html)
- **Tags:** [SQL injection](https://agentprime.io/advisories/tag/sql-injection.md)
- **Published:** 24 Sept 2026
- **Updated:** 24 Sept 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 24 Sept 2026, 19:30 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `phpmyfaq/phpmyfaq` (Packagist): affected `<4.1.6`; fixed in `4.1.6`
- `thorsten/phpmyfaq` (Packagist): affected `<4.1.6`; fixed in `4.1.6`

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> Packages phpmyfaq/phpmyfaq and thorsten/phpmyfaq are affected in versions below 4.1.6, and the fix is in 4.1.6. The StopWords::add() method inserts the submitted stop word into an SQL statement without escaping it, which allows SQL injection. An attacker needs valid administrator credentials, or an authenticated administrator session, to reach the stop-word form, and could then read, modify, or delete database data. Upgrade to version 4.1.6 or later.

Written 31 Oct 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 8.5 High, CVSS 4.0: `CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N`, from CNA (GitHub_M)

- **CISA KEV:** Not listed.
- **EPSS:** 0.0026, the 17th percentile, on 10 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 13:54 UTC: First seen by agentprime
- 31 Oct 2026, 13:54 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-rw77-vq4g-x3hp)

## Sources

- [GitHub Advisory Database: GHSA-rw77-vq4g-x3hp](https://github.com/advisories/GHSA-rw77-vq4g-x3hp)
- [OSV: GHSA-rw77-vq4g-x3hp](https://osv.dev/vulnerability/GHSA-rw77-vq4g-x3hp)
- <https://github.com/thorsten/phpMyFAQ/security/advisories/GHSA-rw77-vq4g-x3hp>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-56738>
- <https://github.com/thorsten/phpMyFAQ/commit/d56ef5d75c3c007de095bc4c13b470c7ac783f0f>
- <https://github.com/thorsten/phpMyFAQ>
- <https://github.com/thorsten/phpMyFAQ/releases/tag/4.1.6>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-rw77-vq4g-x3hp>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-rw77-vq4g-x3hp/>. Everything for agents: <https://agentprime.io/llms.txt>.
