Medium severity5.4NVD Advisory· Published Oct 13, 2026· Updated Oct 16, 2026
CVE-2026-102342
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.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected packages
Versions sourced from the GitHub Security Advisory.
| Package | Affected versions | Patched versions |
|---|---|---|
ammoniacrates.io | < 3.3.3 | 3.3.3 |
ammoniacrates.io | >= 4.0.0, < 4.0.3 | 4.0.3 |
ammoniacrates.io | >= 4.1.2, < 4.1.4 | 4.1.4 |
Affected products
1- Range: before 3.3.3, 4.0.3, and 4.1.4
Patches
Vulnerability mechanics
References
12- github.com/advisories/GHSA-m6mh-2hw2-555xghsaADVISORY
- github.com/rust-ammonia/ammonia/commit/9394bd81179e756cb911314deabd943f1a9c8989nvdWEB
- github.com/rust-ammonia/ammonia/commit/9e3335e2dd8ab07346ff7997f20662a3da4023f6nvdWEB
- github.com/rust-ammonia/ammonia/commit/d2ae1547f478bd84d158bc5e57f5d31437dc4d8dnvdWEB
- github.com/rust-ammonia/ammonia/pull/250nvdWEB
- github.com/rust-ammonia/ammonia/pull/251nvdWEB
- github.com/rust-ammonia/ammonia/pull/252nvdWEB
- github.com/rust-ammonia/ammonia/security/advisories/GHSA-m6mh-2hw2-555xnvdWEB
- rustsec.org/advisories/RUSTSEC-2026-0213.htmlghsaWEB
- github.com/rust-ammonia/ammonia/releases/tag/v3.3.3nvd
- github.com/rust-ammonia/ammonia/releases/tag/v4.0.3nvd
- github.com/rust-ammonia/ammonia/releases/tag/v4.1.4nvd
News mentions
0No linked articles in our index yet.