Description
justhtml versions 0.9.0 through 1.21.0 contain a cross-site scripting vulnerability in to_markdown() where inline code spans fail to account for blank lines as block boundaries. Attackers can inject blank lines into code or pre element text to break the inline span, causing sanitized HTML to be emitted unescaped and re-parsed as live Markdown by compliant renderers.
Published: 2026-08-23
Score: 5.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Cross‑Site Scripting (XSS)
Action: Patch Now
AI Analysis

Impact

justhtml 0.9.0 through 1.21.0 contains a cross‑site scripting vulnerability in its to_markdown() function; the flaw arises when inline code spans do not consider blank lines as block boundaries. An attacker can inject blank lines into code or pre element text to break the inline span, causing sanitized HTML to be output unescaped. The unescaped output is then re‑parsed as live Markdown by compliant renderers, which can deliver executable script to a victim’s browser.

Affected Systems

The bug affects the justhtml library distributed by EmilStenstrom. Any application that uses justhtml versions 0.9.0 to 1.21.0 to convert user‑supplied content to Markdown or HTML is potentially impacted.

Risk and Exploitability

The CVSS score of 5.3 indicates a moderate risk profile. No EPSS score is available and the issue is not listed in the KEV catalog. The likely attack vector is injection of malicious content into a field that the application passes to to_markdown(); if the rendered output is served to other users, the XSS can lead to script execution or session hijacking. No elevated privileges are required beyond the ability to supply content to the conversion routine.

Generated by OpenCVE AI on August 23, 2026 at 16:35 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade justhtml to any version newer than 1.21.0 when it becomes available.
  • If upgrading is not immediately possible, configure the application to avoid processing untrusted content with to_markdown(); for example, escape or strip potentially dangerous input before conversion.
  • As a temporary measure, serve the transformed HTML through a separate sanitization step that removes script tags or other executable content.

Generated by OpenCVE AI on August 23, 2026 at 16:35 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 28 Aug 2026 19:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Sun, 23 Aug 2026 16:45:00 +0000

Type Values Removed Values Added
First Time appeared Emilstenstrom
Emilstenstrom justhtml
Vendors & Products Emilstenstrom
Emilstenstrom justhtml

Sun, 23 Aug 2026 14:00:00 +0000

Type Values Removed Values Added
Description justhtml versions 0.9.0 through 1.21.0 contain a cross-site scripting vulnerability in to_markdown() where inline code spans fail to account for blank lines as block boundaries. Attackers can inject blank lines into code or pre element text to break the inline span, causing sanitized HTML to be emitted unescaped and re-parsed as live Markdown by compliant renderers.
Title justhtml 0.9.0 through 1.21.0 Cross-Site Scripting via code-span
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 6.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N'}

cvssV4_0

{'score': 5.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N'}


Subscriptions

Emilstenstrom Justhtml
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-29T11:47:53.161Z

Reserved: 2026-08-20T10:55:09.093Z

Link: CVE-2026-77088

cve-icon Vulnrichment

Updated: 2026-08-26T15:58:23.487Z

cve-icon NVD

Status : Deferred

Published: 2026-08-23T14:16:54.433

Modified: 2026-08-29T12:16:46.160

Link: CVE-2026-77088

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-23T16:45:03Z

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')