CVE-2026-89258
published critical CVSS 4.0 · 9.3Hugo before v0.165.0 Symlink Confinement Bypass via resources.Get
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| gohugoio | — | hugo0 to < 0.165.0 (affected · semver) · 0.165.0 (unaffected · semver) · Other versions: unaffected | Version-specific | Not stated | VulnCheck |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 9.3 / 10
- Severity
- critical
- Provider
- VulnCheck · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 6.3 | medium | VulnCheck · cna | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| gohugoio | hugo | 0 to < 0.165.0 (affected · semver)0.165.0 (unaffected · semver)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-59 Improper Link Resolution Before File Access ('Link Following')
References
2- GitHub Security Advisory (GHSA-vrv5-r5rf-6v4j) https://github.com/gohugoio/hugo/security/advisories/GHSA-vrv5-r5rf-6v4j
- VulnCheck Advisory: Hugo before v0.165.0 Symlink Confinement Bypass via resources.Get https://www.vulncheck.com/advisories/hugo-before-0.165.0-symlink-confinement-bypass-via-resources-get
Provider assertions
2VulnCheck · cna
Hugo before v0.165.0 Symlink Confinement Bypass via resources.Get
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 174752479ec240a3f4f91c73d47eefed7cc5997ed9062fc20cbaee71e6eaebfe
- Ingested
- 23 Sep 2026, 09:38:18 UTC
- Source record
- Official CVE record