CVE-2021-38186Comrak 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 51
- Auth required
- No
- Published
- Aug 8, 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.10.1 for Rust. It mishandles & characters, leading to XSS via &# HTML entities.
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.10.1 |
0.10.1 |
cargo update -p comrak --precise 0.10.1 |
| crates.io | comrak |
≥ 0.0.0-0 < 0.10.1 |
0.10.1 |
cargo update -p comrak --precise 0.10.1 |
Per OSV / GitHub Advisories (GHSA-6wj2-g87r-pm62, RUSTSEC-2021-0063). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| comrak_project | comrak | < 0.10.1 |
Official sources
References
Links published by the sources. Open them with care.
- raw.githubusercontent.com Third Party Advisory
- rustsec.org Exploit Issue Tracking Patch