8000 Upgrade github.com/yuin/goldmark to address CVW-2026-5160 · Issue #328 · uber-go/mock · GitHub
[go: up one dir, main page]

Skip to content

Upgrade github.com/yuin/goldmark to address CVW-2026-5160 #328

Open

Description

@snemani2085

The current release (v0.6.0) includes a transitive dependency on:

github.com/yuin/goldmark v1.4.13

Security scanners are reporting:

CVE-2026-5160
CWE-79 (Cross Site Scription)
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.

Affected versions:
github.com/yuin/goldmark < v1.7.17

Please refer to advisories
GHSA-c97m-vxhj-p7j6

The progject's go.mod currently resolves goldmark v1.4.13.

Would the maintainers be willing to upgrade the dependency to non-vulnerable version (v1.7.17 or later)?

We've confiremd the issue remains in the latest go.uber.org/mock release (V0.6.0).

Thank you
Santy

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0