CVE-2026-50135CWE-59

Hugo: Symlink confinement bypass in resources.Get

Medium · published July 6, 2026

CVSS v4.0
6.9
EPSS
0%
Percentile
34.2
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v4.0
6.9 · MEDIUM
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
EPSS
0.00411 · 34.2th percentile
Weakness
CWE-59 · Improper Link Resolution Before File Access ('Link Following')
Published
2026-07-06T19:52Z
EPSS history
Timeline
  • 06 JUL 19:52Z
    Hugo: Symlink confinement bypass in resources.Get
    cvelistv5