CVE-2026-102342 json
ammonia allows stored XSS through unsanitized SVG animate and set attributes
published 3mo ago modified 24d ago also EUVD-2026-98766 , GHSA-m6mh-2hw2-555x , RUSTSEC-2026-0213
- cvss
- 5.4
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.3%
- EPSS 0.3% chance of exploitation in 30 days, percentile 19%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- crates.io ammonia 3.3.3, 4.0.3, 4.1.4
- ammonia_project ammonia 3.3.3, 4.0.3, 4.1.4
- rust-ammonia Debian 14 4.1.4-1
debian advisories DEBIAN-CVE-2026-102342
- github.com/rust-ammonia/ammonia@9394bd8 commit
- github.com/rust-ammonia/ammonia@9e3335e commit
- github.com/rust-ammonia/ammonia@d2ae154 commit
- github.com/rust-ammonia/ammonia#250 pull request
- github.com/rust-ammonia/ammonia#251 pull request
- github.com/rust-ammonia/ammonia#252 pull request
- github.com/rust-ammonia/ammonia/releases/tag/v3.3.3 release
- github.com/rust-ammonia/ammonia/releases/tag/v4.0.3 release
- github.com/rust-ammonia/ammonia/releases/tag/v4.1.4 release
Is CVE-2026-102342 in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerVendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2026-102342 updated cvss 5.4
ammonia: ammonia: Stored cross-site scripting via SVG animation elements
-
Red Hat Ansible Automation Orchestrator 2026 ansible-automation-platform/automation-orchestrator-backend-rhel9 Red Hat Ansible Automation Platform 2 python3.12-nh3 0.3.6-1.el9ap, python3.11-nh3 0.2.18-1.el9ap, ansible-automation-platform-26/hub-rhel9, ansible-automation-platform-26/controller-rhel9 Red Hat Enterprise Linux 8 rls, rust, cargo, clippy, rustfmt, rust-gdb, +8 more Red Hat Enterprise Linux 9 rust, cargo, clippy, rustfmt, rust-gdb, rust-src, +9 more Red Hat Enterprise Linux 10 rust 1.84.1-1.el10_0.4 Red Hat Satellite 6 python3.12-nh3 0.3.6-1.el9apaffected: workaround, no fix available “Fix deferred”
-
Red Hat Ansible Automation Platform 2 ansible-automation-platform-27/hub-rhel9, ansible-automation-platform-26/gateway-rhel9, ansible-automation-platform-27/gateway-rhel9, ansible-automation-platform-27/controller-rhel9, ansible-automation-platform-26/eda-controller-rhel9, ansible-automation-platform-27/eda-controller-rhel9, +3 morenot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- no
- Technical impact
- partial
- Assessed
- 27d ago
Exploit prediction
0.27% chance of exploitation in the next 30 days, higher than 19% of all scored CVEs (FIRST EPSS, 2026-11-09).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| GitHub | 3.1 | 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| crates.io | ammonia | <3.3.3 >=4.0.0, <4.0.3 >=4.1.2, <4.1.4 >=0.0.0-0, <3.3.3 >=4.1.0, <4.1.4 |
3.3.3 4.0.3 4.1.4 |
Affected products
- rust-ammonia ammonia
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
References
-
github.com
/rust-ammonia/ammonia/pull/250
web
-
github.com
/rust-ammonia/ammonia/pull/251
web
-
github.com
/rust-ammonia/ammonia/pull/252
web
-
github.com
/rust-ammonia/ammonia/commit/9394bd81179e756cb911314deabd943f1a9c8989
web
-
github.com
/rust-ammonia/ammonia/commit/9e3335e2dd8ab07346ff7997f20662a3da4023f6
web
-
github.com
/rust-ammonia/ammonia/commit/d2ae1547f478bd84d158bc5e57f5d31437dc4d8d
web
-
github.com
/rust-ammonia/ammonia/security/advisories/GHSA-m6mh-2hw2-555x
web
- github.com /rust-ammonia/ammonia/releases/tag/v3.3.3
- github.com /rust-ammonia/ammonia/releases/tag/v4.0.3
- github.com /rust-ammonia/ammonia/releases/tag/v4.1.4
-
github.com
/rust-ammonia/ammonia
package
-
rustsec.org
/advisories/RUSTSEC-2026-0213.html
web, advisory
-
crates.io
/crates/ammonia
package
Sources
- CVE List CVE-2026-102342
- GitHub Advisory GHSA-m6mh-2hw2-555x
- NVD CVE-2026-102342
- OSV RUSTSEC-2026-0213
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.