# CVE-2026-50135: Hugo: Symlink confinement bypass in resources.Get

- Severity: Medium 6.9 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.27%, higher than 20% of CVEs (2026-12-01)
- Published: 2026-06-16T20:12:34.000Z
- Modified: 2026-10-25T20:10:00.147Z
- Also known as: GHSA-fw87-fv5r-9fpw, GO-2026-5380
- Weaknesses: CWE-59
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- gohugoio hugo: >= 0.123.0, < 0.162.0
- github.com/gohugoio/hugo (Go): from 0.123.0 before 0.162.0
- gohugo hugo: from 0.123.0 before 0.161.1

## Every score

- GitHub_M: CVSS:4.0 6.9 Medium `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`
- GitHub: CVSS:4.0 Medium `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: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N`

## References

- <https://github.com/gohugoio/hugo/security/advisories/GHSA-fw87-fv5r-9fpw> (advisory, patch, vendor-advisory, web)
- <https://github.com/gohugoio/hugo/commit/f8b5fa09a64950c32b803821ede411ebfe772b7a> (fix, patch, web)
- <https://github.com/gohugoio/hugo/releases/tag/v0.162.0> (product, release-notes, web)
- <https://github.com/gohugoio/hugo> (package)

## Sources

- CVE List: [CVE-2026-50135](https://www.cve.org/CVERecord?id=CVE-2026-50135), CVE Terms of Use, modified 2026-07-07
- GitHub Advisory Database: [GHSA-fw87-fv5r-9fpw](https://github.com/advisories/GHSA-fw87-fv5r-9fpw), CC-BY-4.0, modified 2026-07-07
- Go Vulnerability Database: [GO-2026-5380](https://pkg.go.dev/vuln/GO-2026-5380), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2026-50135](https://nvd.nist.gov/vuln/detail/CVE-2026-50135), Public domain, modified 2026-10-25

---

Page: https://cve.day/CVE-2026-50135 · Whole record: https://cve.day/CVE-2026-50135.json · Rebuilt by cve.day 2026-11-25T22:59:27.257Z
