# CVE-2026-46360: phpMyFAQ - Stored XSS via Entity Decoding Depth Limit Bypass in SVG Sanitizer

- Severity: Medium 5.1 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 13% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-06T20:18:48.000Z
- Modified: 2026-11-08T14:03:52.725Z
- Also known as: GHSA-whqh-9pq5-c7r3
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: VulnCheck

## Description

phpMyFAQ before 4.1.2 contains a stored cross-site scripting vulnerability in SvgSanitizer::decodeAllEntities() that limits recursive entity decoding to 5 iterations, allowing attackers to bypass sanitization. Authenticated users with FAQ_EDIT permission can upload malicious SVG files with deeply nested ampersand encoding around numeric HTML entities to reconstruct javascript: URLs, which execute arbitrary JavaScript when clicked by other users viewing the uploaded SVG.

(As written by CVE List.)

## Affected

- thorsten phpmyfaq: before 4.1.2 (not affected: 4.1.2)
- phpmyfaq/phpmyfaq (Packagist): before 4.1.2
- thorsten/phpmyfaq (Packagist): before 4.1.2

## Every score

- VulnCheck: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- VulnCheck: CVSS:4.0 5.1 Medium `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`
- GitHub: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/thorsten/phpMyFAQ/security/advisories/GHSA-whqh-9pq5-c7r3> (exploit, vendor-advisory, web)
- <https://www.vulncheck.com/advisories/phpmyfaq-stored-xss-via-entity-decoding-depth-limit-bypass-in-svg-sanitizer> (third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-46360> (advisory)
- <https://github.com/thorsten/phpMyFAQ> (package)

## Sources

- CVE List: [CVE-2026-46360](https://www.cve.org/CVERecord?id=CVE-2026-46360), CVE Terms of Use, modified 2026-11-08
- GitHub Advisory Database: [GHSA-whqh-9pq5-c7r3](https://github.com/advisories/GHSA-whqh-9pq5-c7r3), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2026-46360](https://nvd.nist.gov/vuln/detail/CVE-2026-46360), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-46360 · Whole record: https://cve.day/CVE-2026-46360.json · Rebuilt by cve.day 2026-11-25T22:59:21.836Z
