<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:webfeeds="http://webfeeds.org/rss/1.0"><channel><title>Justhtml (&lt;= 1.11.0) - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/products/justhtml--1.11.0/</link><description>Trending threats, MITRE ATT&amp;CK coverage, and detection metadata. Fed continuously.</description><generator>Hugo</generator><language>en</language><managingEditor>hello@craftedsignal.io</managingEditor><webMaster>hello@craftedsignal.io</webMaster><lastBuildDate>Sun, 23 Aug 2026 15:37:25 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/products/justhtml--1.11.0/feed.xml" rel="self" type="application/rss+xml"/><image><url>https://feed.craftedsignal.io/favicon-32x32.png</url><title>CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/</link><width>32</width><height>32</height></image><webfeeds:icon>https://feed.craftedsignal.io/favicon.svg</webfeeds:icon><item><title>Multiple Sanitization Bypass Vulnerabilities in justhtml Library</title><link>https://feed.craftedsignal.io/briefs/2026-08-justhtml-xss/</link><pubDate>Sun, 23 Aug 2026 15:37:25 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-08-justhtml-xss/</guid><description>The justhtml library before version 1.15.0 contains multiple vulnerabilities in URL sanitization, HTML serialization, and Markdown passthrough that allow attackers to inject malicious HTML and JavaScript.</description><content:encoded><![CDATA[<p>The justhtml library, specifically versions prior to 1.15.0, contains critical security flaws within its URL sanitization helpers (clean_url_value and clean_url_in_js_string), HTML serialization logic, and Markdown passthrough functionality. These vulnerabilities enable attackers to bypass sanitization filters and inject active HTML and JavaScript content.</p>
<p>The attack surface is primarily driven by misconfigurations or the use of helper APIs and custom policy pipelines. Attackers can leverage these flaws through techniques such as encoded javascript: pseudo-protocols, malformed relative URLs resolved as remote hosts, and the injection of prohibited elements like &lt;style&gt;, &lt;meta http-equiv=refresh&gt;, and &lt;base href&gt; tags. While default configurations are safer, users relying on custom sanitization policies, programmatic DOM construction, or the html_passthrough=True parameter are at the highest risk. These flaws effectively undermine the security boundary of the library, potentially leading to Stored or Reflected Cross-Site Scripting (XSS) depending on the integration within downstream applications.</p>
<h2 id="impact">Impact</h2>
<p>Successful exploitation of these vulnerabilities allows for the execution of arbitrary JavaScript within the context of a victim's browser session. Depending on the target application's sensitivity, this can lead to session hijacking, unauthorized actions performed on behalf of the user, or the exfiltration of sensitive data. Because this is a library-level flaw, the impact is highly dependent on how the library is utilized within specific web applications and CMS frameworks. Organizations utilizing justhtml for content sanitization or Markdown processing should assess whether their specific implementation utilizes the affected helper APIs or custom policies.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Upgrade the justhtml library to version 1.15.0 or later to patch these sanitization flaws.</li>
<li>Audit applications using the justhtml library, specifically searching for the use of html_passthrough=True or custom sanitization-policy configurations.</li>
<li>Implement secondary Content Security Policy (CSP) headers to mitigate the impact of potential XSS vulnerabilities in the event of a bypass.</li>
<li>Review existing integration code to ensure that clean_url_value and clean_url_in_js_string are not being misused in contexts where user input can influence the URL scheme or hostname.</li>
</ul>
]]></content:encoded><category domain="severity">critical</category><category domain="type">advisory</category><category>xss</category><category>injection</category><category>library-vulnerability</category></item></channel></rss>