CVE-2026-102342 ammonia allows stored XSS through unsanitized SVG animate and set attributes
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- UbuntuDebianRed Hat
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.
Upgrade path
19 packages: 2 fixed, 16 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| azure linux rust(Azure Linux 3.0) | All versions | No fix listed | No fix yet |
| debian/rust-ammonia(Debian 12) | = 3.2.1-1; = 3.3.0-1; = 4.0.0-1; = 4.0.0-2 +8 more | No fix listed | No fix yet |
| debian/rust-ammonia(Debian 13) | = 4.0.0-3; = 4.1.1-1; = 4.1.2-1; = 4.1.2-2 +4 more | No fix listed | No fix yet |
| redhat/ansible-automation-platform-26/controller-rhel9(Red Hat ansible_automation_platform 2) | All versions | No fix listed | No fix yet |
| redhat/ansible-automation-platform-26/hub-rhel9(Red Hat ansible_automation_platform 2) | All versions | No fix listed | No fix yet |
| redhat/ansible-automation-platform/automation-orchestrator-backend-rhel9(Red Hat ansible_automation_orchestrator 2026.8) | All versions | No fix listed | No fix yet |
| redhat/python3.11-nh3(Red Hat ansible_automation_platform 2) | All versions | No fix listed | No fix yet |
| redhat/python3.12-nh3(Red Hat ansible_automation_platform 2) | All versions | No fix listed | No fix yet |
| redhat/python3.12-nh3(Red Hat satellite 6) | All versions | No fix listed | No fix yet |
| redhat/rust(Red Hat enterprise_linux 10) | All versions | No fix listed | No fix yet |
| redhat/rust(Red Hat enterprise_linux 9) | All versions | No fix listed | No fix yet |
| redhat/rust-toolset:rhel8/rust(Red Hat enterprise_linux 8) | All versions | No fix listed | No fix yet |
| ubuntu/rust-ammonia(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/rust-ammonia(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/rust-ammonia(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/rust-ammonia(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| crates.io ammonia(crates.io) | < 3.3.2; < 3.3.3; >= 0.0.0-0, < 3.3.3; >= 4.0.0, < 4.0.3 +4 more | 3.3.2, 3.3.3, 4.0.3, 4.1.4 | Fixed |
| debian/rust-ammonia(Debian 14) | < 4.1.4-1; = 4.0.0-3; = 4.1.1-1; = 4.1.2-1 +2 more | 4.1.4-1 | Fixed |
| rust-ammonia ammonia | = < 3.3.3; = >= 4.0.0, < 4.0.3; = >= 4.1.2, < 4.1.4 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| rust-ammonia ammonia | = < 3.3.3 | No fix listed |
| rust-ammonia ammonia | = >= 4.0.0, < 4.0.3 | No fix listed |
| rust-ammonia ammonia | = >= 4.1.2, < 4.1.4 | No fix listed |
| crates.io ammonia(crates.io) | < 3.3.3 | 3.3.3 |
| crates.io ammonia(crates.io) | >= 4.0.0, < 4.0.3 | 4.0.3 |
| crates.io ammonia(crates.io) | >= 4.1.2, < 4.1.4 | 4.1.4 |
| crates.io ammonia(crates.io) | >= 0.0.0-0, < 3.3.3 | 3.3.3 |
| crates.io ammonia(crates.io) | >= 4.1.0, < 4.1.4 | 4.1.4 |
| redhat/ansible-automation-platform/automation-orchestrator-backend-rhel9(Red Hat:ansible_automation_orchestrator:2026.8) | All versions | No fix listed |
| redhat/ansible-automation-platform-26/controller-rhel9(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/ansible-automation-platform-26/hub-rhel9(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/python3.11-nh3(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/python3.12-nh3(Red Hat:ansible_automation_platform:2) | All versions | No fix listed |
| redhat/rust(Red Hat:enterprise_linux:10) | All versions | No fix listed |
| redhat/rust-toolset:rhel8/rust(Red Hat:enterprise_linux:8) | All versions | No fix listed |
| redhat/rust(Red Hat:enterprise_linux:9) | All versions | No fix listed |
| redhat/python3.12-nh3(Red Hat:satellite:6) | All versions | No fix listed |
| debian/rust-ammonia(Debian:12) | All versions | No fix listed |
| debian/rust-ammonia(Debian:12) | = 3.2.1-1 | No fix listed |
| debian/rust-ammonia(Debian:12) | = 3.3.0-1 | No fix listed |
| debian/rust-ammonia(Debian:12) | = 4.0.0-1 | No fix listed |
| debian/rust-ammonia(Debian:12) | = 4.0.0-2 | No fix listed |
| debian/rust-ammonia(Debian:12) | = 4.0.0-3 | No fix listed |
| debian/rust-ammonia(Debian:12) | = 4.1.1-1 | No fix listed |
| debian/rust-ammonia(Debian:12) | = 4.1.2-1 | No fix listed |
Show 26 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/rust-ammonia(Debian:12) | = 4.1.2-2 | No fix listed |
| debian/rust-ammonia(Debian:12) | = 4.1.3-1 | No fix listed |
| debian/rust-ammonia(Debian:12) | = 4.1.4-1 | No fix listed |
| debian/rust-ammonia(Debian:12) | = 4.2.3-1 | No fix listed |
| debian/rust-ammonia(Debian:13) | All versions | No fix listed |
| debian/rust-ammonia(Debian:13) | = 4.0.0-3 | No fix listed |
| debian/rust-ammonia(Debian:13) | = 4.1.1-1 | No fix listed |
| debian/rust-ammonia(Debian:13) | = 4.1.2-1 | No fix listed |
| debian/rust-ammonia(Debian:13) | = 4.1.2-2 | No fix listed |
| debian/rust-ammonia(Debian:13) | = 4.1.3-1 | No fix listed |
| debian/rust-ammonia(Debian:13) | = 4.1.4-1 | No fix listed |
| debian/rust-ammonia(Debian:13) | = 4.2.3-1 | No fix listed |
| debian/rust-ammonia(Debian:14) | < 4.1.4-1 | 4.1.4-1 |
| debian/rust-ammonia(Debian:14) | = 4.0.0-3 | No fix listed |
| debian/rust-ammonia(Debian:14) | = 4.1.1-1 | No fix listed |
| debian/rust-ammonia(Debian:14) | = 4.1.2-1 | No fix listed |
| debian/rust-ammonia(Debian:14) | = 4.1.2-2 | No fix listed |
| debian/rust-ammonia(Debian:14) | = 4.1.3-1 | No fix listed |
| crates.io ammonia(crates.io) | < 3.3.2 | 3.3.2 |
| crates.io ammonia(crates.io) | >= 4.0.0, <= 4.0.2 | No fix listed |
| crates.io ammonia(crates.io) | >= 4.1.2, <= 4.1.3 | No fix listed |
| ubuntu/rust-ammonia(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/rust-ammonia(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/rust-ammonia(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/rust-ammonia(Ubuntu:26.10) | All versions | No fix listed |
| azure linux rust(Azure Linux:3.0) | All versions | No fix listed |
References
- https://github.com/rust-ammonia/ammonia/security/advisories/GHSA-m6mh-2hw2-555x vendor-advisory
- https://github.com/rust-ammonia/ammonia/pull/250 patch
- https://github.com/rust-ammonia/ammonia/pull/251 patch
- https://github.com/rust-ammonia/ammonia/pull/252 patch
- https://github.com/rust-ammonia/ammonia/commit/9394bd81179e756cb911314deabd943f1a9c8989 patch
- https://github.com/rust-ammonia/ammonia/commit/9e3335e2dd8ab07346ff7997f20662a3da4023f6 patch
- https://github.com/rust-ammonia/ammonia/commit/d2ae1547f478bd84d158bc5e57f5d31437dc4d8d patch
- https://github.com/rust-ammonia/ammonia/releases/tag/v3.3.3
- https://github.com/rust-ammonia/ammonia/releases/tag/v4.0.3
- https://github.com/rust-ammonia/ammonia/releases/tag/v4.1.4
- MSRC Security Update Guide vendor-advisory
- Release Notes vendor-advisory
- github.com product
- rustsec.org vendor-advisory
- crates.io product
- Red Hat CVE page mitigation vendor-advisory
- Red Hat Bugzilla 2550595 issue-tracking
- www.cve.org
- nvd.nist.gov
- Debian Security Tracker CVE-2026-102342 vendor-advisory
- github.com
- Ubuntu CVE tracker vendor-advisory
- ENISA EUVD EUVD-2026-98766 third-party-advisory