CVE-2026-8630: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in EmilStenstrom justhtml
justhtml versions up to 1.11.0 contain a mutation cross-site scripting (mXSS) vulnerability in the serialization of raw-text elements like <style> and <script>. This occurs when using a custom sanitization policy that retains these elements, allowing attacker-controlled text to inject arbitrary HTML. The default sanitization policy is not affected as it removes the contents of these elements.
AI Analysis
Technical Summary
CVE-2026-8630 is a mutation cross-site scripting vulnerability in EmilStenstrom justhtml before version 1.12.0. The flaw arises during the serialization of raw-text elements such as <style> and <script> when processed by sanitize_dom() with a custom policy that keeps these elements. Text nodes inside these elements are serialized literally without escaping, enabling an attacker to inject arbitrary HTML by including matching closing tag sequences in the input. The default sanitization policy is unaffected because it drops the contents of style and script elements.
Potential Impact
An attacker can exploit this vulnerability to inject arbitrary HTML into the serialized output when a custom sanitization policy that preserves <style> or <script> elements is used. This can lead to cross-site scripting attacks, potentially allowing execution of malicious scripts in the context of the affected application. The default policy is not vulnerable, limiting exposure to configurations using custom policies.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid using custom sanitization policies that retain <style> or <script> elements in justhtml. Prefer the default sanitization policy which drops the contents of these elements to prevent exploitation.
CVE-2026-8630: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in EmilStenstrom justhtml
Description
justhtml versions up to 1.11.0 contain a mutation cross-site scripting (mXSS) vulnerability in the serialization of raw-text elements like <style> and <script>. This occurs when using a custom sanitization policy that retains these elements, allowing attacker-controlled text to inject arbitrary HTML. The default sanitization policy is not affected as it removes the contents of these elements.
CVSS v4.0
Score 5.1medium
Affected software
pkg:github/emilstenstrom/justhtmlRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
CVE-2026-8630 is a mutation cross-site scripting vulnerability in EmilStenstrom justhtml before version 1.12.0. The flaw arises during the serialization of raw-text elements such as <style> and <script> when processed by sanitize_dom() with a custom policy that keeps these elements. Text nodes inside these elements are serialized literally without escaping, enabling an attacker to inject arbitrary HTML by including matching closing tag sequences in the input. The default sanitization policy is unaffected because it drops the contents of style and script elements.
Potential Impact
An attacker can exploit this vulnerability to inject arbitrary HTML into the serialized output when a custom sanitization policy that preserves <style> or <script> elements is used. This can lead to cross-site scripting attacks, potentially allowing execution of malicious scripts in the context of the affected application. The default policy is not vulnerable, limiting exposure to configurations using custom policies.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, avoid using custom sanitization policies that retain <style> or <script> elements in justhtml. Prefer the default sanitization policy which drops the contents of these elements to prevent exploitation.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-05-14T18:57:10.898Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a8afb28acd9273b49f5f731
Added to database: 08/23/2026, 13:52:40 UTC
Last enriched: 08/23/2026, 14:07:36 UTC
Last updated: 08/23/2026, 16:44:42 UTC
Views: 7
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.