# CVE-2026-5388: justhtml before 1.15.0 Multiple Security Issues

- Severity: Critical 9.3 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.34%, higher than 30% of CVEs (2026-12-01)
- Published: 2026-04-10T19:20:04.000Z
- Modified: 2026-10-12T16:10:00.220Z
- Also known as: GHSA-c9vm-hv86-f23r
- Weaknesses: CWE-20, CWE-79, CWE-178, CWE-755
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- EmilStenstrom justhtml: before 1.15.0 (not affected: 1.15.0)
- justhtml (PyPI): before 1.15.0

## Every score

- VulnCheck: CVSS:4.0 9.3 Critical `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`
- VulnCheck: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: rating Medium

## References

- <https://github.com/EmilStenstrom/justhtml/security/advisories/GHSA-c9vm-hv86-f23r> (vendor-advisory, web)
- <https://www.vulncheck.com/advisories/justhtml-before-multiple-security-issues> (third-party-advisory)
- <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)

## Sources

- CVE List: [CVE-2026-5388](https://www.cve.org/CVERecord?id=CVE-2026-5388), CVE Terms of Use, modified 2026-08-26
- GitHub Advisory Database: [GHSA-c9vm-hv86-f23r](https://github.com/advisories/GHSA-c9vm-hv86-f23r), CC-BY-4.0, modified 2026-08-24
- NVD: [CVE-2026-5388](https://nvd.nist.gov/vuln/detail/CVE-2026-5388), Public domain, modified 2026-10-12

---

Page: https://cve.day/CVE-2026-5388 · Whole record: https://cve.day/CVE-2026-5388.json · Rebuilt by cve.day 2026-11-25T22:59:34.966Z
