CVE-2026-58404: CWE-918: Server-Side Request Forgery (SSRF) in gohugoio hugo
A Server-Side Request Forgery (SSRF) vulnerability exists in gohugoio Hugo static site generator versions 0.162.0 through 0.163.0. The default security policy intended to block requests to loopback, internal, and cloud-metadata IPv4 addresses only matched dotted-decimal notation, allowing alternate IPv4 encodings (integer, hex, octal) to bypass restrictions. This enables build-time SSRF to internal services including cloud-metadata endpoints when using the cgo system resolver. The issue is fixed in version 0.163.1.
AI Analysis
Technical Summary
Hugo versions 0.162.0 through 0.163.0 have a SSRF vulnerability due to incomplete enforcement of the security.http.urls policy. The deny rule blocks loopback, internal, and cloud-metadata IPv4 literals only when expressed in dotted-decimal notation. Alternate IPv4 encodings such as integer, hexadecimal, or octal representations bypass this check. When a template passes an untrusted or data-derived URL to resources.GetRemote, and the host platform uses the cgo system resolver, these alternate encodings resolve to blocked addresses, allowing SSRF to internal services including cloud-metadata endpoints during build time. Redirects also reuse this flawed check, extending the vulnerability to redirect hops. The vulnerability is addressed in Hugo version 0.163.1.
Potential Impact
An attacker controlling template input can cause Hugo to make unauthorized server-side requests to internal network services, including sensitive cloud-metadata endpoints, potentially exposing internal data or enabling further attacks. The vulnerability affects build-time operations and requires the host platform to use the cgo system resolver. The CVSS 4.6 score indicates a medium severity impact with network attack vector, low attack complexity, and partial privileges required.
Mitigation Recommendations
A fix is available in Hugo version 0.163.1. Users should upgrade to version 0.163.1 or later to remediate this SSRF vulnerability. No official temporary workaround or alternative mitigation is provided in the advisory. Patch status is not explicitly stated beyond the fix in 0.163.1, so users should consult the vendor advisory for the latest remediation guidance.
CVE-2026-58404: CWE-918: Server-Side Request Forgery (SSRF) in gohugoio hugo
Description
A Server-Side Request Forgery (SSRF) vulnerability exists in gohugoio Hugo static site generator versions 0.162.0 through 0.163.0. The default security policy intended to block requests to loopback, internal, and cloud-metadata IPv4 addresses only matched dotted-decimal notation, allowing alternate IPv4 encodings (integer, hex, octal) to bypass restrictions. This enables build-time SSRF to internal services including cloud-metadata endpoints when using the cgo system resolver. The issue is fixed in version 0.163.1.
CVSS v4.0
Score 4.6medium
Affected software
pkg:golang/github.com/gohugoio/hugoRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Hugo versions 0.162.0 through 0.163.0 have a SSRF vulnerability due to incomplete enforcement of the security.http.urls policy. The deny rule blocks loopback, internal, and cloud-metadata IPv4 literals only when expressed in dotted-decimal notation. Alternate IPv4 encodings such as integer, hexadecimal, or octal representations bypass this check. When a template passes an untrusted or data-derived URL to resources.GetRemote, and the host platform uses the cgo system resolver, these alternate encodings resolve to blocked addresses, allowing SSRF to internal services including cloud-metadata endpoints during build time. Redirects also reuse this flawed check, extending the vulnerability to redirect hops. The vulnerability is addressed in Hugo version 0.163.1.
Potential Impact
An attacker controlling template input can cause Hugo to make unauthorized server-side requests to internal network services, including sensitive cloud-metadata endpoints, potentially exposing internal data or enabling further attacks. The vulnerability affects build-time operations and requires the host platform to use the cgo system resolver. The CVSS 4.6 score indicates a medium severity impact with network attack vector, low attack complexity, and partial privileges required.
Mitigation Recommendations
A fix is available in Hugo version 0.163.1. Users should upgrade to version 0.163.1 or later to remediate this SSRF vulnerability. No official temporary workaround or alternative mitigation is provided in the advisory. Patch status is not explicitly stated beyond the fix in 0.163.1, so users should consult the vendor advisory for the latest remediation guidance.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-06-30T18:19:58.379Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a4c076a27e9c7971920cc29
Added to database: 07/06/2026, 19:52:10 UTC
Last enriched: 07/06/2026, 20:06:35 UTC
Last updated: 07/06/2026, 20:11:15 UTC
Views: 4
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.