CVE-2026-102342Rust Ammonia Ammonia cross-site scripting (XSS)
CVSS score
5.4
Medium
CVSS 3.1 from github.com
Exploit probability (EPSS)
0.27%
0.27% chance of exploitation in the next 30 days, higher than 19.8% of all CVEs.
CISA KEV
Not in KEV
No confirmed exploitation reported by CISA so far.
Official 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.
Source: NVD · CNA: security-advisories@github.com
How to fix it, step by step
Check whether you're affected
Find every system running rust-ammonia Ammonia and compare its version with the affected versions.
Update to a fixed version
- Update Ammonia to 3.3.3, 4.0.3, 4.1.4 or later, on the branch you run.
Confirm the fix
Check that every affected system now reports a fixed version, and recheck the vendor's advisory: fixes are sometimes revised.
Was this useful?
How it can be exploited
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- Low
- User interaction
- Required
- Scope
- Changed
- Confidentiality
- Low
- Integrity
- Low
- Availability
- None
Values in red make the vulnerability easier to exploit or more damaging. CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Affected products
| Affected products | Versions |
|---|---|
| rust-ammonia Ammonia | < 3.3.3 · >= 4.0.0, < 4.0.3 · >= 4.1.2, < 4.1.4 |
Weakness
- CWE-79 cross-site scripting (XSS)
Timeline
- Published:
- Last modified:
Frequently asked questions
Is CVE-2026-102342 being exploited?
There is no confirmed exploitation in CISA's KEV catalog so far. Its EPSS score estimates a 0.3% probability of exploitation in the next 30 days.
What is the CVSS score of CVE-2026-102342?
CVE-2026-102342 has a CVSS 3.1 base score of 5.4 (medium).
Which versions are affected?
Rust Ammonia Ammonia (< 3.3.3; >= 4.0.0, < 4.0.3; >= 4.1.2, < 4.1.4)
Is there a patch for CVE-2026-102342?
The official record links to vendor advisories or patches; see “What to do” above.
References
- github.com/rust-ammonia/ammonia/commit/9394bd81179e756cb911314deabd943f1a9c8989
- github.com/rust-ammonia/ammonia/commit/9e3335e2dd8ab07346ff7997f20662a3da4023f6
- github.com/rust-ammonia/ammonia/commit/d2ae1547f478bd84d158bc5e57f5d31437dc4d8d
- github.com/rust-ammonia/ammonia/pull/250
- github.com/rust-ammonia/ammonia/pull/251
- github.com/rust-ammonia/ammonia/pull/252
- github.com/rust-ammonia/ammonia/releases/tag/v3.3.3
- github.com/rust-ammonia/ammonia/releases/tag/v4.0.3
- github.com/rust-ammonia/ammonia/releases/tag/v4.1.4
- github.com/rust-ammonia/ammonia/security/advisories/GHSA-m6mh-2hw2-555x
Data: NVD, CVE.org (cvelistV5), CISA KEV and FIRST EPSS. Summary written by RedCVE with AI assistance from the official data.