CVE-2026-102342: XSS

Published Sep 29, 2026
·
Updated

The following SVG will produce a link with a javascript scheme. If the user clicks this link, they will run it.

svg <svg xmlns="http://www.w3.org/2000/svg"> <a> <set attributeName="href" to="javascript:alert('SETXSS')"></set> <text y="30">Click set</text> </a> </svg>

Impact

Allows stored XSS in applications that allow the animate and set tags.

Patches

Fixed in 3.3.3, 4.0.3, and 4.1.4

Workarounds

Do not enable the animate or set tags.

Affected Software

3 affected componentsFixes available
rust/ammonia>=4.1.2<=4.1.3
4.1.4
rust/ammonia>=4.0.0<=4.0.2
4.0.3
rust/ammonia<3.3.2
3.3.3

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade rust/ammonia to a version that resolves this vulnerability.

    Fixed in 4.1.4
  2. Upgrade

    Upgrade rust/ammonia to a version that resolves this vulnerability.

    Fixed in 4.0.3
  3. Upgrade

    Upgrade rust/ammonia to a version that resolves this vulnerability.

    Fixed in 3.3.3
  4. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 3.3.3
  5. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 4.0.3
  6. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 4.1.4
  7. Configuration

    Do not enable the animate or set tags.

    animate and set tags = disabled

Event History

Sep 29, 2026
Advisory Published
via GitHub·11:09 PM
Data Sourced
via GitHub·11:09 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

Which deployments are exposed to this issue?

Applications using rust/ammonia are exposed when they allow attacker-controlled SVG content and have the SVG animate or set tags enabled. The impact is stored XSS through an SVG link whose href is set to a javascript scheme.

2

What must an attacker and victim do for exploitation to succeed?

An attacker must be able to store SVG content containing a set element that assigns a javascript URL to a link. A user must then click the resulting link for the JavaScript to run.

3

Which versions contain fixes?

The issue is fixed in versions 3.3.3, 4.0.3, and 4.1.4.

4

What can be done if upgrading is not immediately possible?

Do not enable the animate or set SVG tags. This removes the tag capability required by the described exploit.

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