Link Following Affecting hugo package, versions <0.165.0-1


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

EPSS
0.48% (39th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-DEBIANUNSTABLE-HUGO-17875557
  • published7 Jul 2026
  • disclosed6 Jul 2026

Introduced: 6 Jul 2026

CVE-2026-58403  (opens in a new tab)
CWE-59  (opens in a new tab)

How to fix?

Upgrade Debian:unstable hugo to version 0.165.0-1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream hugo package and not the hugo package as distributed by Debian. See How to fix? for Debian:unstable relevant fixed versions and status.

Hugo is a static site generator. From v0.123.0 through v0.163.0, Hugo's virtual filesystem is designed so that files under a mount cannot reach outside the mount tree, but a regression caused RootMappingFs.statRoot to call Stat, which follows symlinks, instead of Lstat, so a direct os.ReadFile "somefile" where somefile was a symlink pointing outside the mount would return the target's contents. This effectively let a symlink planted inside a theme or local mount read arbitrary files reachable to the user running hugo. This issue is fixed in v0.163.1.

CVSS Base Scores

version 3.1