{"id":"CVE-2026-46360","published":"2026-05-15T18:36:39Z","modified":"2026-11-08T14:03:52Z","title":"phpMyFAQ - Stored XSS via Entity Decoding Depth Limit Bypass in SVG Sanitizer","vendor":"thorsten","product":"phpmyfaq","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00187,"percentile":0.08479,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/thorsten/phpMyFAQ/security/advisories/GHSA-whqh-9pq5-c7r3","tags":["vendor-advisory"]},{"url":"https://www.vulncheck.com/advisories/phpmyfaq-stored-xss-via-entity-decoding-depth-limit-bypass-in-svg-sanitizer","tags":["third-party-advisory"]}],"priority":{"score":5.5,"factors":[{"name":"EPSS percentile","points":1.7},{"name":"CVSS severity","points":3.78}]},"vendorSlug":"thorsten","affectedVersions":[{"vendor":"thorsten","product":"phpmyfaq","versions":["< 4.1.2"]}],"fixedVersions":[{"vendor":"thorsten","product":"phpmyfaq","versions":["4.1.2"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2026-05-15T20:15:56.802980Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"phpmyfaq/phpmyfaq","vulnerableRanges":["<4.1.2"],"patched":["4.1.2"],"from":["GHSA-whqh-9pq5-c7r3"],"provenance":"source"},{"ecosystem":"Packagist","package":"thorsten/phpmyfaq","vulnerableRanges":["<4.1.2"],"patched":["4.1.2"],"from":["GHSA-whqh-9pq5-c7r3"],"provenance":"source"}],"summary":{"text":"The flaw is a stored cross-site scripting vulnerability in the SVG sanitizer (SvgSanitizer::decodeAllEntities()) of phpMyFAQ before 4.1.2, where recursive HTML entity decoding is capped at five iterations, letting crafted encoding evade sanitization. An attacker with a network-reachable account holding FAQ_EDIT permission can upload a malicious SVG with deeply nested encoded entities that rebuild a javascript: URL, and arbitrary JavaScript then runs in the browser of another user who clicks it while viewing the uploaded SVG.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:20:53Z"},"euvd":{"id":"EUVD-2026-30597","exploited":false,"provenance":"source"}}