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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | hugo | no fix listed | DEBIAN-CVE-2026-50134 |
| Debian:13 | hugo | no fix listed | DEBIAN-CVE-2026-50134 |
| Debian:14 | hugo | 0.162.1-1 | DEBIAN-CVE-2026-50134 |
| Go | github.com/gohugoio/hugo | 0.162.0 | GHSA-vxgm-5rmg-5w8g |
| Go | github.com/gohugoio/hugo | 0.162.0 | GO-2026-5681 |
| Ubuntu:22.04:LTS | hugo | no fix listed | UBUNTU-CVE-2026-50134 |
| Ubuntu:25.10 | hugo | no fix listed | UBUNTU-CVE-2026-50134 |
| Ubuntu:26.04:LTS | hugo | no fix listed | UBUNTU-CVE-2026-50134 |
| Ubuntu:26.10 | hugo | no fix listed | UBUNTU-CVE-2026-50134 |
Affected products (as reported)
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
- https://github.com/gohugoio/hugo/security/advisories/GHSA-vxgm-5rmg-5w8g x_refsource_CONFIRM
- https://github.com/gohugoio/hugo/commit/86fbb0f7a8bbb93e2e916390de9e5a4f24bf9f50 x_refsource_MISC
- https://github.com/gohugoio/hugo/releases/tag/v0.162.0 x_refsource_MISC