Vulnerability · Published Jul 6, 2026 · Assigned by GitHub_M

CVE-2026-50134Hugo: security.http.urls allow-list bypass via HTTP redirects

Medium 6.3

In plain English

A medium-severity server-side request forgery in hugo from gohugoio. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 34% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)6.3Medium
Exploit odds (30 days)0.4%top 66.0% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

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

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12hugono fix listedDEBIAN-CVE-2026-50134
Debian:13hugono fix listedDEBIAN-CVE-2026-50134
Debian:14hugo0.162.1-1DEBIAN-CVE-2026-50134
Gogithub.com/gohugoio/hugo0.162.0GHSA-vxgm-5rmg-5w8g
Gogithub.com/gohugoio/hugo0.162.0GO-2026-5681
Ubuntu:22.04:LTShugono fix listedUBUNTU-CVE-2026-50134
Ubuntu:25.10hugono fix listedUBUNTU-CVE-2026-50134
Ubuntu:26.04:LTShugono fix listedUBUNTU-CVE-2026-50134
Ubuntu:26.10hugono fix listedUBUNTU-CVE-2026-50134

Affected products (as reported)

VendorProductVersions
gohugoio hugo >= 0.91.0, < 0.162.0

Weakness: CWE-918 · 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

References