CVE-2026-5388

Published Aug 23, 2026

Last updated 20 hours ago

Overview

AI description

Automated description summarized from trusted sources.

CVE-2026-5388 identifies multiple security vulnerabilities within the `justhtml` library, specifically in versions prior to 1.15.0. These issues are primarily found in URL sanitization helpers, HTML serialization, and Markdown passthrough functionalities when `html_passthrough=True` is enabled, as well as in several edge cases related to custom sanitization policies. An attacker can exploit these flaws to bypass existing sanitization mechanisms and inject active HTML and JavaScript code. This can be achieved through various methods, including encoded `javascript:` URLs, backslash-based relative URLs that are resolved as remote hosts, programmatic element/attribute names or HTML comments that break markup, reintroduction of raw `</textarea>` tags via Markdown passthrough, or by preserving `<style>`, `<meta http-equiv=refresh>`, or `<base href>` tags within custom policies. It is important to note that most of these custom-policy related issues do not impact the default `sanitize=True` configuration, but rather affect helper APIs, programmatic DOM construction, and custom policies/transform pipelines.

Description
justhtml before 1.15.0 contains multiple security issues in URL sanitization helpers (clean_url_value/clean_url_in_js_string), HTML serialization, Markdown passthrough (html_passthrough=True), and several custom sanitization-policy edge cases. Depending on configuration, an attacker can bypass sanitization to inject active HTML and JavaScript — for example via encoded javascript: URLs, backslash-based relative URLs resolved as remote hosts, markup-breaking programmatic element/attribute names or HTML comments, raw </textarea> reintroduction through Markdown passthrough, or preserved <style>/<meta http-equiv=refresh>/<base href> tags in custom policies. Most custom-policy issues do not affect the default sanitize=True configuration; they primarily affect helper APIs, programmatic DOM construction, html_passthrough=True, and custom policies/transform pipelines.
Source
disclosure@vulncheck.com
NVD status
Received

Risk scores

CVSS 4.0

Type
Secondary
Base score
9.3
Impact score
-
Exploitability score
-
Vector string
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/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
Severity
CRITICAL

CVSS 3.1

Type
Primary
Base score
9.8
Impact score
5.9
Exploitability score
3.9
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Severity
CRITICAL

Weaknesses

disclosure@vulncheck.com
CWE-20

Social media

Hype score is a measure of social media activity compared against trending CVEs from the past 12 months. Max score 100.

Hype score

3