
CVE catalog
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
- Severity
- Medium · CVSS 6.9
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/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 - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.41% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | hugo | sid | 0.168.0-3 | fixed |
| Debian | hugo | forky | 0.167.0-7 | fixed |
| Debian | hugo | trixie | 0.131.0-1 | vulnerable |
| Debian | hugo | bookworm | 0.111.3-1 | not affected |
| Cpe | hugo | Not reported | Not reported | vulnerable |
| Cpe | hugo | Not reported | 0.161.1 | fixed |
| Go | github.com/gohugoio/hugo | Not reported | 0.162.0 | fixed |
| Cpe | hugo | Not reported | 0.161.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | hugo | source | sid | 0.162.1-1 | not yet assigned | Not reported | Not reported |
| Debian | hugo | source | forky | 0.162.1-1 | not yet assigned | Not reported | Not reported |
| Debian | hugo | source | trixie | (unfixed) | not yet assigned | Not reported | Not reported |
| Debian | hugo | source | bookworm | Not affected | unimportant | Not reported | Not reported |
| Cpe | hugo | cpe | Not reported | 0.161.1 | Not reported | Not reported | Not reported |
| Go | github.com/gohugoio/hugo | Go | Not reported | 0.162.0 | Not reported | Not reported | Not reported |
| Cpe | hugo | cpe | Not reported | 0.161.1 | Not reported | NVD-CVE-2026-50135 | Not reported |
Notes
[trixie] hugo: Minor issue
OpenFactory catalog packages
[Debian 13 (Trixie)]
- [hugo]Affected
Details (2)
0.131.0-1· amd64 · trixieAffected
nvd · hugo · debian · 13
0.131.0-1· arm64 · trixieAffected
nvd · hugo · debian · 13
[Debian 12 (Bookworm)]
- [hugo]Not affected
Details (2)
0.111.3-1· amd64 · bookwormNot affected
nvd · hugo · debian · bookworm
0.111.3-1· arm64 · bookwormNot affected
nvd · hugo · debian · bookworm
Observed:
References
- [https://github.com/gohugoio/hugo/commit/f8b5fa09a64950c32b803821ede411ebfe772b7a]
- [https://github.com/gohugoio/hugo/releases/tag/v0.162.0]
- [https://github.com/gohugoio/hugo/security/advisories/GHSA-fw87-fv5r-9fpw]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-50135]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-50135]
- [https://pkg.go.dev/vuln/GO-2026-5380]
- [https://security-tracker.debian.org/tracker/CVE-2026-50135]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-50135.json]
[Debian Security Tracker] · [FIRST EPSS] · [Go Vulnerability Database] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX]