{"id":"CVE-2026-58404","revision":"7498c921baf348f495b5e4f6793ce968","records":[{"revision":"7498c921baf348f495b5e4f6793ce968","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-58404","aliases":[],"title":"Hugo security.http.urls deny rules bypassed by alternate IPv4 encodings","description":"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.","state":0,"publishedAt":"2026-07-06T19:16:15.945+00:00","modifiedAt":"2026-07-07T15:08:53.514+00:00","affected":[{"ecosystem":"Vendor product","name":"hugo","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"gohugoio\",\n                    \"product\": \"hugo\",\n                    \"versions\": [\n                        {\n                            \"version\": \">= v0.162.0, < v0.163.1\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 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","score":4.6,"severity":"MEDIUM"}],"references":["https://github.com/gohugoio/hugo/security/advisories/GHSA-r46f-3rpw-hxrv","https://github.com/gohugoio/hugo/pull/15020","https://github.com/gohugoio/hugo/commit/a00b5c72ac57afe26df6688ece3ca544a56df372","https://github.com/gohugoio/hugo/releases/tag/v0.163.1"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-58404","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-58404","identifiers":["CVE-2026-58404"]},"retained":false,"historicalAffected":[]}],"coverage":[]}