CVE-2026-102941
Reported by GitHub_M · Published October 16, 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.
Risk Scores
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| gomarkdown | markdown | < 0.0.0-20260724235538-61af6e1e6971 |
| wolfi | temporal-ui-server | 0 |
| wolfi | temporal | 0 |
| chainguard | kube-metrics-adapter | 0 |
| chainguard | coder-2.33 | 0 |
| gomarkdown | markdown | 0 |
| chainguard | fq | 0 |
| chainguard | coder-fips-2.33 | 0 |
| chainguard | temporal | 0 |
| chainguard | temporal-fips | 0 |
| wolfi | kube-metrics-adapter | 0 |
| chainguard | coder-2.29 | 0 |
| chainguard | temporal-ui-server-fips | 0 |
| chainguard | coder-fips-2.34 | 0 |
| wolfi | fq | 0 |
| github.com | gomarkdown/markdown | 0 |
| chainguard | coder-2.34 | 0 |
| chainguard | kube-metrics-adapter-fips | 0 |
| chainguard | coder-fips-2.32 | 0 |
| chainguard | temporal-ui-server | 0 |
…and 4 more
Timeline
- Oct 16, 2026 CVE Published
- Oct 16, 2026 Coalition ESS Score
- Oct 17, 2026 EPSS Score
- Oct 20, 2026 EPSS Score
- Oct 22, 2026 EPSS Score
- Oct 25, 2026 EPSS Score
- Oct 26, 2026 CVE Updated
- Oct 29, 2026 EPSS Score
- Oct 30, 2026 Security Advisory
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
- https://nvd.nist.gov/vuln/detail/CVE-2026-102941 advisory
- https://github.com/advisories/GHSA-cv23-7vc5-jfh7 advisory