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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:13 | hugo | no fix listed | DEBIAN-CVE-2026-50135 |
| Debian:14 | hugo | 0.162.1-1 | DEBIAN-CVE-2026-50135 |
| Go | github.com/gohugoio/hugo | 0.162.0 | GHSA-fw87-fv5r-9fpw |
| Go | github.com/gohugoio/hugo | 0.162.0 | GO-2026-5380 |
| Ubuntu:22.04:LTS | hugo | no fix listed | UBUNTU-CVE-2026-50135 |
| Ubuntu:25.10 | hugo | no fix listed | UBUNTU-CVE-2026-50135 |
| Ubuntu:26.04:LTS | hugo | no fix listed | UBUNTU-CVE-2026-50135 |
| Ubuntu:26.10 | hugo | no fix listed | UBUNTU-CVE-2026-50135 |
Affected products (as reported)
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
- https://github.com/gohugoio/hugo/security/advisories/GHSA-fw87-fv5r-9fpw x_refsource_CONFIRM
- https://github.com/gohugoio/hugo/commit/f8b5fa09a64950c32b803821ede411ebfe772b7a x_refsource_MISC
- https://github.com/gohugoio/hugo/releases/tag/v0.162.0 x_refsource_MISC