---
id: "CVE-2026-130341"
page: "https://infrastack.ai/live/CVE-2026-130341"
kind: "vulnerability"
aliases: ["CVE-2026-130341"]
title: "phpMyFAQ: stored XSS via FAQ comments lets a user run scripts"
severity: "medium"
cvss: 5.4
epss: null
exploited: false
status: "open"
category: "package"
products: []
ecosystems: []
tags: ["package", "php", "phpmyfaq", "self-hosted"]
not_affected_if: ["comment-editor-disabled", "fixed-version", "no-registered-users"]
published_at: "2026-11-17T02:17:15+00:00"
first_seen_at: "2026-11-17T02:40:29+00:00"
updated_at: "2026-11-17T02:42:37+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-130341", "first_seen_at": "2026-11-17T02:40:29+00:00"}]
exploit_sources: []
---

# phpMyFAQ: stored XSS via FAQ comments lets a user run scripts

Link for people: https://infrastack.ai/live/CVE-2026-130341 (this .md is for agents)

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.

_Summary, check and fix written by a model from the sources; labelled as such._

## How to check

- Check the installed phpMyFAQ version, for example `composer show phpmyfaq/phpmyfaq` or the version shown in the admin panel.
- Check whether the comment editor is enabled in the phpMyFAQ settings.

## Fix

- phpMyFAQ `4.1.12` for the 4.1 line.
- phpMyFAQ `4.2.0-RC.2` for the 4.2 pre-release line.

## Timeline

- 2026-11-17T02:40:29+00:00 nvd https://nvd.nist.gov/vuln/detail/CVE-2026-130341

## Documents

- [advisory] Vendor advisory: github.com https://github.com/thorsten/phpMyFAQ/security/advisories/GHSA-37pw-f446-wpf2
- [advisory] Third-party advisory: www.vulncheck.com 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
- [fix] Patch: github.com https://github.com/thorsten/phpMyFAQ/commit/b78abdf889d18ebc1bc507fe1f5cbd9d7db8b143
- [fix] Release notes: github.com https://github.com/thorsten/phpMyFAQ/releases/tag/4.1.12
- [fix] Release notes: github.com https://github.com/thorsten/phpMyFAQ/releases/tag/4.2.0-RC.2

## From the sources

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.

---

_Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai_
