Add advisory on comrak XSS

Signed-off-by: Kohei Morita <mrtc0@ssrf.in>
This commit is contained in:
Kohei Morita
2021-02-21 11:22:07 +09:00
parent 631d33d446
commit 3aada4c4d8

View File

@@ -0,0 +1,17 @@
```toml
[advisory]
id = "RUSTSEC-0000-0000"
package = "comrak"
date = "2021-02-21"
url = "https://github.com/kivikakk/comrak/releases/tag/0.9.1"
categories = ["format-injection"]
keywords = ["xss"]
[versions]
patched = [">= 0.9.1"]
```
# XSS in `comrak`
The [comrak](https://github.com/kivikakk/comrak) we were matching unsafe URL prefixes, such as `data:` or `javascript:` , in a case-sensitive manner. This meant prefixes like `Data:` were untouched.