CVE-2026-46492 md-fileserver: Stored/Reflected XSS when viewing Markdown (raw HTML allowed)
MediumCVSS 6.1
EPSS 0.23%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: partial
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.
Upgrade path
2 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| commenthol md-fileserver | < 1.10.3; = < 1.10.3 | 1.10.3 | Fixed |
| npm md-fileserver(npm) | < 1.10.3 | 1.10.3 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| commenthol md-fileserver | = < 1.10.3 | No fix listed |
| npm md-fileserver(npm) | < 1.10.3 | 1.10.3 |
| commenthol md-fileserver | < 1.10.3 | 1.10.3 |
References
- https://github.com/commenthol/md-fileserver/security/advisories/GHSA-32q2-hhr5-6qvv exploit vendor-advisory
- https://github.com/commenthol/md-fileserver/releases/tag/v1.10.3 release-notes
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- github.com product