Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. comrak
  4. ›
  5. CVE-2021-38186

CVE-2021-38186: Cross-site Scripting in comrak

August 25, 2021

An issue was discovered in the comrak crate before 0.10.1 for Rust. It mishandles & characters, leading to XSS via &# HTML entities.

References

  • github.com/advisories/GHSA-6wj2-g87r-pm62
  • github.com/kivikakk/comrak
  • github.com/kivikakk/comrak/commit/b72340cabe4749952530b4fb6b4fcc706bc973e5
  • github.com/kivikakk/comrak/compare/0.10.0...0.10.1
  • github.com/kivikakk/comrak/releases/tag/0.10.1
  • nvd.nist.gov/vuln/detail/CVE-2021-38186
  • rustsec.org/advisories/RUSTSEC-2021-0063.html

Code Behaviors & Features

Detect and mitigate CVE-2021-38186 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.10.1

Fixed versions

  • 0.10.1

Solution

Upgrade to version 0.10.1 or above.

Impact 6.1 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N

Learn more about CVSS

Weakness

  • CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

Source file

cargo/comrak/CVE-2021-38186.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:50 +0000.