Impact
The vulnerability arises in the gomarkdown/markdown Go library where the IsSafeURL function slices a URL string before verifying its length, leading to a slice‑bounds panic when the URL is shorter than expected. This out‑of‑bounds error, identified as CWE‑125, can be triggered by empty or short link destinations such as "", ".", or ".." when rendering Markdown with the Safelink option enabled. The resulting panic terminates the calling process, causing a denial of service.
Affected Systems
All versions of the gomarkdown/markdown library earlier than 0.0.0-20260724235538-61af6e1e6971 are affected. Applications that import the library and call markdown.ToHTML with html.Safelink enabled or that directly invoke parser.IsSafeURL with attacker‑controlled input will be impacted.
Risk and Exploitability
The CVSS score of 7.5 indicates high severity, and the lack of an EPSS score suggests no publicly known exploits yet; it is not listed in CISA KEV. The vulnerability is likely exploitable through maliciously crafted Markdown input sent to a process using the library, allowing an attacker without privileged access to cause a crash and disrupt service. Based on the description, it is inferred that the attack vector is remote via user supplied Markdown.
OpenCVE Enrichment
Github GHSA