{"id":"CVE-2026-102342","published":"2026-10-13T14:28:50Z","modified":"2026-10-13T20:23:10Z","title":"ammonia allows stored XSS through unsanitized SVG animate and set attributes","vendor":"rust-ammonia","product":"ammonia","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":5.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00377,"percentile":0.2358,"provenance":"source"},"cwes":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation"}],"references":[{"url":"https://github.com/rust-ammonia/ammonia/security/advisories/GHSA-m6mh-2hw2-555x","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/rust-ammonia/ammonia/pull/250","tags":["x_refsource_MISC"]},{"url":"https://github.com/rust-ammonia/ammonia/pull/251","tags":["x_refsource_MISC"]},{"url":"https://github.com/rust-ammonia/ammonia/pull/252","tags":["x_refsource_MISC"]},{"url":"https://github.com/rust-ammonia/ammonia/commit/9394bd81179e756cb911314deabd943f1a9c8989","tags":["x_refsource_MISC"]},{"url":"https://github.com/rust-ammonia/ammonia/commit/9e3335e2dd8ab07346ff7997f20662a3da4023f6","tags":["x_refsource_MISC"]},{"url":"https://github.com/rust-ammonia/ammonia/commit/d2ae1547f478bd84d158bc5e57f5d31437dc4d8d","tags":["x_refsource_MISC"]},{"url":"https://github.com/rust-ammonia/ammonia/releases/tag/v3.3.3","tags":["x_refsource_MISC"]},{"url":"https://github.com/rust-ammonia/ammonia/releases/tag/v4.0.3","tags":["x_refsource_MISC"]},{"url":"https://github.com/rust-ammonia/ammonia/releases/tag/v4.1.4","tags":["x_refsource_MISC"]}],"priority":{"score":8.5,"factors":[{"name":"EPSS percentile","points":4.72},{"name":"CVSS severity","points":3.78}]},"vendorSlug":"rust-ammonia","affectedVersions":[{"vendor":"rust-ammonia","product":"ammonia","versions":["< 3.3.3",">= 4.0.0, < 4.0.3",">= 4.1.2, < 4.1.4"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-10-13T20:13:15.972756Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"crates.io","package":"ammonia","vulnerableRanges":["<3.3.3",">=4.0.0, <4.0.3",">=4.1.2, <4.1.4",">=0.0.0-0, <3.3.3",">=4.1.0, <4.1.4"],"patched":["3.3.3","4.0.3","4.1.4"],"from":["GHSA-m6mh-2hw2-555x","RUSTSEC-2026-0213"],"provenance":"source"}],"summary":{"text":"The ammonia Rust library, which sanitizes untrusted HTML, fails to strip SVG animate and set elements that target the href attribute with a javascript: value, so the sanitized output can contain a script-bearing link. An attacker with low-privilege access to submit content to an application using a vulnerable ammonia version can get a user to click that link, executing attacker-controlled script within the application's origin as stored cross-site scripting.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:13:44Z"},"euvd":{"id":"EUVD-2026-98766","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2019-15542","published":"2019-08-26","fixed":"2.1.0","kev":false},{"cve":"CVE-2021-38193","published":"2021-08-08","fixed":"3.1.0","kev":false},{"cve":"CVE-2026-63430","published":"2026-10-15","fixed":"4.1.3","kev":false,"link":{"from":"CVE-2026-63430","to":"CVE-2026-102342","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"crates.io:ammonia","fromFixed":"3.3.2","toFixed":"3.3.3","daysApart":-2},{"kind":"version-step","provenance":"source","package":"crates.io:ammonia","fromFixed":"4.0.2","toFixed":"4.0.3","daysApart":-2}]}},{"cve":"CVE-2026-102342","published":"2026-10-13","fixed":"4.1.4","kev":false}],"package":"crates.io:ammonia"}}