REDHAT-BUG-2550056: Path Traversal

Published Oct 12, 2026
·
Updated

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.

Affected Software

1 affected component
Hugo Hugo>=0.84.0<0.167.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Hugo to a version that resolves this vulnerability.

    Fixed in 0.167.0

Event History

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

Frequently Asked Questions

1

Who is realistically exposed to this issue?

Users of Hugo versions from v0.84.0 before v0.167.0 are exposed when they build sites using a malicious or untrusted theme or module. The impact depends on files readable by the account running the Hugo build.

2

What does an attacker need to exploit it?

An attacker needs to supply or influence a Hugo theme or module used by the target build. The malicious content can use relative imports or symlinks that point outside the project root in js.Build, js.Batch, or css.Build processing.

3

What is the practical impact of a successful exploit?

Files outside the project root that are readable by the build user can be bundled into generated JavaScript or CSS and published with the site. This can expose local build-environment data through the resulting site assets.

4

How can teams reduce risk if they cannot update immediately?

Avoid building untrusted themes or modules, and review theme and module imports and symlinks for paths that resolve outside the project root. Run builds with an account that has access only to files required for the build, limiting what could be read and included in output.

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