CVE-2026-10582: Server-Side Request Forgery (SSRF) in gohugoio hugo
Hugo's security.http.urls allowlist is the only control on outbound fetches made by resources.GetRemote, and it inspects the URL text alone. CheckAllowedHTTPURL in config/security/securityConfig.go applies the configured pattern list and then re-checks a canonicalised form of an integer, hex or octal IPv4 host, but it never resolves the hostname and never inspects the address the HTTP client actually connects to. The client constructed in resources/resource_factories/create/create.go installs no dial-time hook, so no check occurs at connection time either. A hostname that resolves to a loopback, private or cloud-metadata address therefore satisfies the policy, and the response body is embedded in the generated site. An attacker who can supply a URL through content, for example a front-matter field or a CMS field, can make the build fetch an internal endpoint and publish the response in the static output, so the build artifact itself carries the data out.
AI Analysis
Technical Summary
Hugo's security.http.urls allowlist mechanism only checks URL patterns textually and canonicalizes certain IP formats but does not resolve hostnames or verify the actual IP address at connection time. The HTTP client used does not perform dial-time checks, so URLs resolving to loopback, private, or cloud metadata IPs bypass the allowlist. An attacker controlling URL input (e.g., via front-matter or CMS fields) can cause the build process to fetch internal network resources and embed their responses into the static site output, effectively exfiltrating internal data.
Potential Impact
An unauthenticated attacker able to supply URLs to the Hugo build process can cause it to make HTTP requests to internal or sensitive network endpoints. The responses from these internal endpoints are embedded in the generated static site, potentially exposing sensitive internal data publicly. This can lead to information disclosure of internal services or metadata that should not be accessible externally.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, users should avoid building sites with untrusted content that can supply URLs to the resources.GetRemote function or disable outbound fetches in the build process. Monitor vendor communications for official fixes or temporary mitigations.
CVE-2026-10582: Server-Side Request Forgery (SSRF) in gohugoio hugo
Description
Hugo's security.http.urls allowlist is the only control on outbound fetches made by resources.GetRemote, and it inspects the URL text alone. CheckAllowedHTTPURL in config/security/securityConfig.go applies the configured pattern list and then re-checks a canonicalised form of an integer, hex or octal IPv4 host, but it never resolves the hostname and never inspects the address the HTTP client actually connects to. The client constructed in resources/resource_factories/create/create.go installs no dial-time hook, so no check occurs at connection time either. A hostname that resolves to a loopback, private or cloud-metadata address therefore satisfies the policy, and the response body is embedded in the generated site. An attacker who can supply a URL through content, for example a front-matter field or a CMS field, can make the build fetch an internal endpoint and publish the response in the static output, so the build artifact itself carries the data out.
CVSS v4.0
Score 8.3high
Affected software
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
Technical Analysis
Hugo's security.http.urls allowlist mechanism only checks URL patterns textually and canonicalizes certain IP formats but does not resolve hostnames or verify the actual IP address at connection time. The HTTP client used does not perform dial-time checks, so URLs resolving to loopback, private, or cloud metadata IPs bypass the allowlist. An attacker controlling URL input (e.g., via front-matter or CMS fields) can cause the build process to fetch internal network resources and embed their responses into the static site output, effectively exfiltrating internal data.
Potential Impact
An unauthenticated attacker able to supply URLs to the Hugo build process can cause it to make HTTP requests to internal or sensitive network endpoints. The responses from these internal endpoints are embedded in the generated static site, potentially exposing sensitive internal data publicly. This can lead to information disclosure of internal services or metadata that should not be accessible externally.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, users should avoid building sites with untrusted content that can supply URLs to the resources.GetRemote function or disable outbound fetches in the build process. Monitor vendor communications for official fixes or temporary mitigations.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- VulnCheck
- Date Reserved
- 2026-06-01T18:07:48.223Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a8c261eacd9273b496b635b
Added to database: 08/24/2026, 11:08:14 UTC
Last enriched: 08/24/2026, 11:09:28 UTC
Last updated: 08/24/2026, 13:51:56 UTC
Views: 5
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.