GitHub Advisory Database
GHSA-6wj2-g87r-pm62
Cross-site Scripting in comrak
Details
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 versions |
|---|---|---|
| crates.io | comrak | All versions before 0.10.1 (fixed in 0.10.1) |
References
- https://nvd.nist.gov/vuln/detail/CVE-2021-38186
- https://github.com/kivikakk/comrak/commit/b72340cabe4749952530b4fb6b4fcc706bc973e5
- https://github.com/kivikakk/comrak
- https://github.com/kivikakk/comrak/compare/0.10.0...0.10.1
- https://github.com/kivikakk/comrak/releases/tag/0.10.1
- https://rustsec.org/advisories/RUSTSEC-2021-0063.html