# CVE-2023-28631: Comrak AST node data is not validated (GHSL-2023-049)

Source: https://junglewise.ai/threats/cve-2023-28631-comrak-ast-node-data-is-not-validated-ghsl-2023-049  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2023-03-28  
License: CC BY 4.0 with a link back

CVE-2023-28631 · Severity: low · CVSS 3.1 · Published 2023-03-28

Comrak AST node data is not validated (GHSL-2023-049)

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

## Quick answers

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

**How severe is CVE-2023-28631?** Low severity, with a CVSS score of 3.1, published 28 March 2023.

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

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

**Am I affected by CVE-2023-28631?** 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.17.0 or later

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


## Affected products

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

## Identifiers

- CVE-2023-28631
- GHSA-5r3x-p7xx-x6q5

## Related threats

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