CVE-2026-77088

justhtml 0.9.0 through 1.21.0 Cross-Site Scripting via code-span

Published Aug 23, 2026 CVSS 4.0 · 5.3 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

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

Remediation

No solution or workaround provided in the CVE record.

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 available
History
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
First Time appeared Emilstenstrom
Emilstenstrom justhtml
Vendors & Products Emilstenstrom
Emilstenstrom justhtml
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'}

Weaknesses
  • CWE-79

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

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Aug 29, 2026, 11:47 AM
Reserved
Aug 20, 2026, 10:55 AM
Status
Deferred
Published
Aug 23, 2026, 2:16 PM
Modified
Oct 12, 2026, 4:10 PM