Vulnerability · Published Jul 6, 2026 · Assigned by GitHub_M

CVE-2026-50135Hugo: Symlink confinement bypass in resources.Get

Medium 6.9

In plain English

A medium-severity security flaw in hugo from gohugoio. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 36% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)6.9Medium
Exploit odds (30 days)0.4%top 64.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official description

Hugo is a static site generator. From 0.123.0 to 0.161.1, a regression made  RootMappingFs.statRoot  use  Stat  (follows symlinks) instead of  Lstat , so a direct  resources.Get  of a symlink pointing outside its mount returned the target's contents — letting a symlink planted in a local mount (e.g. a vendored  themes/  theme) read arbitrary files accessible to the Hugo user. Go-module themes from GitHub (symlinks stripped) and directory walks were unaffected. Fixed in 0.162.0.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:13hugono fix listedDEBIAN-CVE-2026-50135
Debian:14hugo0.162.1-1DEBIAN-CVE-2026-50135
Gogithub.com/gohugoio/hugo0.162.0GHSA-fw87-fv5r-9fpw
Gogithub.com/gohugoio/hugo0.162.0GO-2026-5380
Ubuntu:22.04:LTShugono fix listedUBUNTU-CVE-2026-50135
Ubuntu:25.10hugono fix listedUBUNTU-CVE-2026-50135
Ubuntu:26.04:LTShugono fix listedUBUNTU-CVE-2026-50135
Ubuntu:26.10hugono fix listedUBUNTU-CVE-2026-50135

Affected products (as reported)

VendorProductVersions
gohugoio hugo >= 0.123.0, < 0.162.0

Weakness: CWE-59 · Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

References