# CVE-2026-102342: ammonia allows stored XSS through unsanitized SVG animate and set attributes

- Severity: Medium 5.4 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.27%, higher than 20% of CVEs (2026-12-01)
- Published: 2026-07-21T12:00:00.000Z
- Modified: 2026-10-16T20:04:29.760Z
- Also known as: GHSA-m6mh-2hw2-555x, RUSTSEC-2026-0213
- Weaknesses: CWE-79
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- rust-ammonia ammonia: < 3.3.3; >= 4.0.0, < 4.0.3; >= 4.1.2, < 4.1.4
- ammonia (crates.io): before 3.3.3; from 4.0.0 before 4.0.3; from 4.1.2 before 4.1.4; from 0.0.0-0 before 3.3.3; from 4.1.0 before 4.1.4

## Every score

- GitHub_M: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`
- GitHub: CVSS:3.1 5.4 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N`

## References

- <https://github.com/rust-ammonia/ammonia/security/advisories/GHSA-m6mh-2hw2-555x> (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/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/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> (package)
- <https://rustsec.org/advisories/RUSTSEC-2026-0213.html> (advisory, web)
- <https://crates.io/crates/ammonia> (package)

## Sources

- CVE List: [CVE-2026-102342](https://www.cve.org/CVERecord?id=CVE-2026-102342), CVE Terms of Use, modified 2026-10-13
- GitHub Advisory Database: [GHSA-m6mh-2hw2-555x](https://github.com/advisories/GHSA-m6mh-2hw2-555x), CC-BY-4.0, modified 2026-09-29
- RustSec Advisory Database: [RUSTSEC-2026-0213](https://rustsec.org/advisories/RUSTSEC-2026-0213.html), CC0-1.0, modified 2026-09-30
- NVD: [CVE-2026-102342](https://nvd.nist.gov/vuln/detail/CVE-2026-102342), Public domain, modified 2026-10-16

---

Page: https://cve.day/CVE-2026-102342 · Whole record: https://cve.day/CVE-2026-102342.json · Rebuilt by cve.day 2026-11-25T22:59:43.826Z
