CVE-2026-100692 Hugo before v0.166.0 Path Traversal via Symlinked Mount Roots

High 8.7 Published Updated

A malicious theme or module can use symlinks to read and publish files outside the project directory during site builds.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-100692?

CVE-2026-100692 is a high-severity path traversal vulnerability in gohugoio hugo, published on 26 Sep 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

Hugo is a static site generator. In versions after v0.123.0 and before v0.166.0, Hugo's symlink confinement checks stopped at the mount root itself, so a theme or module checked into themes/ (or a vendored module) could contain a symlink at a mount root (for example themes/mytheme/assets -> /some/dir/outside). Files behind such a symlink were readable during a site build through resources.Get, resources.Match and similar functions, and could be published to public/ via static mounts, bypassing the rule that theme and module mount sources must be local paths. Modules fetched via Go modules are not affected because Go module zips cannot contain symlinks, and this is not an escalation for the main project, which may already mount absolute paths by configuration. Fixed in v0.166.0, where symlinked mount roots and symlinked directories between the mount root and the module directory are treated as non-existent for all modules. As a workaround, inspect themes/ and vendored modules for symlinks at mount roots before building, or replace symlinks with explicit mounts.

Weakness: CWE-59

Which versions are affected by CVE-2026-100692?

It affects 1 product.

Products include Gohugo Hugo.

How do I fix CVE-2026-100692?

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-100692 being exploited?

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

Sources

Also known as DEBIAN-CVE-2026-100692, GHSA-797m-7j5g-3rpr, GHSA-m29q-9cm9-wcf6, MINI-gjrf-rmgm-x3hc, MINI-wch8-gq35-82j4, UBUNTU-CVE-2026-100692.

Is CVE-2026-100692 in your software?

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

Check your SBOMs for free