CVE-2026-109596

Hugo from v0.162.0 before v0.167.0 Symlink File Disclosure via Nested Mount Ancestor

Published Oct 12, 2026 CVSS 4.0 · 6.7 Medium EPSS < 1% KEV · Not listed
Description
Hugo from v0.162.0 before v0.167.0 contains an improper link resolution vulnerability that lets malicious themes or modules expose files outside their root via nested-mount ancestor directories. Attackers controlling a theme can place a symlink or NTFS junction at a virtual ancestor directory, causing resources.Match to list and publish local files during builds.

Analysis

AI-generated

Technical impact

An improper link resolution flaw in Hugo versions prior to 0.167.0 allows a malicious theme or module to create a symbolic link or NTFS junction at a virtual ancestor directory. During the build process, Hugo follows these links and can read or publish files that reside outside the intended theme root, enabling disclosure of arbitrary files within the build environment.

Affected Systems

Users of the Hugo static site generator from the gohugoio project are affected by this issue. The vulnerability exists in releases from v0.162.0 through v0.166.x and is fixed in version 0.167.0 and later. The product is identified by the cpe:2.3:a:gohugo:hugo and the fix is available in newer community releases.

Risk and Exploitability

The vulnerability carries a CVSS score of 6.7, indicating a moderate level of risk. EPSS data are not available and the issue is not listed in CISA's KEV catalog. The likely attack vector involves an attacker controlling a theme or module that places a symlink or NTFS junction pointing to a location outside the theme root; when the site is built, Hugo resolves the link and includes the external file in the published output, granting the attacker read access to arbitrary files. The flaw does not provide code execution or privilege escalation beyond the build context, but the potential for sensitive data exposure makes it significant.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Hugo to version 0.167.0 or later to apply the official fix.
  • If an upgrade is not immediately possible, audit all custom themes and modules for symbolic links or NTFS junctions that reference paths outside the theme root and remove them before building.
  • Restrict the sources of themes and modules to trusted vendors and consider disabling nested-mount ancestor resolution if configuration permits.
  • Run site builds in an isolated environment and validate that no unintended files appear in the published output.

Generated by OpenCVE AI on October 12, 2026 at 23:54 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
Description Hugo from v0.162.0 before v0.167.0 contains an improper link resolution vulnerability that lets malicious themes or modules expose files outside their root via nested-mount ancestor directories. Attackers controlling a theme can place a symlink or NTFS junction at a virtual ancestor directory, causing resources.Match to list and publish local files during builds.
Title Hugo from v0.162.0 before v0.167.0 Symlink File Disclosure via Nested Mount Ancestor
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': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N'}

cvssV4_0

{'score': 6.7, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:A/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
Oct 14, 2026, 12:07 PM
Reserved
Oct 12, 2026, 8:59 PM
Status
Awaiting Analysis
Published
Oct 12, 2026, 11:17 PM
Modified
Oct 16, 2026, 7:15 PM
Severity
Moderate
Public date
Oct 12, 2026, 10:21 PM