Skip to main content
EPSS 0.3%top 84%

CVE-2026-8630: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in EmilStenstrom justhtml

0
Medium
VulnerabilityCVE-2026-8630cvecve-2026-8630
Published: 08/23/2026 (08/23/2026, 13:34:14 UTC)
Source: CVE Database V5
Vendor/Project: EmilStenstrom
Product: justhtml

Description

justhtml versions before 1.12.0 contain a mutation cross-site scripting (mXSS) vulnerability in the serialization of raw-text elements like <style> and <script>. This occurs when a custom sanitization policy that retains these elements is used, allowing attacker-controlled text to break out of the raw-text context and inject arbitrary HTML. The default sanitization policy is not affected as it removes the contents of style and script elements.

CVSS v4.0

Score 5.1medium

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
Active
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
None
Subsq. Confidentiality
Low
Subsq. Integrity
Low
Subsq. Availability
None
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N

Affected software

EmilStenstrom

justhtml

Affected versions
>=0 <1.12.0
GitHub Actionsmore threats →ai
emilstenstrom/justhtml
pkg:github/emilstenstrom/justhtml
Affected versions
<=1.11.0

Run 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

AILast updated: 09/10/2026, 23:18:58 UTC

Technical Analysis

CVE-2026-8630 is a mutation cross-site scripting vulnerability in justhtml prior to version 1.12.0 (<=1.11.0). The flaw arises during serialization of raw-text elements such as <style> and <script> when sanitize_dom() is used with a custom policy that preserves 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 not vulnerable because it drops the contents of style and script elements, preventing this injection.

Potential Impact

An attacker can exploit this vulnerability to inject arbitrary HTML into the serialized output when a custom sanitization policy that retains <style> or <script> elements is used. This could lead to cross-site scripting attacks if the serialized output is rendered in a browser context. The default sanitization policy is not affected, so only users employing custom policies that keep these raw-text elements are at risk.

Mitigation Recommendations

Upgrade justhtml to version 1.12.0 or later where this vulnerability is fixed. If upgrading is not immediately possible, avoid using custom sanitization policies that retain <style> or <script> elements, or ensure that text nodes inside these elements are properly escaped during serialization. Patch status is not explicitly confirmed in the input data, but the presence of a fixed version 1.12.0 indicates an official fix is available.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
VulnCheck
Date Reserved
2026-05-14T18:57:10.898Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 6a8afb28acd9273b49f5f731

Added to database: 08/23/2026, 13:52:40 UTC

Last enriched: 09/10/2026, 23:18:58 UTC

Last updated: 10/06/2026, 06:48:21 UTC

Views: 150

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses