CVE-2026-100692

Hugo before v0.166.0 Path Traversal via Symlinked Mount Roots

Published Sep 26, 2026 CVSS 4.0 · 8.7 High EPSS < 1% KEV · Not listed
Description
Hugo is a static site generator. In versions after v0.123.0 and before v0.166.0, Hugo's symlink confinement checks stopped at the mount root itself, so a theme or module checked into themes/ (or a vendored module) could contain a symlink at a mount root (for example themes/mytheme/assets -> /some/dir/outside). Files behind such a symlink were readable during a site build through resources.Get, resources.Match and similar functions, and could be published to public/ via static mounts, bypassing the rule that theme and module mount sources must be local paths. Modules fetched via Go modules are not affected because Go module zips cannot contain symlinks, and this is not an escalation for the main project, which may already mount absolute paths by configuration. Fixed in v0.166.0, where symlinked mount roots and symlinked directories between the mount root and the module directory are treated as non-existent for all modules. As a workaround, inspect themes/ and vendored modules for symlinks at mount roots before building, or replace symlinks with explicit mounts.

Analysis

AI-generated

Technical impact

The vulnerability arises from Hugo’s symlink checks stopping at the mount root, allowing a symlink within themes/ or a vendored module to point to any path on the host system. When a site build processes such a symlink through resources.Get or similar functions, files located outside the intended project directory become readable and can be published to public/ via static mounts. This flaw permits disclosure of arbitrary files present on the build machine and does not affect Go modules, which cannot contain symlinks.

Affected Systems

Versions of Hugo published after v0.123.0 and before v0.166.0 are affected. The issue manifests when a theme or module directory under themes/ contains a symlink at the mount root—for example, themes/mytheme/assets pointing to /some/dir/outside. The vulnerability is not triggered by Go-modules because their zip archives cannot contain symlinks. The problem is limited to builds that use the resources.* API to process such directories.

Risk and Exploitability

The CVSS score of 8.7 indicates a high severity risk, though the EPSS score is not available, so the exact likelihood of exploitation remains unclear. The flaw is not listed in the CISA KEV catalog, meaning no publicly known exploits are yet recorded. Attacks would likely occur in environments where an attacker can influence theme or module contents during a build, such as in a continuous‑integration pipeline or a shared build server. The main consequence is unauthorized reading of files from the build host, potentially exposing sensitive data.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Hugo to version 0.166.0 or newer.
  • Before building, inspect all themes/ and vendored modules for symlinks at mount roots and replace or remove them.
  • If upgrading immediately is not feasible, avoid using themes or modules that contain symlinks at mount roots and consider removing the problematic directories from the build.

Generated by OpenCVE AI on September 26, 2026 at 16:13 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Redhat
Redhat hummingbird
CPEs cpe:/a:redhat:hummingbird:1
Vendors & Products Redhat
Redhat hummingbird
References
Metrics threat_severity

None

threat_severity

Moderate

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description Hugo is a static site generator. In versions after v0.123.0 and before v0.166.0, Hugo's symlink confinement checks stopped at the mount root itself, so a theme or module checked into themes/ (or a vendored module) could contain a symlink at a mount root (for example themes/mytheme/assets -> /some/dir/outside). Files behind such a symlink were readable during a site build through resources.Get, resources.Match and similar functions, and could be published to public/ via static mounts, bypassing the rule that theme and module mount sources must be local paths. Modules fetched via Go modules are not affected because Go module zips cannot contain symlinks, and this is not an escalation for the main project, which may already mount absolute paths by configuration. Fixed in v0.166.0, where symlinked mount roots and symlinked directories between the mount root and the module directory are treated as non-existent for all modules. As a workaround, inspect themes/ and vendored modules for symlinks at mount roots before building, or replace symlinks with explicit mounts.
Title Hugo before v0.166.0 Path Traversal via Symlinked Mount Roots
First Time appeared Gohugo
Gohugo hugo
Weaknesses CWE-59
CPEs cpe:2.3:a:gohugo:hugo:*:*:*:*:*:*:*:*
Vendors & Products Gohugo
Gohugo hugo
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N'}

cvssV4_0

{'score': 8.7, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N'}

Weaknesses
  • CWE-59

    Improper Link Resolution Before File Access ('Link Following')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Sep 28, 2026, 4:30 PM
Reserved
Sep 26, 2026, 2:37 AM
Status
Analyzed
Published
Sep 26, 2026, 2:16 PM
Modified
Sep 29, 2026, 7:08 PM
Severity
Moderate
Public date
Sep 26, 2026, 1:23 PM