# GHSA-xxmq-4vph-956w: Comrak vulnerable to production of excessive output when parsing Markdown (GHSL-2023-048)

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Published: 2023-03-28T14:44:04.000Z
- Modified: 2023-03-28T14:44:04.000Z

## Description

### Impact

comrak is vulnerable to the upstream cmark issue, ["Issue revealed by fuzzer"](https://github.com/commonmark/cmark/issues/354). A large number of references in a markdown document can trigger an overly large response.

### Patches

0.17.0 contains https://github.com/kivikakk/comrak/commit/70f97f3ea4eae30ffbd1b94c764a3de2f1c41d2a, which limits reference output to a 100Kb maximum.

### Workarounds

n/a

### References

* https://github.com/commonmark/cmark/issues/354

(As written by GitHub Advisory Database.)

## Affected

- comrak (crates.io): before 0.17.0

## References

- <https://github.com/kivikakk/comrak/security/advisories/GHSA-xxmq-4vph-956w> (web)
- <https://github.com/commonmark/cmark/issues/354> (web)
- <https://github.com/kivikakk/comrak/commit/70f97f3ea4eae30ffbd1b94c764a3de2f1c41d2a> (web)
- <https://github.com/kivikakk/comrak> (package)
- <https://github.com/kivikakk/comrak/releases/tag/0.17.0> (web)

## Sources

- GitHub Advisory Database: [GHSA-xxmq-4vph-956w](https://github.com/advisories/GHSA-xxmq-4vph-956w), CC-BY-4.0, modified 2023-03-28

---

Page: https://cve.day/GHSA-xxmq-4vph-956w · Whole record: https://cve.day/GHSA-xxmq-4vph-956w.json · Rebuilt by cve.day 2026-11-25T22:56:42.909Z
