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-6827: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') in EmilStenstrom justhtml

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

Description

CVE-2026-6827 is a medium severity cross-site scripting (XSS) vulnerability in EmilStenstrom justhtml before version 1.17.0. It involves improper neutralization of input during web page generation, particularly when custom policies preserve foreign namespaces like SVG and MathML. This can allow dangerous content to survive sanitization and become active HTML after reparsing. The vulnerability affects advanced or custom configurations rather than the default safe sanitization path. No official patch or remediation guidance is currently confirmed.

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.17.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:52 UTC

Technical Analysis

justhtml versions prior to 1.17.0 contain multiple security issues related to sanitization, serialization, and programmatic DOM handling. When custom policies preserve foreign namespaces such as SVG and MathML, dangerous HTML integration points (e.g., SVG <foreignObject>, MathML <annotation-xml encoding="text/html">) and mutation-XSS parser-differential payloads can bypass sanitization and become active HTML after reparsing. Additionally, SVG filter="url(...)" and preserved <style> elements may allow resource-loading CSS via @import or background-image:url(). Programmatic script, style, and Comment nodes may serialize into active markup. Other hardening fixes address sanitize-pipeline cache mutation and DOM parent/child cycles that could cause infinite loops. Most issues impact advanced or custom configurations rather than the default JustHTML(..., sanitize=True) safe path.

Potential Impact

The vulnerability allows potentially malicious content to bypass sanitization and execute as active HTML, leading to cross-site scripting (XSS) attacks. This could enable attackers to execute scripts in the context of the affected application, potentially leading to data theft, session hijacking, or other client-side impacts. However, the issues mainly affect advanced or custom sanitization policies rather than default safe configurations.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Users should avoid using advanced or custom sanitization policies that preserve foreign namespaces until a fix is available. Using the default JustHTML(..., sanitize=True) configuration is safer as most issues do not affect this path.

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-04-21T20:44:33.519Z
Cvss Version
4.0
State
PUBLISHED
Remediation Level
null

Threat ID: 6a8afb27acd9273b49f5f727

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

Last enriched: 08/23/2026, 14:07:52 UTC

Last updated: 08/23/2026, 17:14:07 UTC

Views: 8

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