Vulnerability in Gohugo Hugo
CVE-2026-50135
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.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 5.5 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N.
EPSS exploit prediction
EPSS: 0.004 (33.3th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 33rd percentile — 33.3% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.004 · newest: 0.004 · change: 0.000
Affected products
- Gohugo Hugo
- Gohugoio Hugo — versions >= 0.123.0, < 0.162.0
Weakness classification (CWE)
References
- github.com/gohugoio/hugo/security/advisories/GHSA-fw87-fv5r-9fpw (Patch, Vendor Advisory)
- github.com/gohugoio/hugo/commit/f8b5fa09a64950c32b803821ede411ebfe772b7a (Patch)
- github.com/gohugoio/hugo/releases/tag/v0.162.0 (Product, Release Notes)
Frequently asked questions
- What is CVE-2026-50135?
- CVE-2026-50135 is a medium-severity vulnerability in Gohugo Hugo, classified under Improper Link Resolution Before File Access. CVSS score: 5.5/10. Published 2026-07-06.
- How severe is CVE-2026-50135?
- Medium severity. CVSS v3 base score is 5.5 out of 10.