Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

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 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

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

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: 08/23/2026, 14:07:36 UTC

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.

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
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 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