Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-102941— gomarkdown/markdown IsSafeURL panics on short URLs

Quick assessment

Affected
gomarkdown markdown
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

是一个用于解析 Markdown 文本并将其渲染为 HTML 的 Go 库。在版本 之前, 文件中的 函数在执行 的边界检查之前,就尝试对 进行切片操作。当目标 URL 较短时,若循环处理到某个相对路径前缀且满足 以及 的条件,就会触发切片越界恐慌(panic)。单字节目标路径 是一个明确的非恐慌反例,因为它匹配第一个有效路径并在尝试对更长前缀进行切片之前直接返回。在所述条件下,已证实会触发恐慌的目标包括空字符串、 和 。该恐慌在以下场景可达:当 在启用 选项时渲染不可信的 Markdown 内容(其中包含空链接目

CVSS 7.5 · High EPSS 0.28% · P19

Possible ATT&CK Techniques 1 AI

T1190 · Exploit Public-Facing Application

Affected Version Matrix 1

VendorProduct Version RangeStatus
gomarkdown markdown < 0.0.0-20260724235538-61af6e1e6971 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-102941

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
gomarkdown/markdown IsSafeURL panics on short URLs
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
跨界内存读
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
gomarkdown markdown < 0.0.0-20260724235538-61af6e1e6971 -

II. Public POCs for CVE-2026-102941

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-102941

请登录查看更多情报信息。

Patches & Fixes for CVE-2026-102941 (1)

Vendor Advisories for CVE-2026-102941 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-102941

No comments yet


Leave a comment