CVE-2026-77088: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in EmilStenstrom justhtml
justhtml versions 0.9.0 through 1.21.0 have a cross-site scripting (XSS) vulnerability in the to_markdown() function. This occurs because inline code spans do not properly handle blank lines as block boundaries, allowing attackers to inject blank lines that break the inline span. As a result, sanitized HTML can be emitted unescaped and re-parsed as live Markdown by compliant renderers, potentially leading to XSS attacks.
AI Analysis
Technical Summary
The vulnerability in justhtml affects versions 0.9.0 through 1.21.0 in the to_markdown() function. Inline code spans fail to treat blank lines as block boundaries, enabling attackers to inject blank lines into code or pre element text. This breaks the inline span, causing sanitized HTML to be output unescaped and subsequently re-parsed as live Markdown by renderers that comply with this behavior. This improper neutralization of input during web page generation leads to a cross-site scripting vulnerability.
Potential Impact
An attacker can exploit this vulnerability to inject malicious scripts that execute in the context of users viewing the affected Markdown-rendered content. This can lead to typical XSS impacts such as session hijacking, defacement, or redirection to malicious sites. The CVSS score of 5.3 (medium severity) reflects that the attack vector is network-based with low complexity and no privileges required, but user interaction is needed and the impact on confidentiality, integrity, and availability is low to limited.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should consider applying input sanitization workarounds or avoid using vulnerable versions. Monitor the vendor's communications for updates regarding patches or official mitigations.
CVE-2026-77088: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in EmilStenstrom justhtml
Description
justhtml versions 0.9.0 through 1.21.0 have a cross-site scripting (XSS) vulnerability in the to_markdown() function. This occurs because inline code spans do not properly handle blank lines as block boundaries, allowing attackers to inject blank lines that break the inline span. As a result, sanitized HTML can be emitted unescaped and re-parsed as live Markdown by compliant renderers, potentially leading to XSS attacks.
CVSS v4.0
Score 5.3medium
Affected software
pkg:github/emilstenstrom/justhtmlRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in justhtml affects versions 0.9.0 through 1.21.0 in the to_markdown() function. Inline code spans fail to treat blank lines as block boundaries, enabling attackers to inject blank lines into code or pre element text. This breaks the inline span, causing sanitized HTML to be output unescaped and subsequently re-parsed as live Markdown by renderers that comply with this behavior. This improper neutralization of input during web page generation leads to a cross-site scripting vulnerability.
Potential Impact
An attacker can exploit this vulnerability to inject malicious scripts that execute in the context of users viewing the affected Markdown-rendered content. This can lead to typical XSS impacts such as session hijacking, defacement, or redirection to malicious sites. The CVSS score of 5.3 (medium severity) reflects that the attack vector is network-based with low complexity and no privileges required, but user interaction is needed and the impact on confidentiality, integrity, and availability is low to limited.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, users should consider applying input sanitization workarounds or avoid using vulnerable versions. Monitor the vendor's communications for updates regarding patches or official mitigations.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-08-20T10:55:09.093Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a8afb27acd9273b49f5f72b
Added to database: 08/23/2026, 13:52:39 UTC
Last enriched: 08/23/2026, 14:07:41 UTC
Last updated: 08/23/2026, 14:57:15 UTC
Views: 5
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.