CVE-2026-58404: Hugo security.http.urls deny rules bypassed by alternate IPv4 encodings

Published Jul 6, 2026
·
Updated

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.

Affected Software

3 affected components
Hugo Hugo>=v0.162.0<=v0.163.0
Hugo Hugo=v0.163.1
gohugo Hugo>=0.162.0<0.163.1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in v0.163.1
  2. Configuration

    Upgrade to v0.163.1 to close the bypass where alternate IPv4 encodings of loopback/internal/cloud-metadata IPv4 literals were not matched by the deny rule.

    Hugo security.http.urls deny rules = Ensure deny rules match alternate IPv4 encodings (integer/hex/octal) in addition to dotted-decimal notation

Event History

Jul 6, 2026
CVE Published
via MITRE·07:16 PM
Data Sourced
via MITRE·07:16 PM
DescriptionWeakness
Data Sourced
via NVD·08:16 PM
RemedyDescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2026-58404?

The severity of CVE-2026-58404 is classified as medium with a score of 4.6 according to CVSS.

2

How do I fix CVE-2026-58404?

To fix CVE-2026-58404, upgrade Hugo to version 0.163.1 or later, which addresses the bypass of deny rules.

3

What type of vulnerability is CVE-2026-58404?

CVE-2026-58404 is categorized as a Server-Side Request Forgery (SSRF) vulnerability.

4

What versions of Hugo are affected by CVE-2026-58404?

CVE-2026-58404 affects Hugo versions from 0.162.0 through 0.163.0.

5

What is the impact of CVE-2026-58404?

The impact of CVE-2026-58404 is that it allows attackers to bypass security rules intended to block requests to certain IPv4 addresses.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203