CVE-2026-74793

justhtml before 3.11.0 XSS via selectedcontent projection

Published Aug 23, 2026 CVSS 4.0 · 5.1 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

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

Remediation

No solution or workaround provided in the CVE record.

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 available
History
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
First Time appeared Emilstenstrom
Emilstenstrom justhtml
Vendors & Products Emilstenstrom
Emilstenstrom justhtml
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'}

Weaknesses
  • CWE-79

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

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Aug 24, 2026, 6:08 PM
Reserved
Aug 16, 2026, 12:59 PM
Status
Deferred
Published
Aug 23, 2026, 2:16 PM
Modified
Oct 12, 2026, 4:10 PM