---
title: "CVE-2026-102941"
canonical_url: "https://pkgseek.com/security/CVE-2026-102941"
locale: "en"
source: "pkgseek"
entity_type: "cve"
severity: "high"
---

# 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\[:nPath\] before the len(url) &gt;= nPath guard. A short destination causes a slice-bounds panic when the loop reaches a relative-path prefix for which len(url) &lt; nPath and cap(url) &lt; 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 .. destination…

CVE-2026-102941 is rated HIGH (7.5), with 1 indexed affected package builds across 1 distributions.

- **Severity / Score**: HIGH (7.5)
- **Affected builds**: 1
- **Affected distros**: 1
- **Distros with fixed_in**: None recorded in sample

## Affected Packages

| Distribution | Release | Package | Version | Fixed In |
| --- | --- | --- | --- | --- |
| Debian | trixie | golang-github-gomarkdown-markdown-dev | 0.0~git20231115.a660076-1 | — |
