Description
Hugo from v0.84.0 before v0.167.0 contains a path traversal vulnerability that allows malicious themes or modules to read files outside the project root via ESBuild's fallback resolver in js.Build, js.Batch, and css.Build. Attackers can ship relative imports or symlinks pointing outside the project to bundle any file readable by the build user into published JavaScript or CSS output.
Published: 2026-10-12
Score: 6.7 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Unauthorized File Access via Path Traversal
Action: Immediate Patch
AI Analysis

Impact

Hugo, the static site generator from gohugoio, contains a path traversal flaw in versions starting with 0.84.0 and continuing until (but not including) 0.167.0. An attacker who can supply or influence a malicious theme or module can include relative imports or symbolic links that point outside the project root. When the build process invokes js.Build, js.Batch, or css.Build, ESBuild’s fallback resolver reads these files and bundles their contents into the generated JavaScript or CSS, thereby exposing any file readable by the build user.

Affected Systems

The affected product is Hugo, distributed by gohugoio. Any installation whose version identifier is greater than or equal to 0.84.0 and less than 0.167.0 is vulnerable.

Risk and Exploitability

The CVSS score of 6.7 indicates a moderate severity. No EPSS data is available, and the vulnerability is not listed in CISA’s KEV catalog. Exploitation requires that the attacker’s malicious theme or module be processed during a Hugo build; this can occur via compromised repositories, internal developers, or untrusted package sources. If successful, the attacker can read files beyond the intended project directory, increasing the risk of sensitive data disclosure.

Generated by OpenCVE AI on October 13, 2026 at 01:25 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Hugo to version 0.167.0 or later, which removes the vulnerable fallback resolver.
  • If an upgrade is not immediately possible, restrict third‑party themes or modules to trusted sources and manually audit any relative imports or symlinks before building.
  • Configure the build environment or CI pipeline to prevent ESBuild from following arbitrary relative paths, for example by disabling the fallback resolver or adding path validation checks.
  • Limit the file system permissions of the user running the Hugo build so that only the required project files are readable, thereby constraining the scope of any traversal attempt.

Generated by OpenCVE AI on October 13, 2026 at 01:25 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 20 Oct 2026 00:30:00 +0000

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Moderate


Thu, 15 Oct 2026 15:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


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

Type Values Removed Values Added
Description Hugo from v0.84.0 before v0.167.0 contains a path traversal vulnerability that allows malicious themes or modules to read files outside the project root via ESBuild's fallback resolver in js.Build, js.Batch, and css.Build. Attackers can ship relative imports or symlinks pointing outside the project to bundle any file readable by the build user into published JavaScript or CSS output.
Title Hugo v0.84.0 before v0.167.0 Path Traversal via js.Build ESBuild Resolver
First Time appeared Gohugo
Gohugo hugo
Weaknesses CWE-22
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-15T14:06:24.829Z

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

Link: CVE-2026-109595

cve-icon Vulnrichment

Updated: 2026-10-15T14:06:19.967Z

cve-icon NVD

Status : Awaiting Analysis

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

Modified: 2026-10-16T18:14:51.460

Link: CVE-2026-109595

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-10-12T22:21:50Z

Links: CVE-2026-109595 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-13T04:30:17Z

Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')