Merge pull request #774 from mrtc0/report-comrak-xss

Add advisory on comrak XSS
This commit is contained in:
Sergey "Shnatsel" Davidoff
2021-02-21 03:44:25 +01:00
committed by GitHub

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.