CVE-2026-89258 Hugo before v0.165.0 Symlink Confinement Bypass via resources.Get
An attacker can bypass path confinement via symlinks in mounted directories to read files outside the project boundaries, disclosing sensitive content.
- 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-89258?
CVE-2026-89258 is a critical path traversal vulnerability in gohugoio hugo, published on 11 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.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.
Weakness: CWE-59
Which versions are affected by CVE-2026-89258?
How do I fix CVE-2026-89258?
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-89258 being exploited?
There is no known exploitation of CVE-2026-89258 in the wild and no public exploit code.
Sources
Also known as DEBIAN-CVE-2026-89258, GHSA-8jx9-m62j-qx3c, GHSA-vrv5-r5rf-6v4j, MINI-pvjf-vqm3-fmw4, MINI-v339-m5f7-pxrp, UBUNTU-CVE-2026-89258.