| Name | CVE-2026-102342 |
| 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. |
| Source | CVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
The table below lists information on source packages.
| Source Package | Release | Version | Status |
|---|---|---|---|
| rust-ammonia (PTS) | bookworm | 3.2.1-1 | vulnerable |
| trixie | 4.0.0-3 | vulnerable | |
| forky, sid | 4.1.4-1 | fixed |
The information below is based on the following data on fixed versions.
| Package | Type | Release | Fixed Version | Urgency | Origin | Debian Bugs |
|---|---|---|---|---|---|---|
| rust-ammonia | source | (unstable) | 4.1.4-1 |
https://github.com/rust-ammonia/ammonia/security/advisories/GHSA-m6mh-2hw2-555x
https://github.com/rust-ammonia/ammonia/pull/250
https://github.com/rust-ammonia/ammonia/pull/251
https://github.com/rust-ammonia/ammonia/commit/9e3335e2dd8ab07346ff7997f20662a3da4023f6 (v4.1.4)
https://github.com/rust-ammonia/ammonia/commit/d2ae1547f478bd84d158bc5e57f5d31437dc4d8d (v4.0.3)