---
id: "CVE-2026-130365"
page: "https://infrastack.ai/live/CVE-2026-130365"
kind: "vulnerability"
aliases: ["CVE-2026-130365"]
title: "phpMyFAQ: SVG sanitizer bypass lets editors plant script in admin pages"
severity: "medium"
cvss: 4.4
epss: null
exploited: false
status: "open"
category: "package"
products: [{"name": "phpMyFAQ", "fixed": [], "affected": "", "ecosystem": "vendor"}]
ecosystems: ["vendor"]
tags: ["iis", "package", "php", "phpmyfaq", "self-hosted"]
not_affected_if: ["no-faq-edit-users", "pre-4.2.0-alpha-or-post-fix"]
published_at: "2026-11-17T02:17:19+00:00"
first_seen_at: "2026-11-17T02:40:31+00:00"
updated_at: "2026-11-17T02:42:54+00:00"
sources: [{"source": "nvd", "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-130365", "first_seen_at": "2026-11-17T02:40:31+00:00"}]
exploit_sources: []
---

# phpMyFAQ: SVG sanitizer bypass lets editors plant script in admin pages

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

phpMyFAQ from 4.2.0-alpha before 4.2.0-RC.2 lets a user with the FAQ_EDIT role upload an SVG whose namespace-prefixed elements such as <x:script> get past the SvgSanitizer. The script then runs in the site's origin on IIS, so it can hijack sessions of users such as super-admins.

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

## Affected

- vendor:phpMyFAQ affected range not listed fixed no fixed version listed

## How to check

- Check the installed phpMyFAQ version and whether it is between `4.2.0-alpha` and `4.2.0-RC.2`, which the sources list as affected
- Look for users with the FAQ_EDIT role, since they are the ones who can upload images
- Run on IIS: the sources say the attack path was demonstrated there

## Fix

- phpMyFAQ: move to `4.2.0-RC.2` or later (fixed version as stated in the NVD range)

## Timeline

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

## Documents

- [advisory] Vendor advisory: github.com https://github.com/thorsten/phpMyFAQ/security/advisories/GHSA-h77h-69jx-2qvj
- [advisory] Third-party advisory: www.vulncheck.com https://www.vulncheck.com/advisories/phpmyfaq-4.2.0-alpha-before-4.2.0-rc.2-stored-xss-via-svgsanitizer-namespace-bypass
- [fix] Release notes: github.com https://github.com/thorsten/phpMyFAQ/releases/tag/4.2.0-RC.2

## From the sources

phpMyFAQ from 4.2.0-alpha before 4.2.0-RC.2 contains a stored cross-site scripting vulnerability that allows FAQ_EDIT users to bypass SvgSanitizer using namespace-prefixed elements like <x:script>. Attackers can upload malicious SVGs through the admin image upload so script runs in the site origin on IIS, hijacking sessions of users like super-admins.

---

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