Skip to content

Commit b25a76a

Browse files
Merge pull request #854 from AikidoSec/new-vuln-mxss-ammonia
New vuln: mXSS in ammonia
2 parents 2cfa66b + 7856c10 commit b25a76a

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"package_name": "ammonia",
3+
"patch_versions": [
4+
"4.1.2",
5+
"4.0.1",
6+
"3.3.1"
7+
],
8+
"vulnerable_ranges": [
9+
[
10+
"4.1.0",
11+
"4.1.1"
12+
],
13+
[
14+
"4.0.0",
15+
"4.0.0"
16+
],
17+
[
18+
"3.0.0",
19+
"3.3.0"
20+
]
21+
],
22+
"cwe": [
23+
"CWE-79"
24+
],
25+
"tldr": "Affected versions of this package are vulnerable to a mutation cross-site scripting (mXSS), which arises when DOM cleanup operations inadvertently cause namespace changes, potentially reintroducing malicious elements or attributes that bypass sanitization. This vulnerability allows an attacker to exploit it by crafting input that triggers these namespace switches during processing, leading to the execution of arbitrary JavaScript in the user's context.",
26+
"doest_this_affect_me": "You are affected if you are using a version that falls within the vulnerable range.",
27+
"how_to_fix": "Upgrade the `ammonia` library to the patch version.",
28+
"vulnerable_to": "Cross-Site Scripting (XSS)",
29+
"related_cve_id": "",
30+
"language": "Rust",
31+
"severity_class": "MEDIUM",
32+
"aikido_score": 40,
33+
"changelog": "https://github.com/rust-ammonia/ammonia/releases/tag/v4.1.2",
34+
"last_modified": "2025-10-02",
35+
"published": "2025-10-02"
36+
}

0 commit comments

Comments
 (0)