
CVE catalog
CVE-2026-102941
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[
- Severity
- High · CVSS 7.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H - Published
- Updated
- Source
- [NVD] · [CVE record]
- EPSS
- 0.28% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | golang-github-gomarkdown-markdown | sid | 0.0~git20260725.8435af3-1 | fixed |
| Debian | golang-github-gomarkdown-markdown | forky | 0.0~git20260725.8435af3-1 | fixed |
| Debian | golang-github-gomarkdown-markdown | trixie | 0.0~git20231115.a660076-1 | vulnerable |
| Debian | golang-github-gomarkdown-markdown | bookworm | 0.0~git20220731.dcdaee8-2 | vulnerable |
| Go | github.com/gomarkdown/markdown | Not reported | 0.0.0-20260724235538-61af6e1e6971 | fixed |
| Ubuntu | golang-github-gomarkdown-markdown | 24.04 | 0.0~git20220731.dcdaee8-2 | vulnerable |
| Ubuntu | golang-github-gomarkdown-markdown | 24.04 | 0.0~git20231115.a660076-1 | vulnerable |
| Ubuntu | golang-github-gomarkdown-markdown | 26.04 | 0.0~git20231115.a660076-1 | vulnerable |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | golang-github-gomarkdown-markdown | source | sid | 0.0~git20260725.8435af3-1 | not yet assigned | Not reported | Not reported |
| Debian | golang-github-gomarkdown-markdown | source | forky | 0.0~git20260725.8435af3-1 | not yet assigned | Not reported | Not reported |
| Debian | golang-github-gomarkdown-markdown | source | trixie | (unfixed) | not yet assigned | Not reported | Not reported |
| Debian | golang-github-gomarkdown-markdown | source | bookworm | (unfixed) | not yet assigned | Not reported | Not reported |
| Go | github.com/gomarkdown/markdown | Go | Not reported | 0.0.0-20260724235538-61af6e1e6971 | Not reported | GHSA-CV23-7VC5-JFH7 | Not reported |
Notes
[trixie] golang-github-gomarkdown-markdown: Minor issue
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [golang-github-gomarkdown-markdown-dev]Affected
Source package: [golang-github-gomarkdown-markdown]
Details (2)
0.0~git20220731.dcdaee8-2· all · bookwormAffected
nvd · golang-github-gomarkdown-markdown · debian · bookworm; nvd · golang-github-gomarkdown-markdown · debian · 12
0.0~git20220731.dcdaee8-2· all · bookwormAffected
nvd · golang-github-gomarkdown-markdown · debian · bookworm; nvd · golang-github-gomarkdown-markdown · debian · 12
[Debian 13 (Trixie)]
- [golang-github-gomarkdown-markdown-dev]Affected
Source package: [golang-github-gomarkdown-markdown]
Details (2)
0.0~git20231115.a660076-1· all · trixieAffected
nvd · golang-github-gomarkdown-markdown · debian · 13
0.0~git20231115.a660076-1· all · trixieAffected
nvd · golang-github-gomarkdown-markdown · debian · 13
Observed:
References
- [https://github.com/advisories/GHSA-cv23-7vc5-jfh7]
- [https://github.com/gomarkdown/markdown/commit/61af6e1e69710c5ca13cfbaaaa1bc11bc763a8a9]
- [https://github.com/gomarkdown/markdown/security/advisories/GHSA-cv23-7vc5-jfh7]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-102941]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-102941]
- [https://osv.dev/vulnerability/GHSA-cv23-7vc5-jfh7]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2026-102941]
- [https://security-tracker.debian.org/tracker/CVE-2026-102941]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-102941.json]
[Debian Security Tracker] · [FIRST EPSS] · [GitHub Advisory Database] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX]