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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | rust-ammonia | no fix listed | DEBIAN-CVE-2026-102342 |
| Debian:13 | rust-ammonia | no fix listed | DEBIAN-CVE-2026-102342 |
| Debian:14 | rust-ammonia | 4.1.4-1 | DEBIAN-CVE-2026-102342 |
| Ubuntu:22.04:LTS | rust-ammonia | no fix listed | UBUNTU-CVE-2026-102342 |
| Ubuntu:24.04:LTS | rust-ammonia | no fix listed | UBUNTU-CVE-2026-102342 |
| Ubuntu:26.04:LTS | rust-ammonia | no fix listed | UBUNTU-CVE-2026-102342 |
| Ubuntu:26.10 | rust-ammonia | no fix listed | UBUNTU-CVE-2026-102342 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| 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
- https://github.com/rust-ammonia/ammonia/security/advisories/GHSA-m6mh-2hw2-555x x_refsource_CONFIRM
- https://github.com/rust-ammonia/ammonia/pull/250 x_refsource_MISC
- https://github.com/rust-ammonia/ammonia/pull/251 x_refsource_MISC
- https://github.com/rust-ammonia/ammonia/pull/252 x_refsource_MISC
- https://github.com/rust-ammonia/ammonia/commit/9394bd81179e756cb911314deabd943f1a9c8989 x_refsource_MISC
- https://github.com/rust-ammonia/ammonia/commit/9e3335e2dd8ab07346ff7997f20662a3da4023f6 x_refsource_MISC
- https://github.com/rust-ammonia/ammonia/commit/d2ae1547f478bd84d158bc5e57f5d31437dc4d8d x_refsource_MISC
- https://github.com/rust-ammonia/ammonia/releases/tag/v3.3.3 x_refsource_MISC
- https://github.com/rust-ammonia/ammonia/releases/tag/v4.0.3 x_refsource_MISC
- https://github.com/rust-ammonia/ammonia/releases/tag/v4.1.4 x_refsource_MISC