Skip to content

Commit 15e1b2e

Browse files
committed
1 parent cbeaf18 commit 15e1b2e

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

crates/ammonia/RUSTSEC-0000-0000.md

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
```toml
2+
[advisory]
3+
id = "RUSTSEC-0000-0000"
4+
package = "ammonia"
5+
date = "2021-07-08"
6+
url = "https://github.com/rust-ammonia/ammonia/pull/142"
7+
categories = ["format-injection"]
8+
keywords = ["html", "xss"]
9+
10+
[versions]
11+
patched = [">= 3.1.0", ">= 2.1.3, < 3.0.0"]
12+
```
13+
14+
# Incorrect handling of embedded SVG and MathML leads to mutation XSS
15+
16+
Affected versions of this crate did not account for namespace-related parsing
17+
differences between HTML, SVG, and MathML. Even if the `svg` and `math` elements
18+
are not allowed, the underlying HTML parser still treats them differently.
19+
Running cleanup without accounting for these differing namespaces resulted in an "impossible"
20+
DOM, which appeared "safe" when examining the DOM tree, but when serialized and deserialized,
21+
could be exploited to inject abitrary markup.

0 commit comments

Comments
 (0)