Skip to main content

justhtml EUVDEUVD-2026-64653

| CVE-2026-5389 MEDIUM
Basic XSS (CWE-80)
2026-08-23 VulnCheck GHSA-q3jf-9wv7-p29w
5.1
CVSS 4.0 · Vendor: VulnCheck
Share

Severity by source

Vendor (VulnCheck) PRIMARY
5.1 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
vuln.today AI
6.1 MEDIUM

Network-delivered payload requires victim to render Markdown (UI:R); scope changes to browser context (S:C); XSS yields limited confidentiality and integrity impact only.

3.1 AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
A
Scope
X

Lifecycle Timeline

3
Source Code Evidence Fetched
Aug 23, 2026 - 14:16 vuln.today
Analysis Generated
Aug 23, 2026 - 14:16 vuln.today
Patch available
Aug 23, 2026 - 14:01 EUVD

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 1 pypi packages depend on justhtml (1 direct, 0 indirect)

Ecosystem-wide dependent count for version 1.13.0.

DescriptionCVE.org

justhtml versions before 1.13.0 contain a cross-site scripting vulnerability in the to_markdown() function when serializing attacker-controlled pre content. Attackers can place backticks inside sanitized pre elements to break out of fixed-length code fences, allowing raw HTML to execute when the generated Markdown is rendered by CommonMark or GFM-style renderers.

AnalysisAI

Cross-site scripting in justhtml versions before 1.13.0 allows attackers who control <pre> element content to break out of fixed-length Markdown code fences and inject raw HTML into the serialized output. When an application passes attacker-supplied HTML through JustHTML(..., sanitize=True).to_markdown() and a downstream CommonMark or GFM renderer processes the result with raw-HTML enabled, the injected script executes in the victim's browser. …

Unlock full vulnerability intelligence

  • Risk assessment & exploitation conditions
  • Attack chain visualization
  • Remediation with exact patch versions
  • Threat intelligence from 22 sources
  • Personal watchlist & email alerts

Free forever · No credit card required

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata

Access
Craft HTML with backtick-laden pre element
Delivery
Application calls to_markdown() on user input
Exploit
Fixed three-backtick fence broken by backtick run
Execution
Decoded HTML entities escape code fence as raw HTML
Persist
Victim views page rendered by CommonMark/GFM renderer
Impact
XSS payload executes in victim browser

Vulnerability AssessmentAI

Exploitation Exploitation requires three chained conditions: (1) the application passes attacker-controlled HTML that includes `<pre>` elements to `JustHTML(..., sanitize=True).to_markdown()` - applications that only call `to_html()` are unaffected; (2) the attacker can embed a backtick run of three or more characters and HTML-entity-encoded tags inside the `<pre>` element; and (3) the resulting Markdown output is rendered by a CommonMark- or GFM-compatible renderer that permits raw HTML passthrough (e.g., GitHub Flavored Markdown in permissive mode, marked.js with `sanitize: false`). … Additional conditions and limiting factors are described in the full assessment.
Risk Assessment The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N, score 5.1) accurately reflects the multi-hop nature of this vulnerability: impact is limited to the subsequent system (browser/renderer) and requires active user interaction to render the crafted Markdown. … Full risk analysis with EPSS, KEV, and SSVC signal comparison available after sign-in.
Exploit Scenario An attacker submits a comment or document containing `<pre>&#96;&#96;&#96; &lt;img src=x onerror=alert(document.cookie)&gt;</pre>` to an application that processes user HTML through `JustHTML(..., sanitize=True).to_markdown()` and then displays the result in a web page via a CommonMark renderer. The fixed ``` delimiter is broken by the backtick run, placing the decoded `<img>` tag outside the code fence; when a victim views the page, the `onerror` handler fires and the attacker's script executes. …
Remediation Upgrade justhtml to version 1.13.0 or later via `pip install --upgrade justhtml`; the fix is confirmed in patch commit f35f8f723c713bd8f912d86e9ec6881275ff5af9 (https://github.com/EmilStenstrom/justhtml/commit/f35f8f723c713bd8f912d86e9ec6881275ff5af9). … Detailed patch versions, workarounds, and compensating controls in full report.

Threat intelligence, references, and detailed analysis are available after sign-in.

CVE-2026-9769 HIGH POC
8.7 Aug 23

Uncontrolled recursion in the justhtml Python HTML parsing library (all versions through 1.9.1) allows any remote unauth

CVE-2026-8445 CRITICAL
9.3 Aug 23

Sanitizer bypass in the justhtml Python library (versions <= 1.11.0) allows attacker-controlled input to survive as raw

CVE-2026-7808 CRITICAL
9.3 Aug 23

Cross-site scripting via HTML sanitization bypass affects justhtml (a Python HTML parsing/sanitization library by EmilSt

CVE-2026-5388 CRITICAL
9.3 Aug 23

Sanitization bypass in justhtml (a Python HTML/Markdown sanitization library) before 1.15.0 lets attacker-controlled inp

CVE-2026-4671 HIGH
8.7 Aug 23

Uncontrolled resource consumption in justhtml before 1.18.0 enables denial-of-service conditions through CPU and memory

CVE-2026-77088 MEDIUM
5.3 Aug 23

Cross-site scripting in justhtml 0.9.0-1.21.0 allows an attacker who can control the text content of HTML code or pre el

CVE-2026-74793 MEDIUM
5.1 Aug 23

Cross-site scripting in justhtml before 3.11.0 allows remote unauthenticated attackers to execute arbitrary JavaScript i

CVE-2026-8630 MEDIUM
5.1 Aug 23

Mutation XSS in justhtml (versions ≤1.11.0) allows injection of arbitrary HTML into serialized output when applications

CVE-2026-5751 MEDIUM
5.1 Aug 23

Mutation XSS (mXSS) in justhtml 1.13.0 and earlier enables markup injection bypass against applications using non-defaul

CVE-2026-6827 MEDIUM
5.1 Aug 23

Sanitization bypass in justhtml (Python HTML sanitization library) before version 1.17.0 enables cross-site scripting in

Share

EUVD-2026-64653 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy