# CVE-2026-50134: Hugo: security.http.urls allow-list bypass via HTTP redirects

- Severity: Medium 6.3 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.40%, higher than 25% of CVEs (2026-11-30)
- Published: 2026-06-16T19:22:37.000Z
- Modified: 2026-10-25T20:10:00.147Z
- Also known as: GHSA-vxgm-5rmg-5w8g, GO-2026-5681
- Weaknesses: CWE-918
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- gohugoio hugo: >= 0.91.0, < 0.162.0
- github.com/gohugoio/hugo (Go): from 0.91.0 before 0.162.0
- gohugo hugo: from 0.91.0 before 0.162.0

## Every score

- GitHub_M: CVSS:4.0 6.3 Medium `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`
- GitHub: rating Medium
- NVD: CVSS:3.1 5.8 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:N/A:N`

## References

- <https://github.com/gohugoio/hugo/security/advisories/GHSA-vxgm-5rmg-5w8g> (advisory, vendor-advisory, web)
- <https://github.com/gohugoio/hugo/commit/86fbb0f7a8bbb93e2e916390de9e5a4f24bf9f50> (fix, patch, web)
- <https://github.com/gohugoio/hugo/releases/tag/v0.162.0> (release-notes, web)
- <https://github.com/gohugoio/hugo> (package)

## Sources

- CVE List: [CVE-2026-50134](https://www.cve.org/CVERecord?id=CVE-2026-50134), CVE Terms of Use, modified 2026-07-07
- GitHub Advisory Database: [GHSA-vxgm-5rmg-5w8g](https://github.com/advisories/GHSA-vxgm-5rmg-5w8g), CC-BY-4.0, modified 2026-07-07
- Go Vulnerability Database: [GO-2026-5681](https://pkg.go.dev/vuln/GO-2026-5681), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2026-50134](https://nvd.nist.gov/vuln/detail/CVE-2026-50134), Public domain, modified 2026-10-25

---

Page: https://cve.day/CVE-2026-50134 · Whole record: https://cve.day/CVE-2026-50134.json · Rebuilt by cve.day 2026-11-25T22:59:27.243Z
