Live threats

All CVEs / Comrak Project

CVE-2021-27671Comrak Project Comrak

Medium 6.1 No auth needed

Priority
52
CVSS 3.1
6.1
EPSS
0.7%
probability of exploitation in 30 days · percentile 54
Auth required
No
Published
Feb 25, 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.9.1 for Rust. XSS can occur because the protection mechanism for data: and javascript: URIs is case-sensitive, allowing (for example) Data: to be used in an attack.

Original NVD text.

What to do

  1. Apply the vendor's security update for Comrak.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
crates.io comrak < 0.9.1 0.9.1 cargo update -p comrak --precise 0.9.1
crates.io comrak ≥ 0.0.0-0 < 0.9.1 0.9.1 cargo update -p comrak --precise 0.9.1

Per OSV / GitHub Advisories (GHSA-xmr7-v725-2jjr, RUSTSEC-2021-0026). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
comrak_projectcomrak< 0.9.1

Official sources

References

Links published by the sources. Open them with care.