CVE-2026-50134

Name
CVE-2026-50134
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.
NVD Severity
unknown
Other trackers
Mailing lists
Exploits
Forges
GitHub (code, issues), Aports (code, issues)

References

Type URI
security-advisories@github.com https://github.com/gohugoio/hugo/commit/86fbb0f7a8bbb93e2e916390de9e5a4f24bf9f50
security-advisories@github.com https://github.com/gohugoio/hugo/releases/tag/v0.162.0
security-advisories@github.com https://github.com/gohugoio/hugo/security/advisories/GHSA-vxgm-5rmg-5w8g

Match rules

CPE URI Source package Min version Max version
cpe:2.3:a:gohugo:hugo:*:*:*:*:*:*:*:* hugo >= 0.91.0 < 0.162.0

Vulnerable and fixed packages

Source package Branch Version Maintainer Status
hugo edge-community 0.160.1-r1 Thomas Boerger <thomas@webhippie.de> possibly vulnerable
hugo edge-community 0.160.1-r0 Thomas Boerger <thomas@webhippie.de> possibly vulnerable
hugo edge-community 0.159.0-r1 Thomas Boerger <thomas@webhippie.de> possibly vulnerable
hugo edge-community 0.159.0-r0 Thomas Boerger <thomas@webhippie.de> possibly vulnerable
hugo edge-community 0.158.0-r0 Thomas Boerger <thomas@webhippie.de> possibly vulnerable
hugo edge-community 0.157.0-r0 Thomas Boerger <thomas@webhippie.de> possibly vulnerable
hugo edge-community 0.155.3-r3 Thomas Boerger <thomas@webhippie.de> possibly vulnerable
hugo edge-community 0.152.2-r3 Thomas Boerger <thomas@webhippie.de> possibly vulnerable
hugo edge-community 0.152.2-r2 Thomas Boerger <thomas@webhippie.de> possibly vulnerable
hugo edge-community 0.152.2-r1 Thomas Boerger <thomas@webhippie.de> possibly vulnerable
hugo edge-community 0.152.2-r0 Thomas Boerger <thomas@webhippie.de> possibly vulnerable
hugo edge-community 0.152.1-r0 Thomas Boerger <thomas@webhippie.de> possibly vulnerable
hugo edge-community 0.151.0-r1 Thomas Boerger <thomas@webhippie.de> possibly vulnerable
hugo edge-community 0.151.0-r0 Thomas Boerger <thomas@webhippie.de> possibly vulnerable
hugo edge-community 0.150.0-r0 Thomas Boerger <thomas@webhippie.de> possibly vulnerable
hugo edge-community 0.148.2-r2 Thomas Boerger <thomas@webhippie.de> possibly vulnerable
hugo edge-community 0.148.2-r1 Thomas Boerger <thomas@webhippie.de> possibly vulnerable
hugo edge-community 0.148.2-r0 Thomas Boerger <thomas@webhippie.de> possibly vulnerable
hugo edge-community 0.148.1-r0 Thomas Boerger <thomas@webhippie.de> possibly vulnerable
hugo edge-community 0.148.0-r0 Thomas Boerger <thomas@webhippie.de> possibly vulnerable
hugo edge-community 0.147.9-r1 Thomas Boerger <thomas@webhippie.de> possibly vulnerable
hugo edge-community 0.147.9-r0 Thomas Boerger <thomas@webhippie.de> possibly vulnerable
hugo edge-community 0.147.7-r1 Thomas Boerger <thomas@webhippie.de> possibly vulnerable
hugo edge-community 0.147.7-r0 Thomas Boerger <thomas@webhippie.de> possibly vulnerable
hugo edge-community 0.147.2-r0 Thomas Boerger <thomas@webhippie.de> possibly vulnerable
hugo edge-community 0.145.0-r2 Thomas Boerger <thomas@webhippie.de> possibly vulnerable
hugo edge-community 0.145.0-r1 Thomas Boerger <thomas@webhippie.de> possibly vulnerable
hugo edge-community 0.145.0-r0 Thomas Boerger <thomas@webhippie.de> possibly vulnerable
hugo edge-community 0.144.0-r1 Thomas Boerger <thomas@webhippie.de> possibly vulnerable
hugo edge-community 0.144.0-r0 Thomas Boerger <thomas@webhippie.de> possibly vulnerable
hugo edge-community 0.143.0-r1 Thomas Boerger <thomas@webhippie.de> possibly vulnerable
hugo edge-community 0.143.0-r0 Thomas Boerger <thomas@webhippie.de> possibly vulnerable
hugo edge-community 0.142.0-r0 Thomas Boerger <thomas@webhippie.de> possibly vulnerable
hugo edge-community 0.141.0-r1 Thomas Boerger <thomas@webhippie.de> possibly vulnerable
hugo edge-community 0.141.0-r0 Thomas Boerger <thomas@webhippie.de> possibly vulnerable
hugo edge-community 0.140.1-r0 Thomas Boerger <thomas@webhippie.de> possibly vulnerable
hugo edge-community 0.139.0-r0 Thomas Boerger <thomas@webhippie.de> possibly vulnerable
hugo 3.24-community 0.160.1-r1 Thomas Boerger <thomas@webhippie.de> possibly vulnerable