{"id":"CVE-2026-100692","published":"2026-09-26T14:16:53.860","lastModified":"2026-09-29T19:08:03.413","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.","cvssScore":7.5,"cvssSeverity":"HIGH","cvssVector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","cwes":["CWE-59"],"vendors":["gohugo"],"products":["hugo"],"references":[{"url":"https://github.com/gohugoio/hugo/security/advisories/GHSA-797m-7j5g-3rpr","tags":["Vendor Advisory"]},{"url":"https://www.vulncheck.com/advisories/hugo-before-0.166.0-path-traversal-via-symlinked-mount-roots","tags":["Third Party Advisory"]}],"exploitRefs":[{"url":"https://github.com/gohugoio/hugo/security/advisories/GHSA-797m-7j5g-3rpr","tags":["Vendor Advisory"]}],"hasPoc":true,"ai":{"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.","remediation":"Upgrade to v0.166.0 or later to fix the symlink confinement checks that were bypassed in earlier versions.","detection":"No reliable host or network indicator is derivable from the published description.","tags":["file-read","misconfiguration","static-site-generator"],"model":"garnet-coder","analyzedAt":"2026-10-18T10:29:27.681Z"}}