kivikakk/comrak · Security
Cross-site Scripting in comrak
- GHSA ID
- GHSA-6wj2-g87r-pm62
- CVE ID
- CVE-2021-38186
- Severity
- medium
- Published
- Updated
- CVSS
- 6.1 · CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- CVSS v3
- 6.1 · CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Description
An issue was discovered in the comrak crate before 0.10.1 for Rust. It mishandles & characters, leading to XSS via &# HTML entities.
CWEs
- CWE-79 · Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
References
- https://nvd.nist.gov/vuln/detail/CVE-2021-38186 ↗
- https://github.com/kivikakk/comrak/releases/tag/0.10.1 ↗
- https://rustsec.org/advisories/RUSTSEC-2021-0063.html ↗
- https://github.com/kivikakk/comrak/commit/b72340cabe4749952530b4fb6b4fcc706bc973e5 ↗
- https://github.com/kivikakk/comrak/compare/0.10.0...0.10.1 ↗
- https://github.com/advisories/GHSA-6wj2-g87r-pm62 ↗