# CVE-2026-8445: justhtml before 1.12.0 Sanitizer Bypass via Markdown

- 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.38%, higher than 34% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-03-18T20:19:56.000Z
- Modified: 2026-10-12T16:10:00.220Z
- Also known as: GHSA-3rcm-vjrc-p45j
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: VulnCheck

## Description

justhtml versions <= 1.11.0 (fixed in 1.12.0) do not sufficiently escape HTML-significant characters (angle brackets) in text nodes when converting a parsed document to Markdown via to_markdown(). While a small set of Markdown metacharacters are escaped, characters such as < and > are preserved, so untrusted input that is safe in to_html() — including entity-decoded text (e.g. &lt;script&gt;) or text from RCDATA/RAWTEXT-parsed elements like <title>, <textarea>, <noscript>, and <plaintext> — can be emitted as raw HTML in the Markdown output, enabling a sanitizer bypass and potential cross-site scripting when that output is rendered.

(As written by CVE List.)

## Affected

- EmilStenstrom justhtml: before 1.12.0 (not affected: 1.12.0)
- justhtml (PyPI): before 1.12.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: CVSS:4.0 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N`

## References

- <https://github.com/EmilStenstrom/justhtml/security/advisories/GHSA-3rcm-vjrc-p45j> (exploit, vendor-advisory, web)
- <https://www.vulncheck.com/advisories/justhtml-before-sanitizer-bypass-via-markdown> (third-party-advisory)
- <https://github.com/EmilStenstrom/justhtml> (package)

## Sources

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

---

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