CVE-2026-89258

Hugo before v0.165.0 Symlink Confinement Bypass via resources.Get

Published Sep 11, 2026 CVSS 4.0 · 9.3 Critical EPSS < 1% KEV · Not listed
Description
Hugo is a static site generator. In versions after v0.123.0 and before v0.165.0, symlinks in parent directories were not dropped during direct resource lookups, allowing path confinement to be bypassed. An attacker who can place — or who convinces a site author to place — a symlink inside a mounted directory (for example, in a locally vendored theme under themes/) can cause functions that perform direct lookups, such as resources.Get and os.ReadFile, to follow that symlink and read files outside the intended project boundaries, disclosing their contents in the built site. Themes mounted as Go modules fetched from GitHub have symlinks stripped on download and are not affected, and multi-directory walks (e.g. content/asset walking) are not affected. This issue is an incomplete-fix follow-up to GHSA-c3wq-j5vh-68rc and GHSA-fw87-fv5r-9fpw; it is fixed in v0.165.0.

Analysis

AI-generated

Technical impact

Hugo versions after 0.123.0 and before 0.165.0 allow directory symlinks in mounted directories to be resolved during direct resource lookups, such as resources.Get or os.ReadFile. An attacker who can place a symlink inside a mounted theme folder (for example, themes/ or other vendor directories) can cause Hugo to follow that link and read files outside the intended project boundaries, resulting in disclosure of potentially sensitive files in the generated site. This vulnerability represents a classic path‑confinement bypass (CWE‑59).

Affected Systems

The issue affects the gohugoio Hugo static site generator, specifically releases between v0.123.0 (exclusive) and v0.165.0 (exclusive). Users running these versions that utilize local or externally mounted themes with symlinks are subject to the flaw. Themes fetched as Go modules from GitHub automatically strip symlinks during download and are not impacted, nor are multi‑directory walks performed by the content/asset system.

Risk and Exploitability

The CVSS score of 9.3 places this vulnerability in the critical category. The EPSS score is not available, but the fact that KEV catalog does not reduce its potential impact. An attacker needs the ability to create or influence a symlink in a mounted directory, which can be achieved through supply‑chain manipulation or the attacker can read arbitrary files from the build environment, exposing credentials, configuration files, or other confidential data during site generation. The risk remains high until the product is updated to the fixed v0.165.0 release.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to Hugo v0.165.0 or later, which implements proper symlink confinement.
  • If an upgrade is not immediately feasible, manually audit any mounted directories or themes for symlinks that point outside the project, removing them or replacing the theme with a copy that has no symlinks.
  • Run the site generation in a minimal‑privilege environment where the build user is only allowed read access to the expected source directories, ensuring that even if a symlink were accidentally present it would not resolve to sensitive locations.

Generated by OpenCVE AI on September 11, 2026 at 14:54 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, '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.165.0, symlinks in parent directories were not dropped during direct resource lookups, allowing path confinement to be bypassed. An attacker who can place — or who convinces a site author to place — a symlink inside a mounted directory (for example, in a locally vendored theme under themes/) can cause functions that perform direct lookups, such as resources.Get and os.ReadFile, to follow that symlink and read files outside the intended project boundaries, disclosing their contents in the built site. Themes mounted as Go modules fetched from GitHub have symlinks stripped on download and are not affected, and multi-directory walks (e.g. content/asset walking) are not affected. This issue is an incomplete-fix follow-up to GHSA-c3wq-j5vh-68rc and GHSA-fw87-fv5r-9fpw; it is fixed in v0.165.0.
Title Hugo before v0.165.0 Symlink Confinement Bypass via resources.Get
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': 6.3, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N'}

cvssV4_0

{'score': 9.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/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 11, 2026, 12:18 PM
Reserved
Sep 11, 2026, 10:51 AM
Status
Deferred
Published
Sep 11, 2026, 12:16 PM
Modified
Sep 11, 2026, 3:21 PM
Severity
Moderate
Public date
Sep 11, 2026, 11:15 AM