Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1336 CNY

100%

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

Quick assessment

Affected
gohugoio hugo
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

gohugo hugo是gohugo团队开源的一个生成静态网站的框架。 GoHugo Hugo v0.162.0版本至v0.163.0版本存在服务端请求伪造漏洞,该漏洞源于默认的security.http.urls策略对IPv4地址的编码方式检查不完善,导致整数、十六进制或八进制等替代编码方式绕过规则,当模板传递不可信或数据派生的URL给resources.GetRemote且主机平台使用cgo系统解析器时,可对回环地址和内部服务(包括托管或CI构建中的云元数据端点)发起构建时服务端请求。

AI Predicted 5.5 Difficulty: Moderate EPSS 0.37% · P31

Affected Version Matrix 1

VendorProduct Version RangeStatus
gohugoio hugo >= v0.162.0, < v0.163.1 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-58404

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Hugo security.http.urls deny rules bypassed by alternate IPv4 encodings
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
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
Source: CVE Program / CVE List V5
Vulnerability Type
服务端请求伪造(SSRF)
Source: CVE Program / CVE List V5
Vulnerability Title
GoHugo Hugo 服务端请求伪造漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
gohugo hugo是gohugo团队开源的一个生成静态网站的框架。 GoHugo Hugo v0.162.0版本至v0.163.0版本存在服务端请求伪造漏洞,该漏洞源于默认的security.http.urls策略对IPv4地址的编码方式检查不完善,导致整数、十六进制或八进制等替代编码方式绕过规则,当模板传递不可信或数据派生的URL给resources.GetRemote且主机平台使用cgo系统解析器时,可对回环地址和内部服务(包括托管或CI构建中的云元数据端点)发起构建时服务端请求。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
gohugoio hugo >= v0.162.0, < v0.163.1 -

II. Public POCs for CVE-2026-58404

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-58404

登录查看更多情报信息。

Patches & Fixes for CVE-2026-58404 (2)

Vendor Advisories for CVE-2026-58404 (1)

Vendor Pages for CVE-2026-58404 (1)

Same Patch Batch · gohugoio · 2026-07-06 · 6 CVEs total

CVE-2026-58402 Hugo default code block renderer XSS via unescaped code-fence language
CVE-2026-58403 Hugo symlink confinement bypass in os.ReadFile
CVE-2026-50134 Hugo: security.http.urls allow-list bypass via HTTP redirects
CVE-2026-50133 Hugo: XSS via text/html content files
CVE-2026-50135 Hugo: Symlink confinement bypass in resources.Get

IV. Related Vulnerabilities

V. Comments for CVE-2026-58404

No comments yet


Leave a comment