ammonia allows stored XSS through unsanitized SVG animate and set attributes
Summary
| CVE | CVE-2026-102342 |
|---|---|
| State | PUBLISHED |
| Assigner | GitHub_M |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-10-13 15:17:30 UTC |
| Updated | 2026-10-13 21:17:20 UTC |
| 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. |
Risk And Classification
Primary CVSS: v3.1 5.4 MEDIUM from [email protected]
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Problem Types: CWE-79 | CWE-79 CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Secondary | 5.4 | MEDIUM | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
| 3.1 | CNA | DECLARED | 5.4 | MEDIUM | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N |
CVSS v3.1 Breakdown
Attack Vector
NetworkAttack Complexity
LowPrivileges Required
LowUser Interaction
RequiredScope
ChangedConfidentiality
LowIntegrity
LowAvailability
NoneCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Vendor Declared Affected Products
| Source | Vendor | Product | Version | Platforms |
|---|---|---|---|---|
| CNA | Rust-ammonia | Ammonia | affected < 3.3.3 | Not specified |
| CNA | Rust-ammonia | Ammonia | affected >= 4.0.0, < 4.0.3 | Not specified |
| CNA | Rust-ammonia | Ammonia | affected >= 4.1.2, < 4.1.4 | Not specified |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| github.com/rust-ammonia/ammonia/commit/9394bd81179e756cb911314deabd943f1... | [email protected] | github.com | |
| github.com/rust-ammonia/ammonia/commit/d2ae1547f478bd84d158bc5e57f5d3143... | [email protected] | github.com | |
| github.com/rust-ammonia/ammonia/security/advisories/GHSA-m6mh-2hw2-555x | [email protected] | github.com | |
| github.com/rust-ammonia/ammonia/releases/tag/v3.3.3 | [email protected] | github.com | |
| github.com/rust-ammonia/ammonia/pull/252 | [email protected] | github.com | |
| github.com/rust-ammonia/ammonia/releases/tag/v4.0.3 | [email protected] | github.com | |
| github.com/rust-ammonia/ammonia/pull/251 | [email protected] | github.com | |
| github.com/rust-ammonia/ammonia/pull/250 | [email protected] | github.com | |
| github.com/rust-ammonia/ammonia/commit/9e3335e2dd8ab07346ff7997f20662a3d... | [email protected] | github.com | |
| github.com/rust-ammonia/ammonia/releases/tag/v4.1.4 | [email protected] | github.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.