CVE-2026-5388
CRITICAL 9.3CVSS 4.0justhtml includes multiple security fixes
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.
- Published
- 23 Aug 2026
- Last modified
- 12 Oct 2026
- Assigned by
- disclosure@vulncheck.com
- NVD status
- Deferred
- Weakness
- CWE-178CWE-20CWE-755CWE-79
- Also known as
- GHSA-c9vm-hv86-f23r
- Sources
- NVDJSONOSV GHSA-c9vm-hv86-f23rJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | disclosure@vulncheck.com (Secondary) | CVSS 4.0 | CRITICAL 9.3 | 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 |
| NVD | disclosure@vulncheck.com (Secondary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | PyPI | justhtml | < 1.15.0 | 1.15.0 |
References
- https://github.com/EmilStenstrom/justhtml/security/advisories/GHSA-c9vm-hv86-f23r · WEB
- https://www.vulncheck.com/advisories/justhtml-before-multiple-security-issues
- https://github.com/EmilStenstrom/justhtml · PACKAGE
- https://github.com/EmilStenstrom/justhtml/compare/v1.14.0...v1.15.0 · WEB
- https://github.com/EmilStenstrom/justhtml/releases/tag/v1.15.0 · WEB
History
- 25 Nov 2026 21:04 UTC · NVD: first stored (published 23 Aug 2026)
- 25 Nov 2026 20:11 UTC · OSV: first stored (published 10 Apr 2026)