CVE-2026-89258

Description

A flaw was found in Hugo, a static site generator. This vulnerability allows an attacker, who can place a symbolic link (symlink) in a mounted directory, to bypass path confinement. This bypass enables functions performing direct resource lookups to follow the symlink and read files outside the intended project boundaries. The consequence is the disclosure of sensitive file contents within the generated site.

Statement

This Moderate impact information disclosure flaw in Hugo, a static site generator, arises from improper handling of symlinks in locally vendored themes. Exploitation requires an attacker to either place a malicious symlink within a mounted directory or convince a site author to do so, leading to the disclosure of files outside the intended project boundaries during site generation. The vulnerability is not exploitable when themes are managed as Go modules.

Mitigation

To mitigate this issue, avoid using locally vendored themes from untrusted sources. Ensure that the Hugo site generation environment is secured and isolated, and that only trusted theme content is processed. If local themes are necessary, verify their integrity and ensure they do not contain malicious symlinks before building the site.

Common Vulnerability Scoring System (CVSS) Score Details

Info alert:Important note

CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authority (CNA) source for its products and services (see Red Hat classifications).

The following CVSS metrics and score provided are preliminary and subject to review.

CVSS v3 Score Breakdown

Red HatNVDcve.org
Base Score6.3N/A6.3
Attack VectorLocalN/ALocal
Attack ComplexityLowN/ALow
Privileges RequiredNoneN/ANone
User InteractionRequiredN/ARequired
ScopeChangedN/AChanged
ConfidentialityHighN/AHigh
Integrity ImpactNoneN/ANone
Availability ImpactNoneN/ANone

Vector

Red Hat: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N

cve.org: CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N

Red Hat CVSS v3 Score Explanation

Matches CVEORG v3.1 vector. Hugo is a CLI static site generator — AV:L, UI:R correct. CVSS v4 9.3 CRITICAL was inflated (AV:N, UI:N wrong for CLI tool). GHSA also rates Moderate.

Understanding the Weakness (CWE)

Confidentiality,Integrity,Access Control

Technical Impact: Read Files or Directories; Modify Files or Directories; Bypass Protection Mechanism

An attacker may be able to traverse the file system to unintended locations and read or overwrite the contents of unexpected files. If the files are used for a security mechanism then an attacker may be able to bypass the mechanism.

Other

Technical Impact: Execute Unauthorized Code or Commands

Windows simple shortcuts, sometimes referred to as soft links, can be exploited remotely since a ".LNK" file can be uploaded like a normal file. This can enable remote execution.

Frequently Asked Questions

Want to get errata notifications? Sign up here.