Symlink Attack Affecting github.com/gohugoio/hugo/hugofs package, versions >=0.123.0 <0.162.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.41% (34th 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-GITHUBCOMGOHUGOIOHUGOHUGOFS-17357201
  • published17 Jun 2026
  • disclosed16 Jun 2026
  • creditunknownhad

Introduced: 16 Jun 2026

CVE-2026-50135  (opens in a new tab)
CWE-59  (opens in a new tab)

How to fix?

Upgrade github.com/gohugoio/hugo/hugofs to version 0.162.0 or higher.

Overview

Affected versions of this package are vulnerable to Symlink Attack via the resources.Get function. An attacker can access arbitrary files outside the intended directory by placing a symlink inside a mounted directory that points to files outside the mount. This is only exploitable if the attacker is able to place, or convince a site author to place, a symlink inside a mounted directory.

CVSS Base Scores

version 4.0
version 3.1