CVE-2026-50135: Hugo is a static site generator
Affects hugoSource GCVE Database
Not known to be exploited · CVSS 6.9 Medium · fixed in 0.162.0 : update hugo when convenient.
Data as of 24 Nov 2026, 20:42 UTC
- Patch
- Available – fixed in 0.162.0
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:N/VA:N/SC:N/SI:N/SA:NExploitation evidence
Disclosed: evidence found.
CVE published 6 Jul 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 23 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.10hugopkg:deb/ubuntu/hugo?arch=source&distro=stonkingOther threats | Affected
| Fixed in– |
Ubuntu 26.04 LTShugopkg:deb/ubuntu/hugo?arch=source&distro=resoluteOther threats | Affected
| Fixed in– |
Ubuntu 25.10hugopkg:deb/ubuntu/hugo?arch=source&distro=questingOther threats | Affected
| Fixed in– |
Ubuntu Pro 24.04 LTShugopkg:deb/ubuntu/hugo?arch=source&distro=esm-apps/nobleOther threats | Affected
| Fixed in– |
Ubuntu 22.04 LTShugopkg:deb/ubuntu/hugo?arch=source&distro=jammyOther threats | Affected
| Fixed in– |
Ubuntu 20.04 LTShugopkg:deb/ubuntu/hugo?arch=source&distro=focalOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
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.
References
- ubuntu.com/security/CVE-2026-50135 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2026-50135 (opens in a new tab)
- github.com/gohugoio/hugo/security/advisories/GHSA-fw87-fv5r-9fpw (opens in a new tab)
- github.com/gohugoio/hugo/commit/f8b5fa09a64950c32b803821ede411ebfe772b7a (opens in a new tab)
- github.com/gohugoio/hugo/releases/tag/v0.162.0 (opens in a new tab)