THREATOPS
THREAT OPS › Threat News › [GHSA] GHSA-cv23-7vc5-jfh7 (high) — gomarkdown/markdown IsSafeURL panics on short URLs

[GHSA] GHSA-cv23-7vc5-jfh7 (high) — gomarkdown/markdown IsSafeURL panics on short URLs

highgithub_advisoriesPublished 2026-10-16

GHSA-cv23-7vc5-jfh7 Severity: high CVE: CVE-2026-102941

gomarkdown/markdown IsSafeURL panics on short URLs

## Summary

IsSafeURL slices url[:nPath] before checking that len(url) >= nPath, so a URL shorter than a path prefix (0, 1 or 2 bytes) triggers a slice-bounds panic, and this is reached end to end when the html.Safelink hardening flag is enabled and the input contains an empty or very short

MITRE ATT&CK techniques

Indicators of compromise

Original source: https://github.com/advisories/GHSA-cv23-7vc5-jfh7