Home / gomarkdown / markdown / CVE-2023-42821
CVE-2023-42821: is it exploited, and which versions of gomarkdown markdown are affected and fixed?
CVE-2023-42821 is an out-of-bounds read vulnerability in gomarkdown markdown. 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, 17:39 UTC). Affected: github.com/gomarkdown/markdown before 0.0.0-20230922105210-14b16010c2ee (GitHub advisory GHSA-m9xq-6h2j-65r2). Fixed in 0.0.0-20230922105210-14b16010c2ee (GitHub advisory GHSA-m9xq-6h2j-65r2). Severity: High (7.5, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 17:39 UTC, CVE record November 19, 2026, 07:12 UTC and NVD November 19, 2026, 07:35 UTC.
What is CVE-2023-42821?
github.com/gomarkdown/markdown Out-of-bounds Read while parsing citations
The package `github.com/gomarkdown/markdown` is a Go library for parsing Markdown text and rendering as HTML. Prior to pseudoversion `0.0.0-20230922105210-14b16010c2ee`, which corresponds with commit `14b16010c2ee7ff33a940a541d993bd043a88940`, parsing malformed markdown input with parser that uses parser.Mmark extension could result in out-of-bounds read vulnerability. To exploit the vulnerability, parser needs to have `parser.Mmark` extension set. The panic occurs inside the `citation.go` file on the line 69 when the parser tries to access the element past its length. This can result in a denial of service. Commit `14b16010c2ee7ff33a940a541d993bd043a88940`/pseudoversion `0.0.0-20230922105210-14b16010c2ee` contains a patch for this issue.
From the CVE record by GitHub_M, last updated September 24, 2024, 19:27 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| gomarkdown | markdown | < 0.0.0-20230922105210-14b16010c2ee |
As the CVE record by GitHub_M states it, last updated September 24, 2024. 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?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| Go | github.com/gomarkdown/markdown | < 0.0.0-20230922105210-14b16010c2ee | 0.0.0-20230922105210-14b16010c2ee | GHSA-m9xq-6h2j-65r2 |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated September 27, 2023. Summary: Markdown vulnerable to Out-of-bounds Read while parsing citations.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| gomarkdown | markdown | all versions | application |
NVD analysis (status Modified), last modified June 17, 2026, 06:24 UTC.
How severe is CVE-2023-42821?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.5 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | GitHub_M |
| High 7.5 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | NVD |
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-42821 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: poc; automatable: yes; technical impact: partial (CISA ADP, September 24, 2024)
- EPSS
- 1.25% probability of exploitation activity in the next 30 days, percentile 70.4 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-125 Out-of-bounds Read
Where are the vendor advisories and references?
- https://github.com/gomarkdown/markdown/security/advisories/GHSA-m9xq-6h2j-65r2 x_refsource_CONFIRM
- https://github.com/gomarkdown/markdown/commit/14b16010c2ee7ff33a940a541d993bd043a88940 x_refsource_MISC
- https://github.com/gomarkdown/markdown/blob/7478c230c7cd3e7328803d89abe591d0b61c41e4/parser/citation.go#L69 x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- September 14, 2023
- Published
- September 22, 2023, 16:55 UTC
- CVE record updated
- September 24, 2024, 19:27 UTC by GitHub_M
- NVD
- Modified, last modified June 17, 2026, 06:24 UTC
- Last checked
- CVE list November 19, 2026, 07:12 UTC; NVD November 19, 2026, 07:35 UTC; KEV December 3, 2026, 17:39 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect markdown?
- Oct 16, 2026CVE-2026-102941 gomarkdown markdown: out-of-bounds read
- Apr 21, 2026CVE-2026-40890 gomarkdown markdown: out-of-bounds read
Questions about CVE-2023-42821
Is CVE-2023-42821 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 17:39 UTC. FIRST's EPSS gives it a 1.25% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of gomarkdown markdown are affected by CVE-2023-42821?
github.com/gomarkdown/markdown before 0.0.0-20230922105210-14b16010c2ee, per the GitHub advisory GHSA-m9xq-6h2j-65r2. The tables above give every range the sources list.
Which version fixes CVE-2023-42821?
0.0.0-20230922105210-14b16010c2ee, per the GitHub advisory GHSA-m9xq-6h2j-65r2. Check the vendor's advisory before you rely on it.
How severe is CVE-2023-42821?
High (7.5, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2023-42821?
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.