Skip to main content

Hugo EUVDEUVD-2026-41916

| CVE-2026-50134 MEDIUM
Server-Side Request Forgery (SSRF) (CWE-918)
2026-06-16 https://github.com/gohugoio/hugo GHSA-vxgm-5rmg-5w8g
6.3
CVSS 4.0 · Vendor: https://github.com/gohugoio/hugo
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify Hugo CI build using security.http.urls allow-list
  2. Delivery
    Compromise or spoof an allow-listed external host
  3. Exploit
    Serve HTTP 3xx redirect to forbidden internal target (e.g., metadata API, Redis)
  4. Execution
    Hugo follows redirect without re-validating target URL
  5. Persist
    Internal host responds with sensitive data
  6. Impact
    Data embedded in build output or exfiltrated via build logs

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V4 - API and Web Service URL allowlisting, SSRF prevention
MITRE ATT&CK

2 techniques across 2 tactics: Initial Access, Credential Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires three concurrent conditions: (1) the Hugo site must have a non-empty security.http.urls allow-list configured in hugo.toml - deployments without this setting or those that fully trust all remote URLs are explicitly excluded by the advisory; (2) one or more Hugo templates must call resources.GetRemote with a URL pointing to a host matched by the allow-list during the build; (3) the attacker must be able to influence the HTTP response of that allowed host - by compromising the server, poisoning its DNS entry as seen from the build host, or intercepting unencrypted HTTP traffic on the build network - in order to serve a 3xx redirect to a forbidden target. Exploitation is additionally bounded to Hugo's build phase (not runtime serving), limiting impact to resources reachable from the build environment. Non-default allow-list configuration, required control over an allowed server, and build-phase-only execution are the primary limiting factors that reduce realistic risk below what a network-reachable SSRF against a default-configured service would carry.

Impact

No CVSS score or vector is provided in the source data, so risk is inferred entirely from the description, CWE classification, and advisory context. This is not a default-configuration vulnerability: it is only exploitable in Hugo deployments that explicitly configure security.http.urls and rely on it as a security boundary - the advisory directly states it is 'not an issue if you fully trust every URL passed to resources.GetRemote.' Attack complexity is high because the adversary must be able to control or manipulate an HTTP server that is already on the allow-list (via server compromise, DNS hijacking, or MitM on the build network). Exploitation is limited to Hugo's build phase, so impact is bounded to the build environment's network reachability and any secrets accessible from it (e.g., cloud instance metadata APIs, internal service endpoints). No EPSS score is available; no CISA KEV entry exists; no public proof-of-concept has been identified. Taken together, real-world risk is moderate and highly context-dependent: elevated for hardened CI/CD build systems fetching from semi-trusted external origins, negligible for personal sites or pipelines without URL policy enforcement.

Exploit ScenarioDerived

An attacker who has compromised a web server already permitted by the victim's security.http.urls allow-list (or who can hijack its DNS record within the CI/CD build network) configures it to respond with an HTTP 302 redirect pointing to http://169.254.169.254/latest/meta-data/iam/security-credentials/ or an internal Redis instance. When the Hugo CI pipeline executes resources.GetRemote against the allowed host, the unpatched HTTP client silently follows the redirect and fetches the internal resource, potentially embedding cloud IAM credentials or internal service responses into build artifacts or logs. No public proof-of-concept code has been identified, but the attack is trivially reproducible from the integration test included in the fix commit.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 16, 2026

HTTP redirect validation bypass in Hugo v0.91.0-v0.161.1 allows the resources.GetRemote build-time HTTP client to follow 3xx redirects to hosts explicitly forbidden by the security.http.urls allow-list, enabling server-side request forgery (SSRF) against internal network targets. Build pipelines that rely on security.http.urls as a trust boundary - for example, CI systems that fetch from semi-trusted external hosts while restricting access to internal metadata services or private IP ranges - are the primary risk population. No public exploit has been identified at time of analysis, and exploitation requires an attacker to control or manipulate an already-permitted external host.

RemediationAI

Upgrade Hugo to v0.162.0 or later, which installs a CheckRedirect hook on the resources.GetRemote HTTP client that re-validates every redirect target URL against security.http.urls and caps redirect chains at 10 hops. No configuration change is required alongside the upgrade. The release is available at https://github.com/gohugoio/hugo/releases/tag/v0.162.0 and the fix commit is 86fbb0f7a8bbb93e2e916390de9e5a4f24bf9f50. If an immediate upgrade is not feasible, a compensating control is to configure the Hugo HTTP client to disable redirect following at the network perimeter (e.g., via a forward proxy that blocks 3xx pass-through to internal RFC-1918 or link-local ranges); note this may break legitimate redirect-dependent resources and requires proxy infrastructure. Alternatively, auditing every URL passed to resources.GetRemote in templates and confirming none resolve to externally controlled hosts reduces the attack surface, but does not eliminate the underlying bypass.

Affected VersionsENISA

hugo 0.91.0, < 0.162.0

Affected Packages

go github.com/gohugoio/hugo fix: 0.162.0
euvd hugo_0_91_0 fix: 0.162.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in go, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Hugo is a Go-based static site generator (pkg:go/github.com/gohugoio/hugo). The resources.GetRemote function issues build-time HTTP requests using Go's standard net/http client. Since v0.91.0, Hugo exposes a security.http.urls configuration key - a regex allow-list in hugo.toml - to constrain which remote hosts resources.GetRemote may contact; this is especially useful in CI/CD pipelines fetching third-party assets. The root cause (CWE-918: Server-Side Request Forgery) is that the original implementation validated only the *initial* request URL against the allow-list. No CheckRedirect hook was installed on the HTTP client, so any HTTP 3xx response issued by an allowed host could silently redirect the client to a denied target (e.g., http://localhost/, http://169.254.169.254/) without triggering a policy check. The fix in commit 86fbb0f7a8bbb93e2e916390de9e5a4f24bf9f50 installs a CheckRedirect callback that re-invokes CheckAllowedHTTPURL on every intermediate redirect URL and enforces a hard cap of 10 redirect hops.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/gohugoio/hugo) PRIMARY 6.3 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:N/SA:N
vuln.today AI 6.8 MEDIUM

Network-exploitable via build-time HTTP; AC:H because attacker must control an allow-listed host or its DNS; scope change to internal hosts drives C:H with no integrity or availability impact.

3.1 AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:N/A:N
4.0 AV:N/AC:H/AT:P/PR:N/UI:N/VC:L/VI:N/VA:N/SC:H/SI:N/SA:N
SUSE MEDIUM
Red Hat 5.8 MEDIUM

Primary rating from Vendor (https://github.com/gohugoio/hugo).

CVSS VectorVendor: https://github.com/gohugoio/hugo

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
Low
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

1
CVSS changed
Jul 06, 2026 - 20:22 NVD
6.3 (MEDIUM)

DescriptionCVE.org

Commit: 86fbb0f7a8 - _security: Validate redirects against security.http.urls_ Affected versions: v0.91.0 (when security.http.urls was introduced) through v0.161.1. Fixed in: v0.162.0. 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.

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.

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.

Threat Intelligence Overview

EPSS Score
0.3%
Top 74% exploitable
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact· derived
Medium

Priority Score

32
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Server-Side Request Forgery exploits applications that fetch remote resources based on user-supplied URLs.

Vendor StatusVendor

SUSE

Severity: Moderate

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy