SecurityContext

CVE-2026-102941: github.com/gomarkdown/markdown - Denial of Service

  • Cve: CVE-2026-102941
  • Name: github.com/gomarkdown/markdown - Denial of Service
  • 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.
  • Impact: Attackers can cause process termination leading to denial of service by triggering a panic with crafted short URLs.
  • Remediation: Update to version 0.0.0-20260724235538-61af6e1e6971 or later.
  • Vulnerability impact: denial_of_service
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: high
  • Cvss score: 7.5
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Epss score: 0.00279
  • Epss percentile: 0.20411
  • Assignee: [email protected]
  • Published at: 2026-10-16T16:16:52Z
  • Age in days: 39
  • Modified at: 2026-10-26T18:17:23Z
  • Patch available: yes
  • References total: 2
  • Products total: 1
  • Oss: yes
  • Projects total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-102941
  • Nvd status: deferred
  • Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
  • Not known: vulnerability type, requirements, hackerone

Cwe

IdName
CWE-125Out-of-bounds Read

References

UrlSourceTags
https://github.com/gomarkdown/markdown/commit/61af6e1e69710c5ca13cfbaaaa1bc11bc763a8a9nvd
https://github.com/gomarkdown/markdown/security/advisories/GHSA-cv23-7vc5-jfh7nvd

Products

ProductAffectedPlatform boundSourcesUrl
gomarkdown:markdown< 0.0.0-20260724235538-61af6e1e6971nocna_alias_text/v1/products/gomarkdown/markdown

Projects

RepositoryLink kindsIndexedUrl
gomarkdown/markdowncommit, package, security_advisoryyes/v1/repositories/gomarkdown/markdown

Index

  • Repositories: 42
  • Repositories high signal: 33
  • Packages: 1

Exploitation

  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts