CVE-2026-109595: Hugo v0.84.0 before v0.167.0 Path Traversal via js.Build ESBuild Resolver

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
CVE Published
via MITRE·10:21 PM
Data Sourced
via MITRE·10:21 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·11:17 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who is most exposed to this issue?

Sites that build Hugo projects using untrusted, third-party, or otherwise insufficiently reviewed themes or modules are exposed. The malicious content must be used during a build that invokes js.Build, js.Batch, or css.Build.

2

What does an attacker need to exploit it?

An attacker needs to supply a malicious theme or module that contains relative imports or symlinks resolving outside the project root. Exploitation also requires user interaction in the form of building the affected Hugo project.

3

What information can be exposed?

The attacker can cause files readable by the build user to be bundled into published JavaScript or CSS output, including files located outside the project root. The provided information describes confidentiality impact only; it does not indicate integrity or availability impact.

4

How can I determine whether a project is affected?

A project is affected if it uses Hugo versions from v0.84.0 up to, but not including, v0.167.0 and builds assets with js.Build, js.Batch, or css.Build. Review themes and modules for imports or symlinks that point outside the project directory.

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