
CVE catalog
CVE-2026-102342
rust-ammonia: CVE-2026-102342
- Severity
- Medium · CVSS 5.4
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.27% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | rust-ammonia | sid | 4.2.3-1 | fixed |
| Debian | rust-ammonia | forky | 4.1.4-1 | fixed |
| Debian | rust-ammonia | trixie | 4.0.0-3 | vulnerable |
| Debian | rust-ammonia | bookworm | 3.2.1-1 | vulnerable |
| Rust | ammonia | Not reported | 4.1.4 | fixed |
| Rust | ammonia | Not reported | 4.0.3 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | rust-ammonia | source | sid | 4.1.4-1 | not yet assigned | Not reported | Not reported |
| Debian | rust-ammonia | source | forky | 4.1.4-1 | not yet assigned | Not reported | Not reported |
| Debian | rust-ammonia | source | trixie | (unfixed) | not yet assigned | Not reported | Not reported |
| Debian | rust-ammonia | source | bookworm | (unfixed) | not yet assigned | Not reported | Not reported |
| Rust | ammonia | rust | Not reported | 4.1.4 | Not reported | GHSA-M6MH-2HW2-555X | Not reported |
| Rust | ammonia | rust | Not reported | 4.0.3 | Not reported | GHSA-M6MH-2HW2-555X | Not reported |
Notes
[trixie] rust-ammonia: Minor issue [bookworm] rust-ammonia: Limited support, minor issue
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [librust-ammonia-dev]Affected
Source package: [rust-ammonia]
Details (2)
3.2.1-1· amd64 · bookwormAffected
dsa · rust-ammonia · debian · bookworm; dsa · rust-ammonia · debian · 12
3.2.1-1· arm64 · bookwormAffected
dsa · rust-ammonia · debian · bookworm; dsa · rust-ammonia · debian · 12
[Debian 13 (Trixie)]
- [librust-ammonia-dev]Affected
Source package: [rust-ammonia]
Details (2)
4.0.0-3· amd64 · trixieAffected
dsa · rust-ammonia · debian · 13
4.0.0-3· arm64 · trixieAffected
dsa · rust-ammonia · debian · 13
Observed:
References
- [https://ftp.suse.com/pub/projects/security/]
- [https://github.com/advisories/GHSA-m6mh-2hw2-555x]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-102342]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-102342]
- [https://security-tracker.debian.org/tracker/CVE-2026-102342]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-102342.json]
[Debian Security Tracker] · [FIRST EPSS] · [GitHub Advisory Database] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]