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.
Published: 2026-10-12
Score: 6.7 Medium
EPSS: n/a
KEV: No
Impact: Information Disclosure
Action: Patch
AI Analysis

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.

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

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

History

Mon, 12 Oct 2026 22:45:00 +0000

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'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-10-12T22:21:51.306Z

Reserved: 2026-10-12T20:59:18.909Z

Link: CVE-2026-109596

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-12T23:17:23.033

Modified: 2026-10-12T23:17:23.033

Link: CVE-2026-109596

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-13T00:00:16Z

Weaknesses
  • CWE-59

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