{"id":"CVE-2026-58404","published":"2026-07-06T19:16:15Z","modified":"2026-07-07T15:08:53Z","title":"Hugo security.http.urls deny rules bypassed by alternate IPv4 encodings","vendor":"gohugoio","product":"hugo","tier":"tail","description":{"text":"Hugo is a static site generator. From v0.162.0 through v0.163.0, the default security.http.urls policy denies requests to loopback, internal, and cloud-metadata IPv4 literals, but the deny rule only matched dotted-decimal notation, so alternate IPv4 encodings of the same addresses, including integer, hex, or octal, passed the policy. When a template passes an untrusted or data-derived URL to resources.GetRemote and the host platform uses the cgo system resolver, these encodings resolve to the blocked address, allowing build-time server-side requests to loopback and internal services, including the cloud-metadata endpoint in hosted or CI builds; the same check is reused on redirects, so the gap also applies to each redirect hop. This issue is fixed in v0.163.1.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.6,"severity":"MEDIUM","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:P/VC:N/VI:N/VA:N/SC:H/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00368,"percentile":0.3143,"provenance":"source"},"cwes":[{"id":"CWE-918","name":"Server-Side Request Forgery"}],"references":[{"url":"https://github.com/gohugoio/hugo/security/advisories/GHSA-r46f-3rpw-hxrv","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/gohugoio/hugo/pull/15020","tags":["x_refsource_MISC"]},{"url":"https://github.com/gohugoio/hugo/commit/a00b5c72ac57afe26df6688ece3ca544a56df372","tags":["x_refsource_MISC"]},{"url":"https://github.com/gohugoio/hugo/releases/tag/v0.163.1","tags":["x_refsource_MISC"]}],"priority":{"score":9.5,"factors":[{"name":"EPSS percentile","points":6.29},{"name":"CVSS severity","points":3.22}]},"vendorSlug":"gohugoio","affectedVersions":[{"vendor":"gohugoio","product":"hugo","versions":[">= v0.162.0, < v0.163.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-07-07T15:08:15.371330Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Go","package":"github.com/gohugoio/hugo","vulnerableRanges":[">=0.162.0, <0.163.1"],"patched":["0.163.1"],"from":["GO-2026-5606"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-41918","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2026-50134","published":"2026-07-06","fixed":"0.162.0","kev":false},{"cve":"CVE-2026-50135","published":"2026-07-06","fixed":"0.162.0","kev":false},{"cve":"CVE-2026-58403","published":"2026-07-06","fixed":"0.163.1","kev":false},{"cve":"CVE-2026-58404","published":"2026-07-06","fixed":"0.163.1","kev":false},{"cve":"CVE-2026-58402","published":"2026-07-06","fixed":"0.163.3","kev":false,"link":{"from":"CVE-2026-58404","to":"CVE-2026-58402","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Go:github.com/gohugoio/hugo","fromFixed":"0.163.1","toFixed":"0.163.3","daysApart":0}]}}],"package":"Go:github.com/gohugoio/hugo"}}