External risk intelligence

justhtml Markdown Conversion Vulnerability Allows Cross-Site Scripting

CVE advisorySeverity: CRITICAL (CVSS 9.3)

CVE-2026-8445

The vulnerability exists in a library function used to convert HTML to Markdown. While the library itself could be integrated into public-facing web applications that process user-supplied HTML, the library is a developer tool/dependency rather than a standalone network service or edge gateway. Public exposure is dependent on how developers implement the library within their specific applications.

Cross-site Scripting

Halo Surface Signal: 3 out of 5 — possibly public-facing.

External exposure likelihood

Horizon Alert

Summary of the vulnerability and why it matters

A vulnerability in the justhtml library allows attackers to inject malicious code, potentially leading to cross-site scripting, when converting HTML to Markdown. This occurs because the library does not properly escape certain characters, allowing untrusted input to be rendered as raw HTML. The main concern is confirming relevance and exposure, as the library is a developer tool and its impact depends on its integration into applications.

  • Improper HTML escaping may allow code injection.
  • This issue can bypass security features in applications.
  • Confirm if your applications use this library's conversion.

Attack Path

How an attacker could exploit the issue

An attacker could exploit this vulnerability by submitting specially crafted HTML input, which is then converted to Markdown. Because the conversion process doesn't properly escape certain characters like angle brackets, these can be rendered as raw HTML when the Markdown is displayed. This can bypass security checks and allow malicious code execution.

  • Unauthenticated access to a web application.
  • Input conversion to Markdown.
  • Cross-site scripting and sanitizer bypass.

Live Threat

Current exploitation, exposure, and threat context

This vulnerability could allow malicious code to be injected when untrusted HTML is converted to Markdown. This may occur when HTML content from specific elements or entity-decoded text is processed, potentially bypassing sanitization and leading to cross-site scripting if the Markdown output is rendered in a web context.

  • User-supplied HTML.
  • Markdown conversion process.
  • Execute arbitrary code in browsers.

Operational Fix

Recommended remediation, mitigation, and detection steps

The `justhtml` library's Markdown conversion function presents a critical risk when handling untrusted input. Application owners and development teams integrating this library must take immediate action to identify all instances of the affected `justhtml` versions. Confirming reachability and business criticality will prioritize remediation efforts, likely involving coordination with vendor-management if `justhtml` is a third-party dependency. The initial step is to locate where this library is used and assess its exposure.

  • Application owners must address this.
  • Verify Markdown output is not rendered.
  • Plan vendor coordination and updates.

Supplementary metadata

Validate whether this threat affects your internet-facing exposure.

Halo Threat Intelligence helps prioritize remediation with Halo Surface Signal and H/A/L/O context. Start exposure validation with a free external attack surface trial.

Frequently asked questions

What is the justhtml library?

justhtml is a software library designed for developers to convert HTML documents into Markdown format. It acts as a bridge between these two text representations, often used in applications that need to transform web-based content into a simplified structure. Because it is a foundational dependency rather than an independent service, its function is embedded directly into the custom code of web applications that choose to integrate it for content processing tasks.

How does CVE-2026-8445 create a security risk?

This vulnerability is classified as CWE-79, or Improper Neutralization of Input During Web Page Generation. The library fails to correctly escape angle brackets like < and > during Markdown conversion. When an application later displays the generated Markdown, these characters can be interpreted as executable HTML tags. This allows attackers to bypass existing sanitizers and inject malicious scripts that run in a user's browser, a classic scenario for cross-site scripting.

What triggers this vulnerability?

The issue is triggered when the library processes untrusted input containing HTML-significant characters or text from specific elements like <title> or <textarea>. Importantly, the bug does not trigger if the application only processes trusted, internal data. It requires the application to accept and convert attacker-supplied HTML that is subsequently rendered for other users. If the output of the conversion is never displayed in a web browser, the primary risk of cross-site scripting is mitigated.

Is my application vulnerable according to Halo Surface Signal?

Halo Surface Signal notes that while the vulnerability is serious, its impact depends on implementation. Since justhtml is a developer tool, exposure is not automatic. You should care if your application uses this library to process user-supplied content and then displays the resulting Markdown in a web interface. The risk is highest for internet-facing applications that allow users to submit HTML, which the system then converts and renders for other visitors.

What are the first steps to address this issue?

Start by auditing your codebase to identify all locations where justhtml is used for conversion. Confirm whether any of these paths handle input from untrusted sources. If you identify vulnerable versions, prioritize updating to release 1.12.0 or later, which contains the fix. Until you can update, ensure that any Markdown generated by the library is treated as untrusted and properly sanitized before it is ever rendered in a web browser.

References