Skip to main content
← All vulnerabilities
CVE-2026-50134GHSA-VXGM-5RMG-5W8GGO-2026-5681

Hugo: security.http.urls allow-list bypass via HTTP redirects

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 0.162.0
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • gohugoio hugo

    From 0.91.0 · fixed in 0.162.0

  • github.com/gohugoio/hugoGo

    From 0.91.0 · fixed in 0.162.0

References 3

GitHub · gohugoio/hugo