# CVE-2021-38186: RUSTSEC-2021-0063 - XSS in `comrak`

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

CVE-2021-38186 · Severity: low · CVSS 3.1 · Published 2021-05-04

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-38186 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2021-38186 being exploited in the wild.

**How severe is CVE-2021-38186?** Low severity, with a CVSS score of 3.1, published 4 May 2021.

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

**Is there a fix for CVE-2021-38186?** Yes. comrak (crates.io): upgrade to 0.10.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-38186?** 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.10.1 or later

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


## Affected products

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

## Identifiers

- CVE-2021-38186
- GHSA-6wj2-g87r-pm62
- RUSTSEC-2021-0063

## 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-0026 - XSS in `comrak`](https://junglewise.ai/threats/cve-2021-27671-cross-site-scripting-in-comrak)
