{"id":"CVE-2026-50134","state":"PUBLISHED","title":"Hugo: security.http.urls allow-list bypass via HTTP redirects","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.","publishedAt":"2026-07-06T19:42:49.280Z","updatedAt":"2026-07-07T16:57:36.713Z","severity":{"score":6.3,"label":"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","source":"GitHub_M"},"assigner":"GitHub_M","products":["gohugoio hugo"],"affected":[{"vendor":"gohugoio","product":"hugo","versions":[{"version":">= 0.91.0, < 0.162.0","status":"affected"}]}],"references":["https://github.com/gohugoio/hugo/security/advisories/GHSA-vxgm-5rmg-5w8g","https://github.com/gohugoio/hugo/commit/86fbb0f7a8bbb93e2e916390de9e5a4f24bf9f50","https://github.com/gohugoio/hugo/releases/tag/v0.162.0"],"weaknesses":["CWE-918"],"ingestedAt":"2026-10-29T20:12:16.098Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/50xxx/CVE-2026-50134.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-50134","state":"PUBLISHED","datePublished":"2026-07-06T19:42:49.280Z","dateUpdated":"2026-07-07T16:57:36.713Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-06-03T18:49:32.275Z"},"containers":{"cna":{"title":"Hugo: security.http.urls allow-list bypass via HTTP redirects","descriptions":[{"lang":"en","value":"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":[{"vendor":"gohugoio","product":"hugo","versions":[{"version":">= 0.91.0, < 0.162.0","status":"affected"}]}],"references":[{"url":"https://github.com/gohugoio/hugo/security/advisories/GHSA-vxgm-5rmg-5w8g","name":"https://github.com/gohugoio/hugo/security/advisories/GHSA-vxgm-5rmg-5w8g","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/gohugoio/hugo/commit/86fbb0f7a8bbb93e2e916390de9e5a4f24bf9f50","name":"https://github.com/gohugoio/hugo/commit/86fbb0f7a8bbb93e2e916390de9e5a4f24bf9f50","tags":["x_refsource_MISC"]},{"url":"https://github.com/gohugoio/hugo/releases/tag/v0.162.0","name":"https://github.com/gohugoio/hugo/releases/tag/v0.162.0","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV4_0":{"attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"PRESENT","privilegesRequired":"NONE","userInteraction":"NONE","vulnConfidentialityImpact":"NONE","vulnIntegrityImpact":"NONE","vulnAvailabilityImpact":"NONE","subConfidentialityImpact":"LOW","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","baseScore":6.3,"baseSeverity":"MEDIUM","vectorString":"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","version":"4.0"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-918","lang":"en","description":"CWE-918: Server-Side Request Forgery (SSRF)","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-07-06T19:42:49.280Z"},"source":{"advisory":"GHSA-vxgm-5rmg-5w8g","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-07-07T16:52:13.588144Z","id":"CVE-2026-50134","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-07-07T16:57:36.713Z"}}]}}}