CVE-2026-50134 Hugo: security.http.urls allow-list bypass via HTTP redirects
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.
| Package | Affected | Fixed in |
|---|---|---|
github.com/gohugoio/hugo Go | From 0.91.0 | 0.162.0 |
github.com/gohugoio/hugo Go | From 0.91.0 | 0.162.0 |
github.com/gohugoio/hugo Go | From 0.91.0 | 0.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.
Other vulnerabilities in gohugoio hugo
- CVE-2026-75926 Hugo 0.162.0 to 0.164.x - Node Permission Model Bypass via Default TailwindCSS Child-Process Grant
- CVE-2026-100690 Hugo v0.161.0 to v0.165.0 Arbitrary File Read via Symlinks
- CVE-2026-100692 Hugo before v0.166.0 Path Traversal via Symlinked Mount Roots
- CVE-2026-100693 Hugo v0.162.0 before v0.166.0 IP-literal Deny Rule Bypass
- CVE-2020-26284 Hugo can execute a binary from the current directory on Windows
Sources
Also known as DEBIAN-CVE-2026-50134, GHSA-vxgm-5rmg-5w8g, GO-2026-5681, JLSEC-2026-795, UBUNTU-CVE-2026-50134.