Skip to content
OpenAdvisories
Medium · 5.4 CVE-2026-46360 EUVD-2026-30597GHSA-whqh-9pq5-c7r3GHSA-wj3q-vw2v-3rj3

phpMyFAQ - Stored XSS via Entity Decoding Depth Limit Bypass in SVG Sanitizer

Published May 15, 2026 · Updated Nov 8, 2026 · 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.

Affected products

VendorProductAffectedFixed
thorsten phpmyfaq < 4.1.2 4.1.2

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist phpmyfaq/phpmyfaq < 4.1.2 4.1.2 GHSA-whqh-9pq5-c7r3
Packagist thorsten/phpmyfaq < 4.1.2 4.1.2 GHSA-whqh-9pq5-c7r3

References