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
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
- JavaScriptT1059.007
Indicators of compromise
- CVE-2026-102941cve
- CVE-2026-40890cve
- CVE-2024-44337cve
- http://example.com)`url
Original source: https://github.com/advisories/GHSA-cv23-7vc5-jfh7