REDHAT-BUG-2550039: Path Traversal

Published Oct 12, 2026
·
Updated

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

1 affected component
Hugo Hugo<0.167.0

Event History

Oct 12, 2026
Data Sourced
via Red Hat·10:48 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

Who is exposed to this issue?

Hugo users who build sites with css.Sass and compile themes or modules that may contain untrusted or malicious Sass stylesheets are exposed. A malicious theme or module can cause readable files outside the project root to be incorporated into published site CSS.

2

What does an attacker need to exploit it?

The attacker needs to provide or influence a theme or module stylesheet processed by css.Sass. The stylesheet can use relative, absolute, or symlinked @import or @use targets to reach files outside the project root.

3

Are installations using the default configuration affected?

The available information identifies css.Sass processing as the affected condition; it does not establish whether a default Hugo configuration invokes it. Sites that do not compile attacker-controlled Sass themes or modules are not described as an exploitation path.

4

How can I tell whether a site may already be affected?

Review Sass files in installed themes and modules for @import or @use directives that reference relative, absolute, or symlinked paths outside the project root. Also inspect generated published CSS for content that appears to originate from local readable files.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203