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

Published Aug 23, 2026
·
Updated

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 tomarkdown(). While a small set of Markdown metacharacters are escaped, characters such as < and > are preserved, so untrusted input that is safe in tohtml() — 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.

Affected Software

1 affected component
justhtml/justhtml<=1.11.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade justhtml to a version that resolves this vulnerability.

    Fixed in 1.12.0

Event History

Aug 23, 2026
CVE Published
via MITRE·01:34 PM
Data Sourced
via MITRE·01:34 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·02:16 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which uses are exposed to this issue?

Applications are exposed when they process untrusted HTML with affected justhtml versions, convert it using to_markdown(), and later render the resulting Markdown in a context that permits raw HTML. Input that appears safe in to_html() can become unsafe after this conversion.

2

What attacker-controlled input can trigger the bypass?

An attacker can use angle-bracket HTML embedded in text nodes, including text produced by decoded entities such as &lt;script&gt;. Text originating from RCDATA or RAWTEXT-parsed elements, including title, textarea, noscript, and plaintext, can also be emitted as raw HTML in the Markdown output.

3

Are default escaping protections sufficient?

No. Affected versions escape only a limited set of Markdown metacharacters and preserve HTML-significant characters such as < and >, which allows the generated Markdown to contain raw HTML.

4

What version resolves the issue?

Upgrade to justhtml 1.12.0. Versions 1.11.0 and earlier are affected.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203