Vulnerability 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 Score
HIGH
Related Weaknesses (CWE)
References
- https://github.com/gohugoio/hugo
- https://github.com/gohugoio/hugo/blob/v0.165.0/config/security/securityConfig.go
- https://github.com/gohugoio/hugo/blob/v0.165.0/resources/resource_factories/crea
- https://www.vulncheck.com/advisories/hugo-through-server-side-request-forgery-vi
FAQ
What is CVE-2026-10582?
CVE-2026-10582 is a vulnerability with a CVSS score of 7.4 (HIGH). 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 ap...
How severe is CVE-2026-10582?
CVE-2026-10582 has been rated HIGH with a CVSS base score of 7.4/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-10582?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.