Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-58404: CWE-918: Server-Side Request Forgery (SSRF) in gohugoio hugo

0
Medium
VulnerabilityCVE-2026-58404cvecve-2026-58404cwe-918
Published: 07/06/2026 (07/06/2026, 19:16:15 UTC)
Source: CVE Database V5
Vendor/Project: gohugoio
Product: 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

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
Low
User Interaction
Passive
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
None
Subsq. Confidentiality
High
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

github.com/gohugoio/hugo
pkg:golang/github.com/gohugoio/hugo
Affected versions
=0.162.0=0.163.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/06/2026, 20:06:35 UTC

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.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses