CVE-2026-102941
Last modified
CVE-2026-102941 is a high-severity vulnerability rated 7.5/10 on the CVSS scale. 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. EPSS estimates a 0.28% chance of exploitation in the next 30 days.
Description
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.
Metrics
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| gomarkdown | markdown | < 0.0.0-20260724235538-61af6e1e6971 |
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2026-102941?
How severe is CVE-2026-102941?
How do I fix CVE-2026-102941?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-102925virtualenv is a tool for creating isolated virtual python en…7.8
- CVE-2026-10293A flaw has been found in UTT HiPER 1200GW up to 2.5.3-170306…8.8
- CVE-2026-102930virtualenv is a tool for creating isolated virtual python en…7.7
- CVE-2026-102937virtualenv is a tool for creating isolated virtual python en…7.3
- CVE-2026-102938virtualenv is a tool for creating isolated virtual python en…5.8
- CVE-2026-10294A vulnerability has been found in PackageKit up to 1.3.5. Af…4.3
- CVE-2026-102944cpp-httplib is a C++ header-only HTTP/HTTPS library. Prior t…7.5
- CVE-2026-102946joserfc is a Python library that provides an implementation …9.1
- CVE-2026-10295A vulnerability was found in SourceCodester Customer Review …3.3
- CVE-2026-10296A vulnerability was determined in itsourcecode Fees Manageme…6.3
- CVE-2026-10297A vulnerability was identified in itsourcecode Fees Manageme…6.3
- CVE-2026-10298A security flaw has been discovered in ggml-org whisper.cpp …3.3
Are you affected by CVE-2026-102941?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
