
Find real vulnerabilities before they ship
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.
Base Score
5.4| Package (Ecosystem) | Introduced | Fixed | Limit |
|---|---|---|---|
| phpMyFAQ/phpMyFAQ(Packagist) | 0 | 4.1.2 | N/A |
| thorsten/phpMyFAQ(Packagist) | 0 | 4.1.2 | N/A |
| Base Score | 5.4 |
|---|---|
| Vector String | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| Base Severity | Medium |
| Version | 3.1 |
| Attack Vector (AV) | NETWORK |