HarborGuardharborguardDatabase
Back to search
HIGHCVE-2026-46492Published Modified CNA GitHub_M

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

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.

Metrics

CVSS v3.1
7.2
Severity
HIGH
Fixed in
Affected Products
1

Get notified

Email me when this CVE is updated: new fix versions, severity changes, or any record change.

HarborGuard Analysis

Synopsis

Stored and reflected cross-site scripting (XSS) affects md-fileserver, a tool for viewing Markdown files locally in a browser. The vulnerability is reachable over the network with no authentication required and no victim interaction needed, because raw HTML embedded in Markdown content is injected into rendered pages without sanitization, allowing arbitrary JavaScript to execute in the context of the affected domain. Successful exploitation lets an attacker read sensitive page data, forge requests, or manipulate page content within the victim's browser session. HarborGuard tracks this advisory and will make a patched-image rebuild available the moment an upstream fix is published.

HarborGuard Coverage

Detection

Detection is available across every HarborGuard environment: the CVE is ingested from upstream feeds within minutes of publication and matched against customer images in registries and CI pipelines, including custom-built images that bundle md-fileserver. No manual feed configuration is needed for coverage to apply.

Available
Triage

HarborGuard is capable of scoring this finding at CVSS 7.2 HIGH and weighting it against each environment's compliance policy to determine urgency. Findings are routable to the appropriate team inbox inside each customer organization based on policy rules and image ownership.

Available
Patch

Because no fix version has been published upstream, HarborGuard re-checks the advisory on every ingest cycle and will make a patched-image rebuild available automatically the moment the upstream maintainer ships a fix. In the meantime, customers with auto-remediation enabled can receive alerts with compensating-control recommendations applied to affected workloads.

Pending upstream

Exploit Conditions

  • Network reachabilityRequired

    The attacker must reach the md-fileserver instance over the network; the CVSS vector specifies AV:N, meaning the service is exposed to network-level access.

  • AuthenticationNot required

    No credentials or account are needed; PR:N indicates the attacker can interact with the vulnerable endpoint without authenticating.

  • Victim interactionNot required

    No user action such as clicking a link is needed to trigger the vulnerability; UI:N means the malicious payload executes without social engineering.

  • Attack complexityDetail

    Attack complexity is low (AC:L), meaning the exploit is reliable and requires no special conditions, race timing, or environmental prerequisites.

Blast Radius

  • An attacker executes arbitrary JavaScript in the browser context of the affected domain, enabling reads of cookies, session tokens, and any data visible on the rendered page.
  • Injected scripts can forge authenticated requests on behalf of the current user, modifying application state or exfiltrating form inputs.
  • The scope token S:C indicates the impact crosses the security boundary of the originating component, so a single compromised Markdown file can affect other resources sharing the domain.
  • Confidentiality and integrity are both rated L (partial impact), meaning an attacker reads and modifies a meaningful subset of accessible data even without full control of the host.

How HarborGuard Handles This

Available on HarborGuard: because no upstream fix has been published for CVE-2026-46492, the platform monitors the advisory on every feed ingest cycle and will surface a patched-image rebuild automatically once version 1.10.3 or a later fix is confirmed upstream. Until then, customers can apply compensating controls: network-policy isolation to restrict inbound access to md-fileserver instances, egress filtering to block exfiltration paths from the browser context, and feature-flag or deployment gating to disable Markdown rendering endpoints that accept untrusted input. For customers who opt into auto-remediation, a rebuild and regression run will be triggered immediately upon upstream patch availability, with a PR opened against affected workloads. Customers managing compliance posture manually will see the finding ranked at CVSS 7.2 HIGH in their HarborGuard dashboard with routing based on their configured policy.

See how HarborGuard automates this
Affected packages
  • commenthol / md-fileserver
    < 1.10.3
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N