CVE-2026-109574

Hugo before v0.167.0 Path Traversal via css.Sass Import Fallback

Published Oct 12, 2026 CVSS 4.0 · 6.7 Medium EPSS < 1% KEV · Not listed
Description
Hugo before v0.167.0 contains a path traversal vulnerability in css.Sass that allows malicious themes or modules to read files outside the project root through the Sass compiler's import fallback. Attackers can ship stylesheets with relative, absolute, or symlinked @import or @use targets to compile readable files into the published site CSS.

Analysis

AI-generated

Technical impact

A path traversal flaw exists in the css.Sass implementation of Hugo versions before 0.167.0. The Sass compiler’s import fallback incorrectly handles @import and @use paths, allowing an attacker to supply stylesheets that reference files outside the site’s root directory. This leads to the compilation of arbitrary files into the generated CSS and exposes sensitive data that is normally protected by the project's directory boundaries.

Affected Systems

The vulnerability affects all deployments of gohugoio Hugo prior to version 0.167.0. Any site that uses third‑party themes or modules that include custom Sass code is at risk.

Risk and Exploitability

The CVSS score is 6.7, indicating moderate severity. The EPSS score is currently unavailable, and the vulnerability is not listed in the CISA KEV catalog. Attackers likely need to deliver or embed malicious stylesheets through a malicious theme or module; the exploit path is local and relies on the user or automation that compiles the site. The inferred attack vector is a trusted‑user upload or compromised module installation.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Hugo to 0.167.0 or later to obtain the fixed import fallback logic.
  • Remove or replace untrusted or outdated themes and modules that may contain malicious Sass imports before rebuilding the site.
  • Configure Hugo or use a wrapper script to disable the Sass import fallback or to validate import paths against the project root.

Generated by OpenCVE AI on October 12, 2026 at 23:21 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 before v0.167.0 contains a path traversal vulnerability in css.Sass that allows malicious themes or modules to read files outside the project root through the Sass compiler's import fallback. Attackers can ship stylesheets with relative, absolute, or symlinked @import or @use targets to compile readable files into the published site CSS.
Title Hugo before v0.167.0 Path Traversal via css.Sass Import Fallback
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 26, 2026, 4:46 PM
Reserved
Oct 12, 2026, 7:27 PM
Status
Awaiting Analysis
Published
Oct 12, 2026, 11:17 PM
Modified
Oct 26, 2026, 5:17 PM
Severity
Moderate
Public date
Oct 12, 2026, 10:21 PM