CVE-2026-5388
Last modified
CVE-2026-5388 is a critical-severity vulnerability rated 9.8/10 on the CVSS scale. 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. EPSS estimates a 0.34% chance of exploitation in the next 30 days.
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.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| EmilStenstrom | justhtml | < 1.15.0 |
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2026-5388?
How severe is CVE-2026-5388?
How do I fix CVE-2026-5388?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-53873picklescan before 1.0.4 contains an incomplete blocklist for…9.8
- CVE-2026-53874picklescan before 1.0.1 contains an unsafe deserialization v…9.8
- CVE-2026-53875picklescan before 1.0.3 contains a scanning bypass vulnerabi…7.1
- CVE-2026-53876RadiX AX6600 WiFi 6 Tri-Band Gaming Router contains an OS co…8.6
- CVE-2026-53877An issue was discovered in Django 6.0 before 6.0.7 and 5.2 b…6.3
- CVE-2026-53878An issue was discovered in Django 6.0 before 6.0.7 and 5.2 b…6.1
- CVE-2026-5389justhtml versions before 1.13.0 contain a cross-site scripti…6.1
- CVE-2026-53899Firefox for iOS used partial domain matching when attaching …6.5
- CVE-2026-53900Firefox for iOS preserved cookies set on the initial PDF req…4.3
- CVE-2026-53901Cerebrate before version 1.37 contains a mass-assignment vul…8.7
- CVE-2026-53902MCO does not properly enforce authorization checks in the /c…6.5
- CVE-2026-53903MCO is vulnerable to an Insecure Direct Object Reference (ID…8.1
Are you affected by CVE-2026-5388?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
