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.
Published: 2026-10-12
Score: 6.7 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Unauthorized File Access
Action: Immediate Patch
AI Analysis

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.

Generated by OpenCVE AI on October 12, 2026 at 23:21 UTC.

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

History

Mon, 26 Oct 2026 17:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


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

Type Values Removed Values Added
References
Metrics threat_severity

None

threat_severity

Moderate


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

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


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-10-26T16:46:47.336Z

Reserved: 2026-10-12T19:27:55.967Z

Link: CVE-2026-109574

cve-icon Vulnrichment

Updated: 2026-10-26T16:41:52.526Z

cve-icon NVD

Status : Awaiting Analysis

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

Modified: 2026-10-26T17:17:13.803

Link: CVE-2026-109574

cve-icon Redhat

Severity : Moderate

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

Links: CVE-2026-109574 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-10-13T02:00:08Z

Weaknesses
  • CWE-22

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