CVE-2026-109595

Hugo v0.84.0 before v0.167.0 Path Traversal via js.Build ESBuild Resolver

Published Oct 12, 2026 CVSS 4.0 · 6.7 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

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

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

Weaknesses
  • CWE-22

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

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Oct 15, 2026, 2:06 PM
Reserved
Oct 12, 2026, 8:59 PM
Status
Awaiting Analysis
Published
Oct 12, 2026, 11:17 PM
Modified
Oct 16, 2026, 6:14 PM
Severity
Moderate
Public date
Oct 12, 2026, 10:21 PM