CVE-2026-50134 Details
Description
Hugo is a static site generator. From 0.91.0 until 0.162.0, resources.GetRemote enforces security.http.urls on the URL it is called with, but it did not re-validate intermediate URLs on HTTP 3xx redirects. An allowed server (or an attacker controlling its DNS or response) could therefore redirect the request to a host that the policy was meant to forbid and Hugo would fetch from the redirected target. The same bypass also lifted any host-shape restriction the operator had put in place. This vulnerability is fixed in 0.162.0.
A vulnerability in Hugo, a static site generator, allows for a bypass of the security policy governing HTTP URLs. This issue affects versions 0.91.0 through 0.161.1. The vulnerability arises in the 'resources.GetRemote' function, which initially enforced URL security policies but failed to re-validate URLs during HTTP 3xx redirects. As a result, an allowed server could redirect requests to forbidden hosts, causing Hugo to fetch resources from those locations. This bypass also disregarded any host restrictions set by the user.
Users can upgrade to Hugo version 0.162.0 or later, which includes the necessary fix. This version can be downloaded from the Hugo GitHub releases page.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Jul 7, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-918 | Server-Side Request Forgery (SSRF) | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| gohugo hugo | >= 0.91.0, < 0.162.0 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Jul 8, 2026 | Initial Analysis | [email protected] |
| Jul 7, 2026 | CVE Modified | CISA-ADP |
| Jul 6, 2026 | New CVE Received | [email protected] |