GHSA-wj3q-vw2v-3rj3MediumCVSS 5.4
phpMyFAQ: SVG Sanitizer Entity Decoding Depth Limit Bypass Leading to Stored XSS
🔗 CVE IDs covered (1)
📋 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.
🎯 Affected products2
- composer/phpMyFAQ/phpMyFAQ:< 4.1.2
- composer/thorsten/phpMyFAQ:< 4.1.2