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

Medium 6.7 Published Updated

Malicious themes or modules can read files outside the project root via ESBuild's resolver, exposing sensitive data to attackers.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2026-109595?

CVE-2026-109595 is a medium-severity path traversal vulnerability in gohugoio hugo, published on 12 Oct 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

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.

Weakness: CWE-22

Which versions are affected by CVE-2026-109595?

How do I fix CVE-2026-109595?

Upgrade to a fixed version.

Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.

Is CVE-2026-109595 being exploited?

There is no known exploitation of CVE-2026-109595 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2026-109595, GHSA-6cfm-3xc5-q3r5, GHSA-r4xx-89rf-5424, MINI-3wg4-wvxp-4q4w, MINI-vwgp-qhm4-65q4, UBUNTU-CVE-2026-109595.

Is CVE-2026-109595 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free