CVE-2026-89258gohugoio hugo
Path confinement bypass via symlinks in Hugo
Critical 9.3 No auth needed
Follow: this CVE · gohugoio · gohugoio hugo We alert you by email or Slack (account required).
- Priority
- 71
- CVSS 4.0
- 9.3
- EPSS
- —
- Auth required
- No
- Published
- Sep 11, 2026
- Updated
- Sep 11, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-59
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: total
- Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
What happens
Hugo versions after v0.123.0 and before v0.165.0 do not strip symlinks in parent directories during direct resource lookups. An attacker who places a symlink in a mounted directory (such as in locally vendored themes) can cause functions like resources.Get and os.ReadFile to follow that symlink and read files outside project boundaries, exposing their contents in the built site.
Show the original NVD text
Hugo is a static site generator. In versions after v0.123.0 and before v0.165.0, symlinks in parent directories were not dropped during direct resource lookups, allowing path confinement to be bypassed. An attacker who can place — or who convinces a site author to place — a symlink inside a mounted directory (for example, in a locally vendored theme under themes/) can cause functions that perform direct lookups, such as resources.Get and os.ReadFile, to follow that symlink and read files outside the intended project boundaries, disclosing their contents in the built site. Themes mounted as Go modules fetched from GitHub have symlinks stripped on download and are not affected, and multi-directory walks (e.g. content/asset walking) are not affected. This issue is an incomplete-fix follow-up to GHSA-c3wq-j5vh-68rc and GHSA-fw87-fv5r-9fpw; it is fixed in v0.165.0.
What to do
Patch available · fixed versions: 0.165.0
Update Hugo to version 0.165.0 or later to fix the path confinement bypass vulnerability.
- Apply the vendor's security update for hugo.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected products
- gohugoio · hugo
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official sources
References
Links published by the sources. Open them with care.