CVE-2026-74793
5.1
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
Summary
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 Software
| Vendor | Product | Version Range | Status |
|---|---|---|---|
| EmilStenstrom | justhtml | 0 < 3.11.0 | affected |
| EmilStenstrom | justhtml | 3.11.0 | unaffected |
Weaknesses
- CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
References
- https://github.com/EmilStenstrom/justhtml/security/advisories/GHSA-gjf2-f4jc-69xf
- https://www.vulncheck.com/advisories/justhtml-before-xss-via-selectedcontent-projection
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.