CVE-2026-58404

Hugo security.http.urls deny rules bypassed by alternate IPv4 encodings

MEDIUM
6.8
CVSS Score
Published: July 6, 2026 at 07:16 PM UTC
Updated: October 25, 2026 at 08:10 PM UTC
2 products affected across 2 vendorsHugoHugo

Using hugo by gohugoio?

Get instant alerts when new vulnerabilities affect hugo - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM6.8
Exploit prediction
EPSS 0.4%
SSVC
No known exploit

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

All versions0.162.0 ≤ v < 0.163.1
Affected range stops below 0.163.1, so it looks safe — our inference, not a vendor statement
Affected range stops below 0.163.1, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

References (4)

x_refsource_CONFIRMMitigationVendor Advisory
Source: cverecord
https://github.com/gohugoio/hugo/security/advisories/GHSA-r46f-3rpw-hxrv
x_refsource_MISCIssue Tracking
Source: cverecord
https://github.com/gohugoio/hugo/pull/15020
x_refsource_MISCRelease Notes
Source: cverecord
https://github.com/gohugoio/hugo/releases/tag/v0.163.1

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
LOW
User Interaction
REQUIRED
Scope
CHANGED
Confidentiality
HIGH
Integrity
NONE
Availability
NONE
Vector?

Quick Info

StatusANALYZED
CWE
CWE-918

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card