CVE-2021-27671Comrak Project Comrak
Medium 6.1 No auth needed
Follow: this CVE · Comrak Project · Comrak Project Comrak We alert you by email or Slack (account required).
- Priority
- 52
- CVSS 3.1
- 6.1
- EPSS
- 0.7% probability of exploitation in 30 days · percentile 54
- Auth required
- No
- Published
- Feb 25, 2021
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-79
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
What happens
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.
What to do
- Apply the vendor's security update for Comrak.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| crates.io | comrak |
< 0.9.1 |
0.9.1 |
cargo update -p comrak --precise 0.9.1 |
| crates.io | comrak |
≥ 0.0.0-0 < 0.9.1 |
0.9.1 |
cargo update -p comrak --precise 0.9.1 |
Per OSV / GitHub Advisories (GHSA-xmr7-v725-2jjr, RUSTSEC-2021-0026). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| comrak_project | comrak | < 0.9.1 |
Official sources
References
Links published by the sources. Open them with care.
- rustsec.org Third Party Advisory