5.1medium
justhtml before 3.11.0 XSS via selectedcontent projection
- Severity
- 5.1medium CVSS:4.0 by VulnCheck
- Exploit likelihood
- 0.29% (higher than 14% of CVEs)
- Published
- Last changed
- Assigned by
- VulnCheck
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| EmilStenstrom justhtml | before 3.11.0 Not affected: 3.11.0 | CVE List |
All scores
| VulnCheck | 5.1medium CVSS:4.0 | 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 |
| VulnCheck | 6.1medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N |
Classification
SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.
What each source says
CVE List
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.
NVD (es)
justhtml anterior a la versión 3.11.0 contiene una vulnerabilidad de cross-site scripting donde el saneador predeterminado omite la eliminación de gestores de eventos en proyecciones de contenido seleccionado. Los atacantes pueden inyectar elementos SVG o MathML con gestores de eventos que son clonados y reinsertados en la salida sin saneamiento, lo que permite ataques XSS almacenados o reflejados.
References
| https://github.com/EmilStenstrom/justhtml/security/advisories/GHSA-gjf2-f4jc-69xf | exploit, vendor-advisory | |
| https://www.vulncheck.com/advisories/justhtml-before-xss-via-selectedcontent-projection | third-party-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-74793 changed 2026-08-24 | CVE Terms of Use |
| NVD | CVE-2026-74793 changed 2026-10-12 | Public domain |