CVE-2026-102342: ammonia · Cross-site Scripting
Affects ammoniaSource CVE Database V5
Not known to be exploited · CVSS 5.4 Medium · fixed in 4.1.4 : update ammonia when convenient.
Data as of 27 Nov 2026, 22:51 UTC
- EPSS
- 0.3% chance of exploitation in 30 days – higher than 23% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 4.1.4, 4.0.3, 3.3.3
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:NExploitation evidence
Disclosed: evidence found.
CVE published 13 Oct 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 28 Nov 2026.
What to do
Upgrade to a fixed release listed under Affected software.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| rust-ammoniaammonia | Affected
| Fixed in
|
| rust-ammoniaammonia | Affected
| Fixed in
|
| rust-ammoniaammonia | Affected
| Fixed in
|
crates.ioammoniapkg:cargo/ammoniaOther threats | Affected
| Fixed in
|
crates.ioammoniapkg:cargo/ammoniaOther threats | Affected
| Fixed in
|
crates.ioammoniapkg:cargo/ammoniaOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade rust-ammonia to version 3.3.3, 4.0.3, or 4.1.4 or later, where this vulnerability is fixed. No other mitigation is required as the issue is resolved in these official releases.
Description
CVE-2026-102342 is a stored cross-site scripting (XSS) vulnerability in the rust-ammonia library, which is used to sanitize untrusted HTML. Versions prior to 3.3.3, 4.0.3, and 4.1.4 allow SVG animate or set elements with an attributeName targeting href and a javascript scheme value to persist. This enables attackers to embed script-bearing links that execute attacker-controlled scripts in the application's origin when clicked. The issue is fixed in versions 3.3.3, 4.0.3, and 4.1.4.
References
- github.com/rust-ammonia/ammonia/security/advisories/GHSA-m6mh-2hw2-555x (opens in a new tab)
- github.com/rust-ammonia/ammonia/pull/250 (opens in a new tab)
- github.com/rust-ammonia/ammonia/pull/251 (opens in a new tab)
- github.com/rust-ammonia/ammonia/pull/252 (opens in a new tab)
- github.com/rust-ammonia/ammonia/commit/9394bd81179e756cb911314deabd943f1a9c8989 (opens in a new tab)
- github.com/rust-ammonia/ammonia/commit/9e3335e2dd8ab07346ff7997f20662a3da4023f6 (opens in a new tab)
- github.com/rust-ammonia/ammonia/commit/d2ae1547f478bd84d158bc5e57f5d31437dc4d8d (opens in a new tab)
- github.com/rust-ammonia/ammonia/releases/tag/v3.3.3 (opens in a new tab)
- github.com/rust-ammonia/ammonia/releases/tag/v4.0.3 (opens in a new tab)
- github.com/rust-ammonia/ammonia/releases/tag/v4.1.4 (opens in a new tab)