{"id":"CVE-2026-50134","published":"2026-07-06T19:42:49Z","modified":"2026-07-07T16:57:36Z","title":"Hugo: security.http.urls allow-list bypass via HTTP redirects","vendor":"gohugoio","product":"hugo","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":6.3,"severity":"MEDIUM","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00396,"percentile":0.34694,"provenance":"source"},"cwes":[{"id":"CWE-918","name":"Server-Side Request Forgery"}],"references":[{"url":"https://github.com/gohugoio/hugo/security/advisories/GHSA-vxgm-5rmg-5w8g","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/gohugoio/hugo/commit/86fbb0f7a8bbb93e2e916390de9e5a4f24bf9f50","tags":["x_refsource_MISC"]},{"url":"https://github.com/gohugoio/hugo/releases/tag/v0.162.0","tags":["x_refsource_MISC"]}],"priority":{"score":11.3,"factors":[{"name":"EPSS percentile","points":6.94},{"name":"CVSS severity","points":4.41}]},"vendorSlug":"gohugoio","affectedVersions":[{"vendor":"gohugoio","product":"hugo","versions":[">= 0.91.0, < 0.162.0"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-07T16:52:13.588144Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/gohugoio/hugo","vulnerableRanges":[">=0.91.0, <0.162.0"],"patched":["0.162.0"],"from":["GHSA-vxgm-5rmg-5w8g","GO-2026-5681"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-41916","exploited":false,"provenance":"source"}}