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.
Published: 2026-07-06
Score: 6.3 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

Hugo is a static site generator that retrieves remote content through its resources.GetRemote function. In releases from 0.91.0 up to (but not including) 0.162.0 the function applied the security.http.urls allow‑list to the original request URL, but it did not re‑evaluate URLs that were encountered in HTTP 3xx redirects. As a result, a host that was explicitly allowed could redirect the request to a completely different server that the policy intended to forbid, allowing the application to fetch data from an unintended source. This bypass also removes any host‑shape restrictions the operator may have configured. The primary impact is that an attacker can retrieve arbitrary external content without the user’s consent, potentially exposing secrets or injecting malicious artifacts into the generated site.

Affected Systems

The vulnerability affects installations of the gohugoio Hugo static site generator that are version 0.91.0 or newer but lower than 0.162.0. Any site that uses resources.GetRemote to fetch remote assets is impacted. The affected releases span the range 0.91.0 through 0.161.x, while version 0.162.0 and later incorporate the fix.

Risk and Exploitability

The CVSS score of 6.3 indicates medium severity. The EPSS score of < 1% signals a low probability of exploitation, and the vulnerability is not listed in the CISA KEV catalog. Based on the description, the likely attack vector is a compromised or malicious domain that is present on the security.http.urls allow‑list, which then issues an HTTP redirect to a host that the policy intends to forbid. If successful, the attacker can cause the site to fetch arbitrary remote data, potentially exposing sensitive information or allowing downstream exploitation within the generated site. This attack requires control over the DNS record or HTTP response of a host on the allow‑list, but no privileged access to the Hugo instance itself.

Generated by OpenCVE AI on July 26, 2026 at 20:15 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade Hugo to version 0.162.0 or later
  • Restrict the security.http.urls allow‑list to include only explicitly trusted domains and avoid wildcard or overly broad entries
  • Configure a custom redirect‑checking mechanism or monitor logs for redirects that lead to disallowed hosts

Generated by OpenCVE AI on July 26, 2026 at 20:15 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Github GHSA Github GHSA GHSA-vxgm-5rmg-5w8g Hugo: security.http.urls allow-list bypass via HTTP redirects
History

Tue, 07 Jul 2026 17:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}


Mon, 06 Jul 2026 22:45:00 +0000

Type Values Removed Values Added
First Time appeared Gohugo
Gohugo hugo
Vendors & Products Gohugo
Gohugo hugo

Mon, 06 Jul 2026 19:45:00 +0000

Type Values Removed Values Added
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.
Title Hugo: security.http.urls allow-list bypass via HTTP redirects
Weaknesses CWE-918
References
Metrics cvssV4_0

{'score': 6.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:N/SA:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-07-07T16:57:36.713Z

Reserved: 2026-06-03T18:49:32.275Z

Link: CVE-2026-50134

cve-icon Vulnrichment

Updated: 2026-07-07T16:52:16.859Z

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-07-26T20:30:03Z

Weaknesses
  • CWE-918

    Server-Side Request Forgery (SSRF)