CVE-2026-102342 Details
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.
A vulnerability in the Ammonia HTML sanitization library for Rust allows stored cross-site scripting (XSS) attacks through improper handling of SVG animation elements. In versions prior to 3.3.3, 4.0.3, and 4.1.4, the library failed to sanitize 'animate' and 'set' elements correctly. This oversight enabled the creation of links with 'javascript' URLs that could execute malicious scripts when clicked, potentially compromising the application's security.
Users can upgrade to Ammonia versions 3.3.3, 4.0.3, or 4.1.4 to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Oct 13, 2026CISA-ADP
Assessed Oct 13, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-79 | Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| ammonia | < 3.3.3 (semver) >= 4.0.0, <= 4.0.2 (semver) >= 4.1.2, <= 4.1.3 (semver) |
CPE
Remediation
| |
Change History
2 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 13, 2026 | CVE Modified | CISA-ADP |
| Oct 13, 2026 | New CVE Received | [email protected] |
Volerion