CVE-2026-46360
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.
How to fix
- phpmyfaq/phpmyfaq4.1.2 or later
- thorsten/phpmyfaq4.1.2 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| phpmyfaq/phpmyfaqPackagist | v < 4.1.2 | 4.1.2 |
| thorsten/phpmyfaqPackagist | v < 4.1.2 | 4.1.2 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.