CVE-2026-10582 Hugo 0.91.0 through 0.165.0 Server-Side Request Forgery via security.http.urls Lacking Destination Address Validation

High 8.3 Published Updated

Attackers can exploit Hugo's URL allowlist bypass to fetch internal resources via SSRF, leaking sensitive data into generated site artifacts.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2026-10582?

CVE-2026-10582 is a high-severity server-side request forgery vulnerability in gohugoio hugo, published on 24 Aug 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official 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.

Weakness: CWE-918

Which versions are affected by CVE-2026-10582?

How do I fix CVE-2026-10582?

Upgrade to a fixed version.

Upgrade, and send outbound requests through an allow-list that blocks internal addresses. More about Server-side request forgery.

Is CVE-2026-10582 being exploited?

There is no known exploitation of CVE-2026-10582 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2026-10582, GHSA-wg2f-v5x6-m39r, UBUNTU-CVE-2026-10582.

Is CVE-2026-10582 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free