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

- Severity: High 7.2 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.23%, higher than 15% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-21T17:57:32.000Z
- Modified: 2026-08-12T17:48:26.667Z
- Also known as: GHSA-32q2-hhr5-6qvv
- Weaknesses: CWE-80, CWE-87
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- commenthol md-fileserver: < 1.10.3; before 1.10.3
- md-fileserver (npm): before 1.10.3

## Every score

- GitHub_M: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 7.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N`
- NVD: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/commenthol/md-fileserver/security/advisories/GHSA-32q2-hhr5-6qvv> (exploit, vendor-advisory, web)
- <https://github.com/commenthol/md-fileserver/releases/tag/v1.10.3> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-46492> (advisory)
- <https://github.com/commenthol/md-fileserver> (package)

## Sources

- CVE List: [CVE-2026-46492](https://www.cve.org/CVERecord?id=CVE-2026-46492), CVE Terms of Use, modified 2026-06-09
- GitHub Advisory Database: [GHSA-32q2-hhr5-6qvv](https://github.com/advisories/GHSA-32q2-hhr5-6qvv), CC-BY-4.0, modified 2026-06-09
- NVD: [CVE-2026-46492](https://nvd.nist.gov/vuln/detail/CVE-2026-46492), Public domain, modified 2026-08-12

---

Page: https://cve.day/CVE-2026-46492 · Whole record: https://cve.day/CVE-2026-46492.json · Rebuilt by cve.day 2026-11-25T22:59:24.198Z
