{"cve":"CVE-2026-58404","nvd":{"published":"2026-07-06T20:16:38.307","modified":"2026-10-25T20:10:00.147","status":"Analyzed","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.","cvss_v4":{"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},"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:N/A:N","score":6.8},"cwes":["CWE-918"],"references":["https://github.com/gohugoio/hugo/commit/a00b5c72ac57afe26df6688ece3ca544a56df372","https://github.com/gohugoio/hugo/pull/15020","https://github.com/gohugoio/hugo/releases/tag/v0.163.1","https://github.com/gohugoio/hugo/security/advisories/GHSA-r46f-3rpw-hxrv"],"products":["gohugo:hugo"],"source":"nvd","synced_at":"2026-10-25T23:44:34.550481224+00:00"},"epss":{"cve":"CVE-2026-58404","score":0.00368,"percentile":0.30372,"date":"2026-10-25"},"kev":null,"osv":[{"id":"GHSA-r46f-3rpw-hxrv","url":"https://osv.dev/vulnerability/GHSA-r46f-3rpw-hxrv","summary":"Hugo: security.http.urls deny rules bypassed by alternate IPv4 encodings (SSRF)","modified":"2026-07-24T19:11:46.394705101Z","packages":[{"ecosystem":"Go","name":"github.com/gohugoio/hugo","purl":"pkg:golang/github.com/gohugoio/hugo","ranges":[">=0.162.0 <0.163.1"],"fixed":["0.163.1"]}]},{"id":"GO-2026-5606","url":"https://osv.dev/vulnerability/GO-2026-5606","summary":"Hugo: security.http.urls deny rules bypassed by alternate IPv4 encodings (SSRF) in github.com/gohugoio/hugo","modified":"2026-07-24T19:11:46.394705101Z","packages":[{"ecosystem":"Go","name":"github.com/gohugoio/hugo","purl":"pkg:golang/github.com/gohugoio/hugo","ranges":[">=0.162.0 <0.163.1"],"fixed":["0.163.1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}