← Back to search

CVE-2026-100692

7.5 HIGHpublic exploit available

Published 2026-09-26 · Updated 2026-09-29

AI risk analysis

Summary
Hugo's symlink confinement checks were bypassed in versions after v0.123.0 and before v0.166.0, allowing themes or modules to contain symlinks that could expose files outside the intended mount root during site builds. This vulnerability enables unauthorized file reads through resource functions like resources.Get.
Exploitability
Exploitation requires a malicious theme or module with symlinked mount roots, and is moderately hard to achieve without control over the project's dependencies, but becomes trivial if an attacker can influence theme or module content.
Blast radius
The impact is limited to files accessible via symlinks in themes or vendored modules during site builds, potentially exposing sensitive data from outside the project directory, though not directly affecting running Hugo processes.
Detection
No reliable host or network indicator is derivable from the published description.
Prioritized remediation
Upgrade to v0.166.0 or later to fix the symlink confinement checks that were bypassed in earlier versions.
file-readmisconfigurationstatic-site-generator

Analysis generated locally by garnet-coder (no data left the box). AI-assisted — verify against primary sources before acting.

NVD 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.

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Weaknesses

CWE-59

Vendors

gohugo

Products

hugo

Public exploit & PoC references

References

Data: NVD (public domain). Analysis: local $0 model. Defensive use only.