CVE-2026-50135
MEDIUM 6.9CVSS 4.0Hugo: Symlink confinement bypass in resources.Get
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
- 6 Jul 2026
- Last modified
- 25 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-59
- Also known as
- GHSA-fw87-fv5r-9fpwGO-2026-5380
- Sources
- NVDJSONOSV GHSA-fw87-fv5r-9fpwJSONOSV GO-2026-5380JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | MEDIUM 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 |
| OSV | GitHub | CVSS 4.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:N | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.5 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | gohugo | hugocpe:2.3:a:gohugo:hugo:*:*:*:*:*:*:*:* |
>= 0.123.0, < 0.161.1 | 0.161.1 |
| OSV | Go | github.com/gohugoio/hugo | >= 0.123.0, < 0.162.0 | 0.162.0 |
References
- https://github.com/gohugoio/hugo/commit/f8b5fa09a64950c32b803821ede411ebfe772b7a · Patch, WEB, FIX
- https://github.com/gohugoio/hugo/releases/tag/v0.162.0 · Product, Release Notes, WEB
- https://github.com/gohugoio/hugo/security/advisories/GHSA-fw87-fv5r-9fpw · Patch, Vendor Advisory, WEB, ADVISORY
- https://github.com/gohugoio/hugo · PACKAGE
History
- 25 Nov 2026 21:03 UTC · NVD: first stored (published 6 Jul 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 7 Jul 2026)
- 25 Nov 2026 20:13 UTC · OSV: first stored (published 16 Jun 2026)