CVE-2026-5388Medium▾ Sunlitjusthtml includes multiple security fixes
▾ Sunlit zone — Low / medium · no exploitation signal
impact 27.5 · likelihood 0.1 · exploitation 0
Need a working PoC? Pro members can cast a request and our team develops one — it lands right here.
Exploit-prediction probability, daily snapshots since Aug 24.
Disclosure to exploitation, from the record and what we observed since indexing it.
Disclosed via OSV
Last analysed / modified upstream
0.3%
justhtml 1.15.0 includes multiple security fixes affecting URL sanitization helpers, HTML serialization, Markdown passthrough, and several custom sanitization-policy edge cases.
These issues have different impact levels and do not all affect the default configuration in the same way.
justhtml <= 1.14.0justhtml 1.15.0 released on April 9, 2026These issues could affect applications using JustHTML helpers or programmatic DOM construction, even outside the default HTML sanitization path.
JustHTML.clean_url_value(...) and clean_url_in_js_string(...) could accept URL values such as javascript:..., which became active javascript: URLs after HTML attribute parsing.\\evil.example/x or /\\evil.example/x as safe relative URLs even though browsers could resolve them as remote requests.https://[evil.example]/x could raise exceptions and crash sanitization when host allowlists were used.--> could break out of the comment and inject live markup.to_markdown(html_passthrough=True) could reintroduce active HTML from sanitized <textarea> content by emitting a raw closing </textarea> sequence.These issues affected custom policies more than the default safe configuration.
a[ping] was handled as a single URL even though browsers interpret it as a space-separated URL list.attributionsrc was not treated as URL-bearing and could preserve attacker-controlled reporting endpoints.link[imagesrcset] was not treated as URL-bearing and could preserve attacker-controlled image candidates.<meta http-equiv="refresh"> tags could keep redirect targets without URL-policy enforcement.<base href> tags could rewrite how later relative URLs resolved in the browser.<style> blocks could keep resource-loading CSS such as @import, url(...), or image-set(...).DropAttrs(...), DropUrlAttrs(...), AllowStyleAttrs(...), and MergeAttrs(...).Most of the custom-policy issues above did not affect the default JustHTML(..., sanitize=True) behavior.
The main exceptions were:
clean_url_value(...)html_passthrough=TrueUpgrade to justhtml 1.15.0.
If you cannot upgrade immediately:
html_passthrough=True for untrusted content<style>, <meta http-equiv="refresh">, and <base href> in custom policiesping, attributionsrc, or imagesrcset unless you explicitly validate themjusthtml < 1.15.0Upgrade to a patched release:
justhtml 1.15.0Connected by shared product, vendor, weakness, or advisory.
CVE-2026-6827Mediumjusthtml has sanitization bypass in custom policies and programmatic DOM
CVE-2026-9769HighUncontrolled recursion DoS in JustHTML() via deeply nested HTML
CVE-2026-4671Lowjusthtml introduces denial-of-service hardening
CVE-2026-5751Lowjusthtml: Mutation XSS with custom foreign-namespace sanitization policies
CVE-2026-8630MediumJustHTML Affected by Mutation XSS via Literal Text Serialization in Raw Text Elements (style/script)
CVE-2026-77088Medium· 6.1justhtml: to_markdown() code-span blank-line breakout enables XSS