# CVE-2026-74793: justhtml before 3.11.0 XSS via selectedcontent projection

- Severity: Medium 5.1 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.25%, higher than 17% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-08-23T13:34:11.936Z
- Modified: 2026-10-12T16:10:00.220Z
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- EmilStenstrom justhtml: before 3.11.0 (not affected: 3.11.0)

## Every score

- VulnCheck: CVSS:4.0 5.1 Medium `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: CVSS:3.1 6.1 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N`

## 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

- CVE List: [CVE-2026-74793](https://www.cve.org/CVERecord?id=CVE-2026-74793), CVE Terms of Use, modified 2026-08-24
- NVD: [CVE-2026-74793](https://nvd.nist.gov/vuln/detail/CVE-2026-74793), Public domain, modified 2026-10-12

---

Page: https://cve.day/CVE-2026-74793 · Whole record: https://cve.day/CVE-2026-74793.json · Rebuilt by cve.day 2026-11-25T22:59:34.968Z
