Bug 2554173 (CVE-2026-102941) - CVE-2026-102941 github.com/gomarkdown/markdown: github.com/gomarkdown/markdown: Denial of Service via short URL parsing
Summary: CVE-2026-102941 github.com/gomarkdown/markdown: github.com/gomarkdown/markdow...
Keywords:
Status: NEW
Alias: CVE-2026-102941
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2555410 2555411 2555412 2555416 2555417
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-10-16 15:57 UTC by OSIDB Bzimport
Modified: 2026-10-19 08:14 UTC (History)
21 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-10-16 15:57:13 UTC
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.


Note You need to log in before you can comment on or make changes to this bug.