CVE-2026-58404Gohugo Hugo
Medium 4.6
Follow: this CVE · Gohugo · Gohugo Hugo We alert you by email or Slack (account required).
- Priority
- 28
- CVSS 4.0
- 4.6
- EPSS
- —
- Auth required
- Yes
- Published
- Jul 6, 2026
- Updated
- Oct 25, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-918
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:P/VC:N/VI:N/VA:N/SC:H/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 is a static site generator. From v0.162.0 through v0.163.0, the default security.http.urls policy denies requests to loopback, internal, and cloud-metadata IPv4 literals, but the deny rule only matched dotted-decimal notation, so alternate IPv4 encodings of the same addresses, including integer, hex, or octal, passed the policy. When a template passes an untrusted or data-derived URL to resources.GetRemote and the host platform uses the cgo system resolver, these encodings resolve to the blocked address, allowing build-time server-side requests to loopback and internal services, including the cloud-metadata endpoint in hosted or CI builds; the same check is reused on redirects, so the gap also applies to each redirect hop. This issue is fixed in v0.163.1.
What to do
- Apply the vendor's security update for Hugo.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | github.com/gohugoio/hugo |
≥ 0.162.0 < 0.163.1 |
0.163.1 |
go get github.com/gohugoio/hugo@v0.163.1 |
| Go | github.com/gohugoio/hugo |
≥ 0.162.0 < 0.163.1 |
0.163.1 |
go get github.com/gohugoio/hugo@v0.163.1 |
Per OSV / GitHub Advisories (GHSA-r46f-3rpw-hxrv, GO-2026-5606). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| gohugo | hugo | ≥ 0.162.0 < 0.163.1 |
Official advisories
- Red Hat Security Advisory: Red Hat Hardened Images RPMs Security Update · Red Hat · RHSA-2026:36862 · Jul 29, 2026 Medium
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Issue Tracking
- github.com Release Notes
- github.com Mitigation Vendor Advisory