CVEBrief

Home / kivikakk / comrak / CVE-2023-28631

CVE-2023-28631: is it exploited, and which versions of kivikakk comrak are affected and fixed?

CVE-2023-28631 is an exceptional condition mishandled vulnerability in kivikakk comrak. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 12:38 UTC). Affected: comrak before 0.17.0 (GitHub advisory GHSA-5r3x-p7xx-x6q5). Fixed in 0.17.0 (GitHub advisory GHSA-5r3x-p7xx-x6q5). Severity: Medium (5.3, CVSS 3.1, from GitHub_M).

Data checked December 3, 2026: last read CISA KEV December 3, 2026, 12:38 UTC, CVE record November 19, 2026, 07:13 UTC and NVD November 19, 2026, 07:40 UTC.

Exploited in the wild
Not in CISA KEV
KEV read December 3, 2026, 12:38 UTC
Affected
comrak before 0.17.0
GitHub advisory GHSA-5r3x-p7xx-x6q5
Fixed in
0.17.0
GitHub advisory GHSA-5r3x-p7xx-x6q5
Severity
Medium 5.3
CVSS 3.1 from GitHub_M
Exploit odds (EPSS)
1.27% in 30 days
higher than 71% of CVEs; FIRST, December 2, 2026

What is CVE-2023-28631?

Attacker controlled data in AST nodes is not validated in comrak

comrak is a CommonMark + GFM compatible Markdown parser and renderer written in rust. A Comrak AST can be constructed manually by a program instead of parsing a Markdown document with `parse_document`. This AST can then be converted to HTML via `html::format_document_with_plugins`. However, the HTML formatting code assumes that the AST is well-formed. For example, many AST notes contain `[u8]` fields which the formatting code assumes is valid UTF-8 data. Several bugs can be triggered if this is not the case. Version 0.17.0 contains adjustments to the AST, storing strings instead of unvalidated byte arrays. Users are advised to upgrade. Users unable to upgrade may manually validate UTF-8 correctness of all data when assigning to `&[u8]` and `Vec<u8>` fields in the AST. This issue is also tracked as `GHSL-2023-049`.

From the CVE record by GitHub_M, last updated February 18, 2025, 20:06 UTC.

Which versions are affected, and which fix it?

VendorProductAffectedFixed or not affected from
kivikakkcomrak< 0.17.0

As the CVE record by GitHub_M states it, last updated February 18, 2025. Version ranges are the CNA's; a version the record calls not affected is usually the fix.

Which packages are affected, and in which version is each fixed?

EcosystemPackageAffectedFixed inAdvisory
crates.iocomrak< 0.17.00.17.0GHSA-5r3x-p7xx-x6q5

GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated March 28, 2023. Summary: Comrak AST node data is not validated (GHSL-2023-049).

Which products and versions does the NVD list as affected?

VendorProductVersionsType
comrak projectcomrakbefore 0.17.0application

NVD analysis (status Modified), last modified June 17, 2026, 05:48 UTC.

How severe is CVE-2023-28631?

ScoreVersionVectorSource
Medium 5.3CVSS 3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:LGitHub_M
Critical 9.8CVSS 3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HNVD

Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.

What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.

Is CVE-2023-28631 exploited in the wild?

CISA KEV
Not listed (catalog 2026.11.30)
CISA SSVC
Exploitation: none; automatable: yes; technical impact: partial (CISA ADP, February 18, 2025)
EPSS
1.27% probability of exploitation activity in the next 30 days, percentile 70.6 (FIRST EPSS, scores of December 2, 2026)

What kind of flaw is it?

Where are the vendor advisories and references?

When was it published, and where is the official record?

Reserved
March 20, 2023
Published
March 28, 2023, 20:17 UTC
CVE record updated
February 18, 2025, 20:06 UTC by GitHub_M
NVD
Modified, last modified June 17, 2026, 05:48 UTC
Last checked
CVE list November 19, 2026, 07:13 UTC; NVD November 19, 2026, 07:40 UTC; KEV December 3, 2026, 12:38 UTC; EPSS December 2, 2026
Official record
cve.org · NVD

What other CVEs affect comrak?

Every CVE in comrak

Questions about CVE-2023-28631

Is CVE-2023-28631 exploited in the wild?

Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 12:38 UTC. FIRST's EPSS gives it a 1.27% chance of exploitation activity in the next 30 days (scores of December 2, 2026).

Which versions of kivikakk comrak are affected by CVE-2023-28631?

comrak before 0.17.0, per the GitHub advisory GHSA-5r3x-p7xx-x6q5. The tables above give every range the sources list.

Which version fixes CVE-2023-28631?

0.17.0, per the GitHub advisory GHSA-5r3x-p7xx-x6q5. Check the vendor's advisory before you rely on it.

How severe is CVE-2023-28631?

Medium (5.3, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.

Where is the official record of CVE-2023-28631?

The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.