Vulnerability · Published Jun 9, 2026 · Assigned by GitHub_M
CVE-2026-46492md-fileserver: Stored/Reflected XSS when viewing Markdown (raw HTML allowed)
High 7.2
In plain English
A high-severity security flaw in md-fileserver from commenthol. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 14% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| npm | md-fileserver | 1.10.3 | GHSA-32q2-hhr5-6qvv |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| commenthol | md-fileserver | < 1.10.3 |
Weakness: CWE-80, CWE-87 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N
References
- https://github.com/commenthol/md-fileserver/security/advisories/GHSA-32q2-hhr5-6qvv x_refsource_CONFIRM
- https://github.com/commenthol/md-fileserver/releases/tag/v1.10.3 x_refsource_MISC