CVE-2026-109574: Hugo before v0.167.0 Path Traversal via css.Sass Import Fallback
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.
Affected Software
Event History
Frequently Asked Questions
Who is exposed to this issue?
Hugo users running a version before v0.167.0 are exposed when they build a site using an untrusted or malicious theme or module that invokes css.Sass. The issue can cause readable files outside the project root to be incorporated into generated site CSS.
What does an attacker need to exploit it?
An attacker needs to supply or influence a theme or module stylesheet processed by css.Sass, such as through a malicious @import or @use target. Exploitation requires a user to build the site with that content, as reflected by the UI:R vector.
Are default builds affected?
The provided information identifies css.Sass import fallback as the affected path. A build is relevant when it compiles Sass content containing attacker-controlled relative, absolute, or symlinked import or use targets.
What can be done before upgrading?
Avoid building sites with untrusted themes or modules, and review Sass @import and @use directives in any third-party theme or module before use. In particular, reject imports that use relative traversal, absolute paths, or symlinked paths outside the project root.