CVE-2026-50135: gohugo hugo Link Following
Vulnerability summary
CVE-2026-50135 is a medium (CVSS 6.9) Link Following vulnerability in gohugo hugo. EPSS estimates a 0.41% chance of exploitation in the next 30 days, higher than 34.1% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 2 · Related 1Timeline
- 06-07-2026PublishedVulnerability first disclosed.
- 07-07-2026Last modifiedVulnerability information updated.
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.
CVSS metrics
7 scores · 5 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated6.9MediumCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
- OSV · GoEcosystem advisory · calculated6.9MediumCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
- NVDNIST6.9MediumCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
- OSV · DebianEcosystem advisory · calculated5.5MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
- NVDNIST5.5MediumCVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
EPSS trend
Probability
0.41%
Chance of exploitation in the next 30 days
Percentile
34%
Versus all other CVEs
30-day change
0.00 pp
From 0.41% on 21-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Debian1 product
- hugoAll versions (No fix recorded) | < 0.162.1-1
Github.com/gohugoio1 product
- hugo≥ 0.123.0, < 0.162.0
Gohugo1 product
- hugo≥ 0.123.0, < 0.161.1
Gohugoio1 product
- hugo≥ 0.123.0, < 0.162.0
Ubuntu1 product
- hugoAll versions (No fix recorded)
5 vendors · 5 products
References
7 links- github.com/gohugoio/hugo/security/advisories/GHSA-fw87-fv5r-9fpwX Refsource CONFIRMREPORTWEBAdvisoryPatchVendor Advisory
- github.com/gohugoio/hugo/commit/f8b5fa09a64950c32b803821ede411ebfe772b7aX Refsource MISCREPORTWEBFIXPatch
- github.com/gohugoio/hugoPACKAGE