Server-side Request Forgery (SSRF) Affecting github.com/gohugoio/hugo/resources/resource_factories/create package, versions >=0.91.0 <0.162.0


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.25% (17th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-GOLANG-GITHUBCOMGOHUGOIOHUGORESOURCESRESOURCEFACTORIESCREATE-17357204
  • published17 Jun 2026
  • disclosed16 Jun 2026
  • creditunknownhad

Introduced: 16 Jun 2026

CVE-2026-50134  (opens in a new tab)
CWE-918  (opens in a new tab)

How to fix?

Upgrade github.com/gohugoio/hugo/resources/resource_factories/create to version 0.162.0 or higher.

Overview

Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) via the resources.GetRemote process when HTTP redirects are not properly validated against the configured allow-list. An attacker can access restricted internal or otherwise forbidden hosts by leveraging a crafted redirect chain from an allowed server. This is only exploitable if the environment relies on security.http.urls as a trust boundary, such as CI builds fetching remote resources with host constraints.

Workaround

This vulnerability can be mitigated by installing a custom CheckRedirect function on the HTTP client to enforce allow-list validation on every redirect target and limit the number of redirects.

CVSS Base Scores

version 4.0
version 3.1