CVE-2026-102941: CWE-125: Out-of-bounds Read in gomarkdown markdown
Description
CVE-2026-102941 is an out-of-bounds read vulnerability in the gomarkdown markdown Go library. It occurs in the parser.IsSafeURL function when slicing a URL without proper length checks, causing a panic on short or malformed URLs. This panic can terminate the calling process, leading to denial of service. The issue affects versions prior to 0.0.0-20260724235538-61af6e1e6971 and is fixed in that version.
CVSS v3.1
Score 7.5high
Affected software
gomarkdown
markdown
pkg:golang/github.com/gomarkdown/markdownRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The gomarkdown markdown library's parser.IsSafeURL function slices url[:nPath] before verifying that len(url) >= nPath, leading to a slice-bounds panic when processing short URLs with relative-path prefixes. This vulnerability is triggered when rendering untrusted Markdown with html.Safelink enabled or by directly passing attacker-controlled short URLs to IsSafeURL. The panic causes an uncaught runtime error that can terminate the process, resulting in denial of service. The issue is resolved in version 0.0.0-20260724235538-61af6e1e6971.
Potential Impact
An attacker can cause the application using gomarkdown markdown to panic and terminate unexpectedly by supplying crafted short URLs or Markdown content with unsafe links. This leads to denial of service but does not impact confidentiality or integrity.
Mitigation Recommendations
Upgrade gomarkdown markdown to version 0.0.0-20260724235538-61af6e1e6971 or later, where the issue is fixed. No other mitigations are indicated by the vendor advisory.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-09-29T20:24:43.341Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6ad247a02cdf04f65602f977
Added to database: 10/16/2026, 15:49:52 UTC
Last enriched: 10/16/2026, 16:03:20 UTC
Last updated: 10/16/2026, 16:28:16 UTC
Views: 5
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.