CVE-2026-102342ammonia allows stored XSS through unsanitized SVG animate and set attributes
Updated under an hour ago ()
Does this affect you?
It affects rust-ammonia ammonia. Add what you run to find out whether that includes you.
No exploitation reported and no EPSS estimate yet.
Do this next
Free account, 1 product
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.
- CVSS
- 5.4 MEDIUM (v3.1, CNA)CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
- Weakness (CWE)
- CWE-79
- Known exploited
- Not in CISA's KEV catalog
- EPSS (exploitation in the next 30 days)
- Not loaded for this CVE
- Assigned by
- GitHub_M
- NVD analysis
- Deferred
- Record last updated
- Oct 13, 2026
- First seen by InfoSec Signals
- Oct 13, 2026
Affected products
rust-ammonia ammonia rust_ammonia:ammonia (from the name) | before 3.3.3; from 4.0.0, < 4.0.3; from 4.1.2, < 4.1.4 | CNA record |
References
- https://github.com/rust-ammonia/ammonia/security/advisories/GHSA-m6mh-2hw2-555xx-refsource-confirm
- https://github.com/rust-ammonia/ammonia/pull/250x-refsource-misc
- https://github.com/rust-ammonia/ammonia/pull/251x-refsource-misc
- https://github.com/rust-ammonia/ammonia/pull/252x-refsource-misc
- https://github.com/rust-ammonia/ammonia/commit/9394bd81179e756cb911314deabd943f1a9c8989x-refsource-misc
- https://github.com/rust-ammonia/ammonia/commit/9e3335e2dd8ab07346ff7997f20662a3da4023f6x-refsource-misc
- https://github.com/rust-ammonia/ammonia/commit/d2ae1547f478bd84d158bc5e57f5d31437dc4d8dx-refsource-misc
- https://github.com/rust-ammonia/ammonia/releases/tag/v3.3.3x-refsource-misc
- https://github.com/rust-ammonia/ammonia/releases/tag/v4.0.3x-refsource-misc
- https://github.com/rust-ammonia/ammonia/releases/tag/v4.1.4x-refsource-misc
The CVE record on cve.org NVD's entry
The CVE record is authoritative. Products marked “from the name” were identified from the CNA's free-text names, not a CPE, and are matched less certainly. This product uses the NVD API but is not endorsed or certified by the NVD.