CVE-2026-50134
MEDIUM 6.3CVSS 4.0Hugo: security.http.urls allow-list bypass via HTTP redirects
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.
- Published
- 6 Jul 2026
- Last modified
- 25 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Analyzed
- Weakness
- CWE-918
- Also known as
- GHSA-vxgm-5rmg-5w8gGO-2026-5681
- Sources
- NVDJSONOSV GHSA-vxgm-5rmg-5w8gJSONOSV GO-2026-5681JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | MEDIUM 6.3 | 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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | MEDIUM 5.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | gohugo | hugocpe:2.3:a:gohugo:hugo:*:*:*:*:*:*:*:* |
>= 0.91.0, < 0.162.0 | 0.162.0 |
| OSV | Go | github.com/gohugoio/hugo | >= 0.91.0, < 0.162.0 | 0.162.0 |
References
- https://github.com/gohugoio/hugo/commit/86fbb0f7a8bbb93e2e916390de9e5a4f24bf9f50 · Patch, WEB, FIX
- https://github.com/gohugoio/hugo/releases/tag/v0.162.0 · Release Notes, WEB
- https://github.com/gohugoio/hugo/security/advisories/GHSA-vxgm-5rmg-5w8g · Vendor Advisory, WEB, ADVISORY
- https://github.com/gohugoio/hugo · PACKAGE
History
- 25 Nov 2026 21:03 UTC · NVD: first stored (published 6 Jul 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 7 Jul 2026)
- 25 Nov 2026 20:14 UTC · OSV: first stored (published 16 Jun 2026)