Server-side Request Forgery (SSRF) Affecting github.com/gohugoio/hugo/tpl/os package, versions >=0.162.0 <0.163.1


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.37% (30th 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-GITHUBCOMGOHUGOIOHUGOTPLOS-17394017
  • published22 Jun 2026
  • disclosed19 Jun 2026
  • creditUnknown

Introduced: 19 Jun 2026

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

How to fix?

Upgrade github.com/gohugoio/hugo/tpl/os to version 0.163.1 or higher.

Overview

Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) in the resources.GetRemote process while the host platform uses the cgo system resolver. When alternate IPv4 encodings are used in URLs, such as integer, hexadecimal, or octal representations, which bypass the intended deny rules an attacker can access internal or cloud-metadata endpoints by supplying specially crafted URLs that resolve to restricted addresses, potentially exposing sensitive internal resources during build-time requests.

CVSS Base Scores

version 4.0
version 3.1