Skip to main content
CVE-2026-5160VulnerabilityPublished Updated

Golang github yuin goldmark: Versions of the package github.com/yuin/goldmark/renderer/html before 1.7.17 are

Affects golang-github-yuin-goldmarkSource GCVE Database

0
Compare
Authoritative record:CVE-2026-5160· Medium 5.1

Not known to be exploited · CVSS 5.1 Medium.

Data as of 24 Nov 2026, 21:16 UTC

CVSS 4.0 base score
5.1Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.2% chance of exploitation in 30 days – higher than 21% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:L/VA:N/SC:L/SI:L/SA:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 15 Apr 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 24 Nov 2026.

What to do

Affected software

ProductAffectedFixed in
Ubuntu 26.10golang-github-yuin-goldmarkpkg:deb/ubuntu/golang-github-yuin-goldmark?arch=source&distro=stonkingOther threatsAffected
  • =1.7.13-1
  • =1.8.2-1
  • =1.8.2-2
Fixed in–
Ubuntu 26.04 LTSgolang-github-yuin-goldmarkpkg:deb/ubuntu/golang-github-yuin-goldmark?arch=source&distro=resoluteOther threatsAffected
  • =1.7.4-1
  • =1.7.13-1
Fixed in–
Ubuntu 25.10golang-github-yuin-goldmarkpkg:deb/ubuntu/golang-github-yuin-goldmark?arch=source&distro=questingOther threatsAffected
  • =1.7.4-1
Fixed in–
Ubuntu 24.04 LTSgolang-github-yuin-goldmarkpkg:deb/ubuntu/golang-github-yuin-goldmark?arch=source&distro=nobleOther threatsAffected
  • 1.5.4-1 – 1.7.0-1
4 affected builds
Fixed in–
Ubuntu 22.04 LTSgolang-github-yuin-goldmarkpkg:deb/ubuntu/golang-github-yuin-goldmark?arch=source&distro=jammyOther threatsAffected
  • 1.3.2-1 – 1.4.4-1
4 affected builds
Fixed in–
Ubuntu 20.04 LTSgolang-github-yuin-goldmarkpkg:deb/ubuntu/golang-github-yuin-goldmark?arch=source&distro=focalOther threatsAffected
  • 1.1.12-1 – 1.1.25-1
6 affected builds
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

Description

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.

References

Community reviews

Loading reviews…