Home / gomarkdown / markdown / CVE-2026-102941
CVE-2026-102941: is it exploited, and which versions of gomarkdown markdown are affected and fixed?
CVE-2026-102941 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-20260724235538-61af6e1e6971 (GitHub advisory GHSA-cv23-7vc5-jfh7). Fixed in 0.0.0-20260724235538-61af6e1e6971 (GitHub advisory GHSA-cv23-7vc5-jfh7). 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:05 UTC and NVD November 19, 2026, 07:05 UTC.
What is CVE-2026-102941?
gomarkdown/markdown IsSafeURL panics on short URLs
The package github.com/gomarkdown/markdown is a Go library for parsing Markdown text and rendering as HTML. Prior to 0.0.0-20260724235538-61af6e1e6971, parser.IsSafeURL in parser/parser.go slices url[:nPath] before the len(url) >= nPath guard. A short destination causes a slice-bounds panic when the loop reaches a relative-path prefix for which len(url) < nPath and cap(url) < nPath. The one-byte destination / is an explicit non-panic counterexample because it matches the first valid path and returns before a longer prefix is sliced. Demonstrated panic cases include empty, ., and .. destinations under those conditions. The panic is reachable when markdown.ToHTML renders untrusted Markdown with html.Safelink enabled, including an empty link destination, and is also reachable by callers that pass a short attacker-controlled URL directly to the exported parser.IsSafeURL function. An uncaught panic can terminate the calling process and cause denial of service. This issue is fixed in 0.0.0-20260724235538-61af6e1e6971.
From the CVE record by GitHub_M, last updated October 26, 2026, 17:37 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| gomarkdown | markdown | < 0.0.0-20260724235538-61af6e1e6971 |
As the CVE record by GitHub_M states it, last updated October 26, 2026. 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-20260724235538-61af6e1e6971 | 0.0.0-20260724235538-61af6e1e6971 | GHSA-cv23-7vc5-jfh7 |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated October 16, 2026. Summary: gomarkdown/markdown IsSafeURL panics on short URLs.
How severe is CVE-2026-102941?
| 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 |
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-2026-102941 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: yes; technical impact: partial (CISA ADP, October 26, 2026)
- EPSS
- 0.37% probability of exploitation activity in the next 30 days, percentile 32.6 (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-cv23-7vc5-jfh7 x_refsource_CONFIRM
- https://github.com/gomarkdown/markdown/commit/61af6e1e69710c5ca13cfbaaaa1bc11bc763a8a9 x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- September 29, 2026
- Published
- October 16, 2026, 15:38 UTC
- CVE record updated
- October 26, 2026, 17:37 UTC by GitHub_M
- NVD
- Deferred, last modified October 26, 2026, 18:17 UTC
- Last checked
- CVE list November 19, 2026, 07:05 UTC; NVD November 19, 2026, 07:05 UTC; KEV December 3, 2026, 17:39 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect markdown?
- Apr 21, 2026CVE-2026-40890 gomarkdown markdown: out-of-bounds read
- Sep 22, 2023CVE-2023-42821 gomarkdown markdown: out-of-bounds read
Questions about CVE-2026-102941
Is CVE-2026-102941 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 0.37% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of gomarkdown markdown are affected by CVE-2026-102941?
github.com/gomarkdown/markdown before 0.0.0-20260724235538-61af6e1e6971, per the GitHub advisory GHSA-cv23-7vc5-jfh7. The tables above give every range the sources list.
Which version fixes CVE-2026-102941?
0.0.0-20260724235538-61af6e1e6971, per the GitHub advisory GHSA-cv23-7vc5-jfh7. Check the vendor's advisory before you rely on it.
How severe is CVE-2026-102941?
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-2026-102941?
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.