<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/" version="2.0">
  <channel>
    <title>Most recent entries from all</title>
    <link>https://db.gcve.eu</link>
    <description>Contains only the most 10 recent entries.</description>
    <docs>http://www.rssboard.org/rss-specification</docs>
    <generator>python-feedgen</generator>
    <language>en</language>
    <lastBuildDate>Sat, 17 Oct 2026 13:31:58 +0000</lastBuildDate>
    <item>
      <title>fkie_cve-2026-102941</title>
      <link>https://db.gcve.eu/vuln/fkie_cve-2026-102941</link>
      <description>&lt;p&gt;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) &amp;gt;= nPath guard. A short destination causes a slice-bounds panic when the loop reaches a relative-path prefix for which len(url) &amp;lt; nPath and cap(url) &amp;lt; 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.&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;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) &amp;gt;= nPath guard. A short destination causes a slice-bounds panic when the loop reaches a relative-path prefix for which len(url) &amp;lt; nPath and cap(url) &amp;lt; 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.&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/fkie_cve-2026-102941</guid>
    </item>
    <item>
      <title>GHSA-cv23-7vc5-jfh7 — gomarkdown/markdown IsSafeURL panics on short URLs</title>
      <link>https://db.gcve.eu/vuln/ghsa-cv23-7vc5-jfh7</link>
      <description>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Go: github.com/gomarkdown/markdown&lt;/p&gt;
&lt;p&gt;## Summary&lt;/p&gt;
&lt;p&gt;IsSafeURL slices url[:nPath] before checking that len(url) &amp;gt;= 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 link destination, giving an unrecoverable crash DoS. Confirmed at HEAD (e08cff8; present since 2022).&lt;/p&gt;
&lt;p&gt;## The defect&lt;/p&gt;
&lt;p&gt;parser/parser.go, IsSafeURL:&lt;/p&gt;
&lt;p&gt;```go
func IsSafeURL(url []byte) bool {
    nLink := len(url)
    for _, path := range validPaths {          // &amp;#34;/&amp;#34;, &amp;#34;./&amp;#34;, &amp;#34;../&amp;#34;
        nPath := len(path)
        linkPrefix := url[:nPath]               // line 789: sliced BEFORE the length guard
        if nLink &amp;gt;= nPath &amp;amp;&amp;amp; bytes.Equal(linkPrefix, path) {   // line 790: guard is too late
            ...
```&lt;/p&gt;
&lt;p&gt;url[:nPath] is evaluated before the `nLink &amp;gt;= nPath` check. When len(url) &amp;lt; nPath and cap(url) &amp;lt; nPath, the slice expression panics. Only the relative-path loop is affected; the adjacent URIs loop is already correctly guarded (the signal that this one deviates, the same signal as the anchor). Input: IsSafeURL(&amp;#34;&amp;#34;) panics ([:1] cap 0), IsSafeURL(&amp;#34;.&amp;#34;) panics ([:2] cap 1), IsSafeURL(&amp;#34;..&amp;#34;) panics ([:3] cap 2), while IsSafeURL(&amp;#34;/&amp;#34;) returns true. End to end: `markdown.ToHTML(input, html.CommonFlags|html.Safelink)` with input `[x]()` panics. Attacker model: (1) any service rendering untrusted Markdown with the html.Safelink flag (the URL-sanitizing hardening flag itself introduces the crash); or…&lt;/p&gt;</description>
      <content:encoded>&lt;p&gt;&lt;strong&gt;Affected:&lt;/strong&gt; Go: github.com/gomarkdown/markdown&lt;/p&gt;
&lt;p&gt;## Summary&lt;/p&gt;
&lt;p&gt;IsSafeURL slices url[:nPath] before checking that len(url) &amp;gt;= 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 link destination, giving an unrecoverable crash DoS. Confirmed at HEAD (e08cff8; present since 2022).&lt;/p&gt;
&lt;p&gt;## The defect&lt;/p&gt;
&lt;p&gt;parser/parser.go, IsSafeURL:&lt;/p&gt;
&lt;p&gt;```go
func IsSafeURL(url []byte) bool {
    nLink := len(url)
    for _, path := range validPaths {          // &amp;#34;/&amp;#34;, &amp;#34;./&amp;#34;, &amp;#34;../&amp;#34;
        nPath := len(path)
        linkPrefix := url[:nPath]               // line 789: sliced BEFORE the length guard
        if nLink &amp;gt;= nPath &amp;amp;&amp;amp; bytes.Equal(linkPrefix, path) {   // line 790: guard is too late
            ...
```&lt;/p&gt;
&lt;p&gt;url[:nPath] is evaluated before the `nLink &amp;gt;= nPath` check. When len(url) &amp;lt; nPath and cap(url) &amp;lt; nPath, the slice expression panics. Only the relative-path loop is affected; the adjacent URIs loop is already correctly guarded (the signal that this one deviates, the same signal as the anchor). Input: IsSafeURL(&amp;#34;&amp;#34;) panics ([:1] cap 0), IsSafeURL(&amp;#34;.&amp;#34;) panics ([:2] cap 1), IsSafeURL(&amp;#34;..&amp;#34;) panics ([:3] cap 2), while IsSafeURL(&amp;#34;/&amp;#34;) returns true. End to end: `markdown.ToHTML(input, html.CommonFlags|html.Safelink)` with input `[x]()` panics. Attacker model: (1) any service rendering untrusted Markdown with the html.Safelink flag (the URL-sanitizing hardening flag itself introduces the crash); or…&lt;/p&gt;</content:encoded>
      <guid isPermaLink="false">https://db.gcve.eu/vuln/ghsa-cv23-7vc5-jfh7</guid>
    </item>
  </channel>
</rss>
