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

Medium 6.3 Published Updated

Attackers can bypass URL allow-lists in Hugo's remote resource fetching via HTTP redirects, accessing forbidden hosts and reading sensitive data.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-50134?

CVE-2026-50134 is a medium-severity server-side request forgery vulnerability in gohugoio hugo, published on 6 Jul 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

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.

Weakness: CWE-918

Which versions are affected by CVE-2026-50134?

3 open source packages ship an affected version, including github.com/gohugoio/hugo. It affects 1 product.

PackageAffectedFixed in
github.com/gohugoio/hugo GoFrom 0.91.00.162.0
github.com/gohugoio/hugo GoFrom 0.91.00.162.0
github.com/gohugoio/hugo GoFrom 0.91.00.162.0

Products include Gohugo Hugo.

How do I fix CVE-2026-50134?

Upgrade github.com/gohugoio/hugo to 0.162.0 or later.

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

Is CVE-2026-50134 being exploited?

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

Sources

Also known as DEBIAN-CVE-2026-50134, GHSA-vxgm-5rmg-5w8g, GO-2026-5681, JLSEC-2026-795, UBUNTU-CVE-2026-50134.

Is CVE-2026-50134 in your software?

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

Check your SBOMs for free