SCA: security update for github.com/gomarkdown/markdown (GHSA-cv23-7vc5-jfh7)

high Tenable Cloud Security Plugin ID 476089

Description

There are packages installed that are affected by a vulnerability referenced in the following CVE:

- 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.
(CVE-2026-102941)

Solution

Update the github.com/gomarkdown/markdown library and its related packages to version 0.0.0-20260724235538-61af6e1e6971 or later.

See Also

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

Plugin Details

Severity: High

ID: 476089

Version: Revision 1.1

Type: Local

Family: SCA Checks

Published: 10/17/2026

Updated: 10/17/2026

Risk Information

Vendor

Vendor Severity: High

CVSS v2

Risk Factor: High

Base Score: 7.8

Temporal Score: 5.8

Vector: CVSS2#AV:N/AC:L/Au:N/C:N/I:N/A:C

CVSS Score Source: CVE-2026-102941

CVSS v3

Risk Factor: High

Base Score: 7.5

Temporal Score: 6.5

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

Vulnerability Information

Exploit Ease: No known exploits are available

Patch Publication Date: 10/16/2026

Vulnerability Publication Date: 10/16/2026

Reference Information

CVE: CVE-2026-102941

cwe: CWE-125