# CVE-2021-27671: RUSTSEC-2021-0026 - XSS in `comrak`

Source: https://junglewise.ai/threats/cve-2021-27671-cross-site-scripting-in-comrak  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2021-02-21  
License: CC BY 4.0 with a link back

CVE-2021-27671 · Severity: low · CVSS 3.1 · Published 2021-02-21

XSS in `comrak`

Technologies: [comrak (crates.io)](https://junglewise.ai/threats/technologies/comrak). Vendors: [crates.io](https://junglewise.ai/threats/vendors/crates-io).

## Quick answers

**Is CVE-2021-27671 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2021-27671 being exploited in the wild.

**How severe is CVE-2021-27671?** Low severity, with a CVSS score of 3.1, published 21 February 2021.

**Which products and versions are affected?** comrak (crates.io) SEMVER:introduced=0,fixed=0.9.1, SEMVER:introduced=0.0.0-0,fixed=0.9.1.

**Is there a fix for CVE-2021-27671?** Yes. comrak (crates.io): upgrade to 0.9.1 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2021-27671?** Check whether you run comrak (crates.io) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- comrak (crates.io): upgrade to 0.9.1 or later

  ```sh
  cargo update -p comrak
  ```


## Affected products

- comrak (crates.io) SEMVER:introduced=0,fixed=0.9.1, SEMVER:introduced=0.0.0-0,fixed=0.9.1

## Identifiers

- CVE-2021-27671
- GHSA-xmr7-v725-2jjr
- RUSTSEC-2021-0026

## Related threats

- [Comrak AST node data is not validated (GHSL-2023-049)](https://junglewise.ai/threats/cve-2023-28631-comrak-ast-node-data-is-not-validated-ghsl-2023-049)
- [Comrak vulnerable to production of excessive output when parsing Markdown (GHSL-2023-048)](https://junglewise.ai/threats/comrak-vulnerable-to-production-of-excessive-output-when-parsing-95e642cd)
- [Comrak vulnerable to quadratic runtime issues when parsing Markdown (GHSL-2023-047)](https://junglewise.ai/threats/cve-2023-28626-comrak-vulnerable-to-quadratic-runtime-issues-when-parsing)
- [RUSTSEC-2021-0063 - XSS in `comrak`](https://junglewise.ai/threats/cve-2021-38186-cross-site-scripting-in-comrak)
