medium6.1
CVE-2021-38186
Cross-site Scripting in comrak
Impact
An issue was discovered in the comrak crate before 0.10.1 for Rust. It mishandles & characters, leading to XSS via &# HTML entities.
Affected packages
| Ecosystem | Package | Affected | Fixed in |
|---|---|---|---|
| rust | comrak | < 0.10.1 | 0.10.1 |
Affected products
| Vendor | Product | Affected versions |
|---|---|---|
| Comrak Project | Comrak | before 0.10.1 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://raw.githubusercontent.com/rustsec/advisory-db/main/crates/comrak/RUSTSEC-2021-0063.md
- https://rustsec.org/advisories/RUSTSEC-2021-0063.html
- https://github.com/advisories/GHSA-6wj2-g87r-pm62
- https://nvd.nist.gov/vuln/detail/CVE-2021-38186
- https://github.com/kivikakk/comrak/releases/tag/0.10.1
- https://github.com/kivikakk/comrak/commit/b72340cabe4749952530b4fb6b4fcc706bc973e5
- https://github.com/kivikakk/comrak/compare/0.10.0...0.10.1