{"id":"CVE-2026-46361","published":"2026-05-15T18:36:40Z","modified":"2026-11-08T14:03:53Z","title":"phpMyFAQ - Stored Cross-Site Scripting via raw Filter in search.twig","vendor":"thorsten","product":"phpmyfaq","tier":"tail","description":{"text":"phpMyFAQ before 4.1.2 contains a stored cross-site scripting vulnerability in search.twig where result.question and result.answerPreview are rendered with the raw filter, disabling autoescape protection. Attackers with FAQ editor privileges can inject HTML-entity-encoded payloads that bypass html_entity_decode(strip_tags()) processing in SearchController.php, executing arbitrary JavaScript in every visitor's browser context including administrators.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.9,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:H/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00336,"percentile":0.19492,"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-pqh6-8fxf-jx22","tags":["vendor-advisory"]},{"url":"https://www.vulncheck.com/advisories/phpmyfaq-stored-cross-site-scripting-via-raw-filter-in-search-twig","tags":["third-party-advisory"]}],"priority":{"score":8.7,"factors":[{"name":"EPSS percentile","points":3.9},{"name":"CVSS severity","points":4.83}]},"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-16T01:17:36.125046Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"phpmyfaq/phpmyfaq","vulnerableRanges":["<4.1.2"],"patched":["4.1.2"],"from":["GHSA-pqh6-8fxf-jx22"],"provenance":"source"},{"ecosystem":"Packagist","package":"thorsten/phpmyfaq","vulnerableRanges":["<4.1.2"],"patched":["4.1.2"],"from":["GHSA-pqh6-8fxf-jx22"],"provenance":"source"}],"summary":{"text":"A stored cross-site scripting flaw in phpMyFAQ (before 4.1.2) lives in the search.twig template, where the question and answer preview fields of search results are rendered with the raw filter, disabling autoescaping. An attacker with FAQ editor privileges can store HTML-entity-encoded payloads that get past the strip_tags and html_entity_decode processing in SearchController.php, so the script runs in the browser of any visitor who views the results, including administrators, provided a user interacts with the affected page.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:11:12Z"},"euvd":{"id":"EUVD-2026-30596","exploited":false,"provenance":"source"}}