CVE-2026-102342
ammonia allows stored XSS through unsanitized SVG animate and set attributes
CVSS Score
5.4
EPSS Score
0.0%
EPSS Percentile
0th
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.
| CWE | CWE-79 |
| Vendor | rust-ammonia |
| Product | ammonia |
| Published | Oct 13, 2026 |
Stay Ahead of the Next One
Get instant alerts for rust-ammonia ammonia
Be the first to know when new medium vulnerabilities affecting rust-ammonia ammonia are published โ delivered to Slack, Telegram or Discord.
Get Free Alerts โ
Free ยท No credit card ยท 60 sec setup
CVSS v3 Breakdown
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
Required
Scope
Changed
Confidentiality
Low
Integrity
Low
Availability
None
Affected Versions
rust-ammonia / ammonia
< 3.3.3 >= 4.0.0, < 4.0.3 >= 4.1.2, < 4.1.4
References
github.com: https://github.com/rust-ammonia/ammonia/security/advisories/GHSA-m6mh-2hw2-555x github.com: https://github.com/rust-ammonia/ammonia/pull/250 github.com: https://github.com/rust-ammonia/ammonia/pull/251 github.com: https://github.com/rust-ammonia/ammonia/pull/252 github.com: https://github.com/rust-ammonia/ammonia/commit/9394bd81179e756cb911314deabd943f1a9c8989 github.com: https://github.com/rust-ammonia/ammonia/commit/9e3335e2dd8ab07346ff7997f20662a3da4023f6 github.com: https://github.com/rust-ammonia/ammonia/commit/d2ae1547f478bd84d158bc5e57f5d31437dc4d8d github.com: https://github.com/rust-ammonia/ammonia/releases/tag/v3.3.3 github.com: https://github.com/rust-ammonia/ammonia/releases/tag/v4.0.3 github.com: https://github.com/rust-ammonia/ammonia/releases/tag/v4.1.4