# phpMyFAQ has Stored XSS in FAQ Question/Answer via Encode-Decode Bypass of removeAttributes() Sanitization

Advisory record · `GHSA-f5p7-2c9q-8896`

- **Identifiers:** `GHSA-f5p7-2c9q-8896` · `CVE-2026-46363` · `PKSA-6zc3-3brt-ftsh` · `PKSA-jr2y-dd2x-qtks`
- **State:** Confirmed
- **Severity:** CVSS 5.1 Medium
- **Critical:** No
- **Weakness (CWE):** [CWE-79](https://cwe.mitre.org/data/definitions/79.html)
- **Tags:** [Cross-site scripting (XSS)](https://agentprime.io/advisories/tag/xss.md)
- **Published:** 6 May 2026
- **Updated:** 10 Sept 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 6 May 2026, 20:18 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

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

## Machine-written summary

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

> The phpMyFAQ package (phpmyfaq/phpmyfaq and thorsten/phpmyfaq on Packagist) is affected in versions before 4.1.2, and 4.1.2 is the fixed version. The FAQ create and update paths decode HTML entities after encoding, and the attribute-only sanitizer leaves script, iframe, object and embed tags intact, so stored content can run JavaScript when the FAQ page or search results are rendered. An attacker needs an account with FAQ creation permission and a valid session token; visitors who then view the FAQ can have their session cookies stolen. Upgrade to phpMyFAQ 4.1.2 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

- 5.1 Medium, CVSS 4.0: `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N`, from CNA (VulnCheck)

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

## Timeline

- 15 May 2026, 18:36 UTC: [Confirmed by the CVE List](https://www.cve.org/CVERecord?id=CVE-2026-46363)
- 31 Oct 2026, 13:59 UTC: First seen by agentprime
- 31 Oct 2026, 13:59 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-f5p7-2c9q-8896)

## Sources

- [GitHub Advisory Database: GHSA-f5p7-2c9q-8896](https://github.com/advisories/GHSA-f5p7-2c9q-8896)
- [OSV: GHSA-f5p7-2c9q-8896](https://osv.dev/vulnerability/GHSA-f5p7-2c9q-8896)
- <https://github.com/thorsten/phpMyFAQ/security/advisories/GHSA-f5p7-2c9q-8896>
- <https://nvd.nist.gov/vuln/detail/CVE-2026-46363>
- <https://github.com/thorsten/phpMyFAQ>
- <https://www.vulncheck.com/advisories/phpmyfaq-stored-xss-in-faq-question-answer-via-encode-decode-bypass>

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-f5p7-2c9q-8896>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-f5p7-2c9q-8896/>. Everything for agents: <https://agentprime.io/llms.txt>.
