CVE-2021-27671 Cross site scripting in comrak
MediumCVSS 6.1
EPSS 0.69%
- Published
- Updated
- Exploit status
- No public exploit known
Description
An issue was discovered in the comrak crate before 0.9.1 for Rust. XSS can occur because the protection mechanism for data: and javascript: URIs is case-sensitive, allowing (for example) Data: to be used in an attack.
Upgrade path
2 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| comrak project comrak | < 0.9.1 | 0.9.1 | Fixed |
| crates.io comrak(crates.io) | < 0.9.1; >= 0.0.0-0, < 0.9.1 | 0.9.1 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| crates.io comrak(crates.io) | < 0.9.1 | 0.9.1 |
| crates.io comrak(crates.io) | >= 0.0.0-0, < 0.9.1 | 0.9.1 |
| comrak project comrak | < 0.9.1 | 0.9.1 |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- github.com
- rustsec.org third-party-advisory vendor-advisory
- github.com patch
- github.com
- github.com product
- crates.io product