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

Published Aug 23, 2026
·
Updated

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

1 affected component
npm/justhtml<3.11.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade justhtml to a version that resolves this vulnerability.

    Fixed in 3.11.0

Event History

Aug 23, 2026
CVE Published
via MITRE·01:34 PM
Data Sourced
via MITRE·01:34 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·02:16 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Which deployments are exposed?

Applications using npm/justhtml versions before 3.11.0 are affected when they process attacker-controlled content through selectedcontent projections. The issue occurs with the default sanitizer.

2

What does an attacker need to exploit this?

An attacker needs a way to supply content that the application sanitizes and renders through a selectedcontent projection. They can use SVG or MathML elements containing event handlers, which may be cloned and reinserted without sanitization.

3

How can I determine whether my application is vulnerable?

Check whether your dependency version of npm/justhtml is earlier than 3.11.0. Also review uses of selectedcontent projections that handle untrusted input, especially where SVG or MathML markup could be accepted.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203