Browser script execution via unsanitized Markdown HTML
Published Jun 9, 2026 · Updated Jun 9, 2026
Cross-site scripting in commenthol md-fileserver before 1.10.3 allows attackers to execute JavaScript via malicious Markdown content. The Markdown pipeline enables raw HTML in config.js, leaves unsafe tags and attributes unsanitized in lib/markd.js, and inserts the result through the Markdown template without output encoding. Execution occurs when the content is viewed or previewed in a browser and can expose data accessible to that page or alter its rendered content.
Summary
What happened
Cross-site scripting in commenthol md-fileserver before 1.10.3 allows attackers to execute JavaScript via malicious Markdown content. The Markdown pipeline enables raw HTML in config.js, leaves unsafe tags and attributes unsanitized in lib/markd.js, and inserts the result through the Markdown template without output encoding. Execution occurs when the content is viewed or previewed in a browser and can expose data accessible to that page or alter its rendered content.
The record
- CVE
- CVE-2026-46492
- Published
- Jun 9, 2026
- Updated
- Jun 9, 2026
- Vendor
- commenthol
- Product
- md-fileserver
- Classifications
- CWE-87, CWE-80, T1204.002
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Jun 9, 2026CVE publishedPublication date reported by the CVE source.
- Jun 9, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=< 1.10.3
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- GitHub advisory Markdown XSS proof of conceptproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo