CVE-2026-8445 PUBLISHED

justhtml before 1.12.0 Sanitizer Bypass via Markdown

Assigner: VulnCheck
Reserved: 12.05.2026 Published: 23.08.2026 Updated: 23.08.2026

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. <script>) 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.

Metrics

CVSS Vector: 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
CVSS Score: 9.3

Product Status

Vendor EmilStenstrom
Product justhtml
Versions Default: unaffected
  • affected from 0 to 1.12.0 (excl.)
  • Version 1.12.0 is unaffected

Credits

  • kejcao reporter

References

Problem Types

  • Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') CWE