md-fileserver: Stored/Reflected XSS when viewing Markdown (raw HTML allowed)
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Cross-site scripting
- Confidentiality · integrity · availability
- Low · Low · None
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-80.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| commenthol | md-fileserver | before 1.10.3 | 1.10.3 | Patch available | CNA |
| — | md-fileserver (npm) | before 1.10.3 | 1.10.3 | Patch available | GHSA-32q2-hhr5-6qvv |
- md-fileserver Vendorcommenthol Affected before 1.10.3 Fixed in 1.10.3 Patch available CNA
- md-fileserver (npm) Vendor— Affected before 1.10.3 Fixed in 1.10.3 Patch available GHSA-32q2-hhr5-6qvv
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:commenthol:md-fileserver:*:*:*:*:*:node.js:*:* | before 1.10.3 | Vulnerable | commenthol |
- cpe:2.3:a:commenthol:md-fileserver:*:*:*:*:*:node.js:*:* Versions before 1.10.3 Vulnerable ·commenthol
Remediation
- Fix · CNA md-fileserver (commenthol) Fixed in 1.10.3
- Fix · GHSA-32q2-hhr5-6qvv md-fileserver (npm) Fixed in 1.10.3 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2026-46492
- 2026-10-03 Alias added: GHSA-32q2-hhr5-6qvv
References
Sources
- CVE-2026-46492 · CVE Program
- CVE-2026-46492 · NVD
- FIRST EPSS
- GHSA-32q2-hhr5-6qvv · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences