CVE-2026-58404: gohugo hugo Server-Side Request Forgery (SSRF)
Vulnerability summary
CVE-2026-58404 is a medium (CVSS 6.8) Server-Side Request Forgery (SSRF) vulnerability in gohugo hugo. EPSS estimates a 0.37% chance of exploitation in the next 30 days, higher than 29.2% of scored vulnerabilities.
Advisory lineage
Upstream 0 · Downstream 1Timeline
- 06-07-2026PublishedVulnerability first disclosed.
- 07-07-2026Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
7 scores · 5 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated4.6MediumCVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:P/VC:N/VI:N/VA:N/SC:H/SI:N/SA:N
- OSV · GoEcosystem advisory · calculated7.7HighCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:N/SA:NDiffers
- NVDNIST4.6MediumCVSS: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
- OSV · UbuntuEcosystem advisory · calculated6.8MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:N/A:N
- OSV · DebianEcosystem advisory · calculated6.8MediumCVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:N/A:N
EPSS trend
Probability
0.37%
Chance of exploitation in the next 30 days
Percentile
29%
Versus all other CVEs
30-day change
0.00 pp
From 0.37% on 20-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Debian1 product
- hugo< 0.165.0-1
Github.com/gohugoio1 product
- hugo≥ 0.162.0, < 0.163.1
Gohugo1 product
- hugo≥ 0.162.0, < 0.163.1
Gohugoio1 product
- hugo≥ v0.162.0, < v0.163.1
Ubuntu1 product
- hugoAll versions (No fix recorded)
5 vendors · 5 products
References
8 links- github.com/gohugoio/hugo/security/advisories/GHSA-r46f-3rpw-hxrvX Refsource CONFIRMREPORTWEBAdvisoryMitigationVendor Advisory
- github.com/gohugoio/hugo/commit/a00b5c72ac57afe26df6688ece3ca544a56df372X Refsource MISCREPORTFIXPatch
- github.com/gohugoio/hugoPACKAGE