CVE-2026-102342
MEDIUM 5.4CVSS 3.1Ammonia: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
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.
- Published
- 13 Oct 2026
- Last modified
- 16 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-79
- Also known as
- GHSA-m6mh-2hw2-555xRUSTSEC-2026-0213
- Sources
- NVDJSONOSV GHSA-m6mh-2hw2-555xJSONOSV RUSTSEC-2026-0213JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| OSV | GitHub | CVSS 3.1 | MEDIUM 5.4 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | crates.io | ammonia | < 3.3.3 | 3.3.3 |
| OSV | crates.io | ammonia | >= 4.0.0, < 4.0.3 | 4.0.3 |
| OSV | crates.io | ammonia | >= 4.1.2, < 4.1.4 | 4.1.4 |
| OSV | crates.io | ammonia | >= 0.0.0-0, < 3.3.3; >= 4.0.0, < 4.0.3; >= 4.1.0, < 4.1.4 | 3.3.3, 4.0.3, 4.1.4 |
References
- https://github.com/rust-ammonia/ammonia/commit/9394bd81179e756cb911314deabd943f1a9c8989 · WEB
- https://github.com/rust-ammonia/ammonia/commit/9e3335e2dd8ab07346ff7997f20662a3da4023f6 · WEB
- https://github.com/rust-ammonia/ammonia/commit/d2ae1547f478bd84d158bc5e57f5d31437dc4d8d · WEB
- https://github.com/rust-ammonia/ammonia/pull/250 · WEB
- https://github.com/rust-ammonia/ammonia/pull/251 · WEB
- https://github.com/rust-ammonia/ammonia/pull/252 · WEB
- 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
- https://github.com/rust-ammonia/ammonia/security/advisories/GHSA-m6mh-2hw2-555x · WEB
- https://github.com/rust-ammonia/ammonia · PACKAGE
- https://rustsec.org/advisories/RUSTSEC-2026-0213.html · WEB, ADVISORY
- https://crates.io/crates/ammonia · PACKAGE
History
- 25 Nov 2026 21:22 UTC · NVD: first stored (published 13 Oct 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 21 Jul 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 29 Sep 2026)