Description
justhtml before 3.11.0 contains a cross-site scripting vulnerability where the default sanitizer bypasses event handler removal in selectedcontent projections. Attackers can inject SVG or MathML elements with event handlers that are cloned and reinserted into output without sanitization, enabling stored or reflected XSS attacks.
Published: 2026-08-23
Score: 5.1 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Stored or Reflected Cross‑Site Scripting
Action: Patch Immediately
AI Analysis

Impact

The vulnerability is a cross‑site scripting flaw in versions of justhtml before 3.11.0. The library’s default sanitizer accidentally allows event handlers on SVG or MathML elements to survive the selectedcontent projection, so attackers can inject malicious code that is later rendered and executed. This enables stored or reflected XSS, letting a threat actor run arbitrary JavaScript in the victim’s browser, compromising confidentiality, integrity, and potentially the availability of the web application.

Affected Systems

The affected product is justhtml, developed by Emil Stenstrom. All releases prior to 3.11.0 are vulnerable because the default configuration does not strip event handlers from selectedcontent projections. Upgrade notes are not included in the data, but the advisory indicates the issue applies to any version before the 3.11.0 release.

Risk and Exploitability

The CVSS score of 5.1 classifies the flaw as medium severity. No EPSS score is available, so the current exploitation probability cannot be quantified. The vulnerability is not listed in the CISA KEV catalog. Attackers would need a way to inject crafted SVG/MathML into content that passes through the sanitizer’s selectedcontent projection. The likely vector is a web interface that accepts user supplied content; detection would be possible with proper sanitation or path filtering.

Generated by OpenCVE AI on August 23, 2026 at 15:06 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade justhtml to version 3.11.0 or newer.
  • If an upgrade is not possible, configure the sanitizer to explicitly remove event handlers or disable selectedcontent projections.
  • Perform a code review or automated scan to identify any injected SVG/MathML elements and confirm they are properly sanitized.

Generated by OpenCVE AI on August 23, 2026 at 15:06 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 24 Aug 2026 19:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Sun, 23 Aug 2026 16:45:00 +0000

Type Values Removed Values Added
First Time appeared Emilstenstrom
Emilstenstrom justhtml
Vendors & Products Emilstenstrom
Emilstenstrom justhtml

Sun, 23 Aug 2026 14:00:00 +0000

Type Values Removed Values Added
Description justhtml before 3.11.0 contains a cross-site scripting vulnerability where the default sanitizer bypasses event handler removal in selectedcontent projections. Attackers can inject SVG or MathML elements with event handlers that are cloned and reinserted into output without sanitization, enabling stored or reflected XSS attacks.
Title justhtml before 3.11.0 XSS via selectedcontent projection
Weaknesses CWE-79
References
Metrics cvssV3_1

{'score': 6.1, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N'}

cvssV4_0

{'score': 5.1, 'vector': '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'}


Subscriptions

Emilstenstrom Justhtml
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-24T18:08:10.972Z

Reserved: 2026-08-16T12:59:42.222Z

Link: CVE-2026-74793

cve-icon Vulnrichment

Updated: 2026-08-24T18:07:32.622Z

cve-icon NVD

Status : Deferred

Published: 2026-08-23T14:16:54.127

Modified: 2026-08-26T17:10:53.700

Link: CVE-2026-74793

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-23T16:39:40Z

Weaknesses
  • CWE-79

    Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')