CVE-2026-102342

published 13 Oct 2026 · updated 15 Oct 2026

ammonia allows stored XSS through unsanitized SVG animate and set attributes

5.4MediumCVSS 5.4EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. No fixed version is recorded.

ammonia is a Rust library for repairing and securing untrusted HTML. Prior to 3.3.3, 4.0.3, and 4.1.4, applications that allow the SVG animate or set elements can retain an animation whose attributeName targets href and whose value uses the javascript scheme. The sanitized SVG can therefore create a script-bearing link, and a user who clicks the link can execute attacker-controlled script in the application's origin, enabling stored cross-site scripting. This issue is fixed in versions 3.3.3, 4.0.3, and 4.1.4.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
rust-ammonia<3.3.3, >=4.0.0 <4.0.3, >=4.1.2 <4.1.4

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-102342 severity on Zeptric[![CVE-2026-102342](https://zeptric.io/badge/cve/CVE-2026-102342.svg)](https://zeptric.io/cve/CVE-2026-102342)