CVE-2026-46360
MEDIUMphpMyFAQ - Stored XSS via Entity Decoding Depth Limit Bypass in SVG Sanitizer
Title source: cnaDescription
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.
References (2)
Core 2
Core References
Vendor Advisory vendor-advisory
GHSA Advisory GHSA-whqh-9pq5-c7r3
https://github.com/thorsten/phpMyFAQ/security/advisories/GHSA-whqh-9pq5-c7r3
Third Party Advisory third-party-advisory
VulnCheck Advisory: phpMyFAQ - Stored XSS via Entity Decoding Depth Limit Bypass in SVG Sanitizer
https://www.vulncheck.com/advisories/phpmyfaq-stored-xss-via-entity-decoding-depth-limit-bypass-in-svg-sanitizer
Scores
CVSS v3
5.4
EPSS
0.0015
EPSS Percentile
4.8%
Attack Vector
NETWORK
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
CISA SSVC
Vulnrichment
Exploitation
poc
Automatable
no
Technical Impact
partial
Details
CWE
CWE-79
Status
published
Products (6)
phpMyFAQ/phpMyFAQ
0 - 4.1.2Packagist
phpmyfaq/phpmyfaq
0 - 4.1.2Packagist
thorsten/phpmyfaq
< 4.1.2
thorsten/phpMyFAQ
0 - 4.1.2Packagist
thorsten/phpmyfaq
0 - 4.1.2Packagist
thorsten/phpmyfaq
4.1.2
Published
May 15, 2026
Tracked Since
May 16, 2026