{"id":"CVE-2026-130341","kind":"vulnerability","aliases":["CVE-2026-130341"],"related":[],"title":"phpMyFAQ: stored XSS via FAQ comments lets a user run scripts","description":"phpMyFAQ before 4.1.12 and 4.2.0-alpha before 4.2.0-RC.2 contains a stored cross-site scripting vulnerability that allows registered users to inject javascript: links via FAQ comments. When the comment editor is enabled, Utils::parseUrl() strips https:// from sanitized hrefs, turning an allowed https://javascript:443/ link into executable script that runs on the shared admin origin when clicked.","summary":"phpMyFAQ before 4.1.12 and 4.2.0-alpha before 4.2.0-RC.2 lets a registered user post FAQ comments containing javascript: links that survive sanitization when the comment editor is enabled. A user who clicks such a link runs attacker script on the shared admin origin.","severity":"medium","cvss":5.4,"epss":null,"exploited":false,"exploited_at":null,"products":[],"ecosystems":[],"tags":["package","php","phpmyfaq","self-hosted"],"not_affected_if":["comment-editor-disabled","fixed-version","no-registered-users"],"how_to_check":"- Check the installed phpMyFAQ version, for example `composer show phpmyfaq/phpmyfaq` or the version shown in the admin panel.\n- Check whether the comment editor is enabled in the phpMyFAQ settings.","fix":"- phpMyFAQ `4.1.12` for the 4.1 line.\n- phpMyFAQ `4.2.0-RC.2` for the 4.2 pre-release line.","status":"open","published_at":"2026-11-17T02:17:15+00:00","first_seen_at":"2026-11-17T02:40:29+00:00","triaged_at":"2026-11-17T02:42:37+00:00","updated_at":"2026-11-17T02:42:37+00:00","category":"package","confidence":0.8,"triage":{"at":"2026-11-17T02:42:37Z","model":"claude-haiku-5-5","output":{"fix":"- phpMyFAQ `4.1.12` for the 4.1 line.\n- phpMyFAQ `4.2.0-RC.2` for the 4.2 pre-release line.","reach":"internet","title":"phpMyFAQ: stored XSS via FAQ comments lets a user run scripts","impact":"medium","summary":"phpMyFAQ before 4.1.12 and 4.2.0-alpha before 4.2.0-RC.2 lets a registered user post FAQ comments containing javascript: links that survive sanitization when the comment editor is enabled. A user who clicks such a link runs attacker script on the shared admin origin.","audience":"businesses","category":"package","nicknames":[],"who_cares":["phpmyfaq","self-hosted","php"],"confidence":0.8,"fix_status":"available","needs_auth":"yes","worst_case":"script runs in admin session, enabling account takeover","analyst_note":"","how_to_check":"- Check the installed phpMyFAQ version, for example `composer show phpmyfaq/phpmyfaq` or the version shown in the admin panel.\n- Check whether the comment editor is enabled in the phpMyFAQ settings.","plain_action":"","product_name":"phpmyfaq/phpmyfaq","needs_analyst":false,"not_affected_if":["comment-editor-disabled","no-registered-users","fixed-version"],"who_is_affected":"Sites running phpMyFAQ 4.1.x below 4.1.12 or 4.2.0-alpha below 4.2.0-RC.2 with registered users who can post comments and the comment editor enabled. Admins who browse those comments are the high-value target because the script runs on the shared admin origin. Sites without the comment editor or without user registration are less exposed.","user_interaction":"yes","product_ecosystem":"composer","needs_special_setup":"yes","severity_if_unknown":"medium"},"cost_usd":0.0008,"input_tokens":4706,"output_tokens":658,"severity_before":"medium"},"analyst_status":null,"analyst_note":null,"search":"'-130341':14A,17A '-2026':13A,16A '4.1.12':26B,69C '4.2.0':28B,31B,71C,74C '443':111C 'admin':65B,121C 'allow':85C,109C 'alpha':29B,72C 'attack':60B 'click':55B,124C 'comment':6A,39B,48B,94C,97C 'contain':40B,76C 'cross':80C 'cross-sit':79C 'cve':12A,15A 'editor':49B,98C 'enabl':51B,100C 'execut':114C 'faq':5A,38B,93C 'host':23B 'href':106C 'inject':89C 'javascript':41B,90C,110C 'let':7A,33B 'link':42B,58B,91C,112C 'origin':66B,122C 'packag':18B 'parseurl':102C 'php':19B 'phpmyfaq':1A,20B,24B,67C 'post':37B 'rc.2':32B,75C 'regist':35B,86C 'run':10A,59B,117C 'sanit':45B,105C 'script':11A,61B,82C,115C 'self':22B 'self-host':21B 'share':64B,120C 'site':81C 'store':2A,78C 'strip':103C 'surviv':44B 'turn':107C 'user':9A,36B,53B,87C 'util':101C 'via':4A,92C 'vulner':83C 'xss':3A","nicknames":[],"mitigations":[],"who_affected":"Sites running phpMyFAQ 4.1.x below 4.1.12 or 4.2.0-alpha below 4.2.0-RC.2 with registered users who can post comments and the comment editor enabled. Admins who browse those comments are the high-value target because the script runs on the shared admin origin. Sites without the comment editor or without user registration are less exposed.","tier":"C","verified":{},"analyst_revisit_at":null,"fix_status":"available","audience":"businesses","plain_action":null,"pkeys":[],"ptokens":[],"labels":["medium","package","php","phpmyfaq","selfhosted"],"campaign_type":null,"search_a":"'-130341':14A,17A '-2026':13A,16A 'comment':6A 'cve':12A,15A 'faq':5A 'let':7A 'phpmyfaq':1A 'run':10A 'script':11A 'store':2A 'user':9A 'via':4A 'xss':3A","search_b":"'4.1.12':26B '4.2.0':28B,31B 'admin':65B 'alpha':29B 'attack':60B 'click':55B 'comment':39B,48B 'contain':40B 'editor':49B 'enabl':51B 'faq':38B 'host':23B 'javascript':41B 'let':33B 'link':42B,58B 'origin':66B 'packag':18B 'php':19B 'phpmyfaq':20B,24B 'post':37B 'rc.2':32B 'regist':35B 'run':59B 'sanit':45B 'script':61B 'self':22B 'self-host':21B 'share':64B 'surviv':44B 'user':36B,53B","search_c":"'4.1.12':69C '4.2.0':71C,74C '443':111C 'admin':121C 'allow':85C,109C 'alpha':72C 'click':124C 'comment':94C,97C 'contain':76C 'cross':80C 'cross-sit':79C 'editor':98C 'enabl':100C 'execut':114C 'faq':93C 'href':106C 'inject':89C 'javascript':90C,110C 'link':91C,112C 'origin':122C 'parseurl':102C 'phpmyfaq':67C 'rc.2':75C 'regist':86C 'run':117C 'sanit':105C 'script':82C,115C 'share':120C 'site':81C 'store':78C 'strip':103C 'turn':107C 'user':87C 'util':101C 'via':92C 'vulner':83C","cause_entry":null,"cause_path":null,"disclosures_checked_at":null,"first_public_at":"2026-11-16T16:02:36+00:00","kev":null,"cvss_vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","cvss_by":"disclosure@vulncheck.com","poc_count":0,"sources":[{"source":"nvd","external_id":"CVE-2026-130341","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-130341","severity":null,"published_at":"2026-11-17T02:17:15+00:00","modified_at":"2026-11-17T02:17:15+00:00","first_seen_at":"2026-11-17T02:40:29+00:00","fetched_at":"2026-11-17T02:40:29+00:00","note":null}],"documents":[{"id":173893,"url":"https://github.com/thorsten/phpMyFAQ/commit/b78abdf889d18ebc1bc507fe1f5cbd9d7db8b143","title":"Patch: github.com","kind":"other","source":"nvd","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Patch: github.com"},{"id":173886,"url":"https://github.com/thorsten/phpMyFAQ/releases/tag/4.1.12","title":"Release notes: github.com","kind":"release","source":"nvd","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Release notes: github.com"},{"id":173887,"url":"https://github.com/thorsten/phpMyFAQ/releases/tag/4.2.0-RC.2","title":"Release notes: github.com","kind":"release","source":"nvd","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Release notes: github.com"},{"id":173896,"url":"https://github.com/thorsten/phpMyFAQ/security/advisories/GHSA-37pw-f446-wpf2","title":"Vendor advisory: github.com","kind":"vendor","source":"nvd","publisher":"vendor","text":null,"published_at":"2026-11-16T16:02:36+00:00","relation":"advisory","confidence":null,"note":"Vendor advisory: github.com"},{"id":173897,"url":"https://www.vulncheck.com/advisories/phpmyfaq-before-4.1.12-and-4.2.0-alpha-before-4.2.0-rc.2-stored-xss-via-utils-parseurl","title":"Third-party advisory: www.vulncheck.com","kind":"advisory","source":"nvd","publisher":"research","text":null,"published_at":null,"relation":"advisory","confidence":null,"note":"Third-party advisory: www.vulncheck.com"}],"disclosures":[],"exploit_sources":[],"notice":"Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai"}