CVE-2026-50134: Hugo Security.http.urls Allow-list Bypass Vulnerability
MODERATECVE-2026-50134 is a MODERATE security.http.urls allow-list bypass vulnerability (CWE-918: Server-Side Request Forgery (SSRF)) affecting Hugo libraries in the Go ecosystem. The issue involves security.http.urls allow-list bypass via http redirects. Remediation is available by upgrading affected packages to version 0.162.0.
CVE-2026-50134 at a Glance
How to Fix CVE-2026-50134
To remediate this vulnerability, upgrade all affected Hugo dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/gohugoio/hugo to 0.162.0
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/gohugoio/hugo
How to Check if You Are Affected
To determine whether your application is affected by CVE-2026-50134, inspect your project dependencies for Hugo:
inspect dependencies for github.com/gohugoio/hugo
Analyze the terminal output to locate any version of Hugo in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.162.0), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-918: Server-Side Request Forgery (SSRF), where the web server receives a url or similar request from an upstream component and retrieves the contents of this url, but it does not sufficiently ensure that the request is being sent to the expected destination. In Hugo, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-50134 Affected Hugo Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/gohugoio/hugo
|
Go |
≥ 0.91.0
< 0.162.0
|
0.162.0
|
References
Frequently Asked Questions
What is CVE-2026-50134?
Which Hugo versions are affected?
What version fixes CVE-2026-50134?
Is github.com/gohugoio/hugo affected?
What CWE is associated with CVE-2026-50134?
How can I check Go dependencies for CVE-2026-50134?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-vxgm-5rmg-5w8g",
"modified" : "2026-06-16T19:22:37Z",
"published" : "2026-06-16T19:22:37Z",
"aliases" : [ "CVE-2026-50134" ],
"summary" : "Hugo: security.http.urls allow-list bypass via HTTP redirects",
"details" : "**Commit:** [86fbb0f7a8](https://github.com/gohugoio/hugo/commit/86fbb0f7a8) — _security: Validate redirects against security.http.urls_\n**Affected versions:** v0.91.0 (when `security.http.urls` was introduced) through v0.161.1.\n**Fixed in:** v0.162.0.\n**Severity:** Only relevant for sites that rely on `security.http.urls` as a trust boundary — e.g. CI builds that fetch remote resources but want to constrain which hosts can be reached. Not an issue if you fully trust every URL passed to `resources.GetRemote`.\n\n**Description.** `resources.GetRemote` enforces `security.http.urls` on the URL it is called with, but until v0.162.0 it did not re-validate intermediate URLs on HTTP 3xx redirects. An allowed server (or an attacker controlling its DNS or response) could therefore redirect the request to a host that the policy was meant to forbid — for example, `http://localhost/` or an internal IP — and Hugo would fetch from the redirected target. The same bypass also lifted any host-shape restriction the operator had put in place.\n\n**Mitigation.** v0.162.0 installs a `CheckRedirect` on the HTTP client used by `resources.GetRemote` that re-runs `security.http.urls` on every redirect target and caps the redirect chain at 10 hops. No configuration change is required.",
"severity" : [ ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/gohugoio/hugo"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0.91.0"
}, {
"fixed" : "0.162.0"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/gohugoio/hugo/security/advisories/GHSA-vxgm-5rmg-5w8g"
}, {
"type" : "WEB",
"url" : "https://github.com/gohugoio/hugo/commit/86fbb0f7a8bbb93e2e916390de9e5a4f24bf9f50"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/gohugoio/hugo"
}, {
"type" : "WEB",
"url" : "https://github.com/gohugoio/hugo/releases/tag/v0.162.0"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-918" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2026-06-16T19:22:37Z",
"nvd_published_at" : null
}
}