Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-102342— ammonia allows stored XSS through unsanitized SVG animate and set attributes

Quick assessment

Affected
rust-ammonia ammonia
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Ammonia 是一个用于修复和保护不受信任的 HTML 的 Rust 库。在版本 3.3.3、4.0.3 和 4.1.4 之前,如果应用程序允许使用 SVG 的 或 元素,那么攻击者可以保留一个动画,其中 属性指向 ,且其值使用 协议方案。经过清理的 SVG 因此可能生成一个包含脚本的链接,当用户点击该链接时,可以在应用程序的原始上下文中执行攻击者控制的脚本,从而导致存储型跨站脚本攻击(Stored XSS)。该问题已在版本 3.3.3、4.0.3 和 4.1.4 中修复。

CVSS 5.4 · Medium EPSS 0.36% · P28

Affected Version Matrix 3

VendorProduct Version RangeStatus
rust-ammonia ammonia < 3.3.3 affected
>= 4.0.0, < 4.0.3 affected
>= 4.1.2, < 4.1.4 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-102342

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
ammonia allows stored XSS through unsanitized SVG animate and set attributes
Source: CVE Program / CVE List V5
Vulnerability 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: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
在Web页面生成时对输入的转义处理不恰当(跨站脚本)
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
rust-ammonia ammonia < 3.3.3 -

II. Public POCs for CVE-2026-102342

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-102342

请登录查看更多情报信息。

Patches & Fixes for CVE-2026-102342 (6)

Vendor Advisories for CVE-2026-102342 (1)

Vendor Pages for CVE-2026-102342 (3)

IV. Related Vulnerabilities

V. Comments for CVE-2026-102342

No comments yet


Leave a comment