CVE catalog

CVE-2026-5160

Versions of the package github.com/yuin/goldmark/renderer/html before 1.7.17 are vulnerable to Cross-site Scripting (XSS) due to improper ordering of URL validation and normalization. The renderer val

[CVE catalog]

Severity
Medium · CVSS 6.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
Published
Source
[NVD] · [CVE record]
EPSS
0.29% · Oct 25, 2026

Versions of the package github.com/yuin/goldmark/renderer/html before 1.7.17 are vulnerable to Cross-site Scripting (XSS) due to improper ordering of URL validation and normalization. The renderer validates link destinations using a prefix-based check (IsDangerousURL) before resolving HTML entities. This allows an attacker to bypass protocol filtering by encoding dangerous schemes using HTML5 named character references. For example, a payload such as javascript:alert(1) is not recognized as dangerous during validation, leading to arbitrary script execution in the context of applications that render the URL.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debiangolang-github-yuin-goldmarksid1.8.2-2fixed
Debiangolang-github-yuin-goldmarkforky1.8.2-2fixed
Debiangolang-github-yuin-goldmarktrixie1.7.4-1vulnerable
Debiangolang-github-yuin-goldmarkbookworm1.5.4-1vulnerable
Cpegolang-github-yuin-goldmarkNot reportedNot reportedvulnerable
CpegoldmarkNot reported1.7.17fixed
Gogithub.com/yuin/goldmarkNot reported1.7.17fixed
Opensusemcphosttumbleweed0.34.0-9.1fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiangolang-github-yuin-goldmarksourcesid1.8.2-1not yet assignedNot reportedNot reported
Debiangolang-github-yuin-goldmarksourceforky1.8.2-1not yet assignedNot reportedNot reported
Debiangolang-github-yuin-goldmarksourcetrixie(unfixed)not yet assignedNot reportedNot reported
Debiangolang-github-yuin-goldmarksourcebookworm(unfixed)not yet assignedNot reportedNot reported
CpegoldmarkcpeNot reported1.7.17Not reportedNot reportedNot reported
Gogithub.com/yuin/goldmarkGoNot reported1.7.17Not reportedNot reportedNot reported
Opensusemcphostrpmtumbleweed0.34.0-9.1Not reportedOPENSUSE-SU-2026:11366-1Not reported

Notes

[trixie] golang-github-yuin-goldmark: Minor issue [bookworm] golang-github-yuin-goldmark: Minor issue

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • Source package: [golang-github-yuin-goldmark]

    Details (2)
    • 1.5.4-1 · all · bookworm

      Affected

      nvd · golang-github-yuin-goldmark · debian · bookworm; nvd · golang-github-yuin-goldmark · debian · 12

    • 1.5.4-1 · all · bookworm

      Affected

      nvd · golang-github-yuin-goldmark · debian · bookworm; nvd · golang-github-yuin-goldmark · debian · 12

[Debian 13 (Trixie)]

[openSUSE Tumbleweed]

  • Source package: [mcphost]

    Details (1)
    • 0.34.0-9.2 · noarch · tumbleweed

      Unknown · Fixed: 0.34.0-9.1

      Version impact unknown

      nvd · mcphost · opensuse · tumbleweed

  • Source package: [mcphost]

    Details (1)
    • 0.34.0-9.2 · noarch · tumbleweed

      Unknown · Fixed: 0.34.0-9.1

      Version impact unknown

      nvd · mcphost · opensuse · tumbleweed

  • Source package: [mcphost]

    Details (1)
    • 0.34.0-9.2 · noarch · tumbleweed

      Unknown · Fixed: 0.34.0-9.1

      Version impact unknown

      nvd · mcphost · opensuse · tumbleweed

  • [mcphost]Fixed

    Source package: [mcphost]

    Details (1)
    • 0.34.0-9.2 · x86_64 · tumbleweed

      Fixed · Fixed: 0.34.0-9.1

      nvd · mcphost · opensuse · tumbleweed

Observed:

References