Vulnerability · Published Oct 13, 2026 · Assigned by GitHub_M

CVE-2026-102342ammonia allows stored XSS through unsanitized SVG animate and set attributes

Medium 5.4

In plain English

A medium-severity cross-site scripting in ammonia from rust-ammonia. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.3% (higher than 20% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.4Medium
Exploit odds (30 days)0.3%top 80.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12rust-ammoniano fix listedDEBIAN-CVE-2026-102342
Debian:13rust-ammoniano fix listedDEBIAN-CVE-2026-102342
Debian:14rust-ammonia4.1.4-1DEBIAN-CVE-2026-102342
Ubuntu:22.04:LTSrust-ammoniano fix listedUBUNTU-CVE-2026-102342
Ubuntu:24.04:LTSrust-ammoniano fix listedUBUNTU-CVE-2026-102342
Ubuntu:26.04:LTSrust-ammoniano fix listedUBUNTU-CVE-2026-102342
Ubuntu:26.10rust-ammoniano fix listedUBUNTU-CVE-2026-102342

Affected products (as reported)

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

Weakness: CWE-79 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N

References