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.
Severity (CVSS)
| Base score | 5.4 |
|---|---|
| Severity | Medium |
| Version | CVSS 3.1 |
| Vector | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| Provided by | CNA |
Weaknesses
- CWE-79 — CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected products
| Vendor | Product | Versions |
|---|---|---|
| rust-ammonia | ammonia | < 3.3.3 [affected]; >= 4.0.0, < 4.0.3 [affected]; >= 4.1.2, < 4.1.4 [affected] |
References
- https://github.com/rust-ammonia/ammonia/security/advisories/GHSA-m6mh-2hw2-555x (x_refsource_CONFIRM)
- https://github.com/rust-ammonia/ammonia/pull/250 (x_refsource_MISC)
- https://github.com/rust-ammonia/ammonia/pull/251 (x_refsource_MISC)
- https://github.com/rust-ammonia/ammonia/pull/252 (x_refsource_MISC)
- https://github.com/rust-ammonia/ammonia/commit/9394bd81179e756cb911314deabd943f1a9c8989 (x_refsource_MISC)
- https://github.com/rust-ammonia/ammonia/commit/9e3335e2dd8ab07346ff7997f20662a3da4023f6 (x_refsource_MISC)
- https://github.com/rust-ammonia/ammonia/commit/d2ae1547f478bd84d158bc5e57f5d31437dc4d8d (x_refsource_MISC)
- https://github.com/rust-ammonia/ammonia/releases/tag/v3.3.3 (x_refsource_MISC)
- https://github.com/rust-ammonia/ammonia/releases/tag/v4.0.3 (x_refsource_MISC)
- https://github.com/rust-ammonia/ammonia/releases/tag/v4.1.4 (x_refsource_MISC)
Assess this vulnerability
Compare your deployed product and version with the source record. Review vendor references for fixes and workarounds. A CVSS score describes technical severity; it does not establish that your systems are affected or that exploitation has occurred.
Browse all CVE security advisories · Symaro cybersecurity services
Generated from the official CVE List on 14 Oct 2026 07:04 UTC.