MEDIUM 5.4 GitHub
CVE-2026-102342
Ammonia: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The following SVG will produce a link with a `javascript` scheme. If the user clicks this link, they will run it.
```svg
<svg xmlns="http://www.w3.org/2000/svg">
<a>
<set attributeName="href" to="javascript:alert('SET_XSS')"></set>
<text y="30">Click set</text>
</a>
</svg>
```
### Impact
Allows stored XSS in applications that allow the `animate` and `set` tags.
### Patches
Fixed in 3.3.3, 4.0.3, and 4.1.4
### Workarounds
Do not enable the `animate` or `set` tags.
Affected Products
- rust/ammonia < 3.3.2
- rust/ammonia >= 4.0.0, <= 4.0.2
- rust/ammonia >= 4.1.2, <= 4.1.3
References
- https://github.com/advisories/GHSA-m6mh-2hw2-555x
- https://github.com/rust-ammonia/ammonia/security/advisories/GHSA-m6mh-2hw2-555x
- https://github.com/rust-ammonia/ammonia/pull/250
- https://github.com/rust-ammonia/ammonia/pull/251
This medium severity vulnerability with a CVSS score of 5.4 was published on 2026-09-29 via GitHub. Affected: rust/ammonia < 3.3.2, rust/ammonia >= 4.0.0, <= 4.0.2, rust/ammonia >= 4.1.2, <= 4.1.3.
vulnfeed aggregates 10239 vulnerabilities from NVD, CISA KEV,
Ubuntu, Debian, Red Hat, Kubernetes, Exploit-DB, OSS-Security, GitHub and OpenStack — updated every 4 hours.