---
id: CVE-2026-10582
title: >-
  Hugo's security.http.urls allowlist is the only control on outbound fetches
  made by resources.GetRemote, and it inspects the URL text alone
summary: >-
  Hugo's security.http.urls allowlist is the only control on outbound fetches
  made by resources.GetRemote, and it inspects the URL text alone.
  CheckAllowedHTTPURL in config/security/securityConfig.go applies the
  configured pattern list and…
severity: high
cvss: 7.4
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N'
cwe:
  - CWE-918
published: '2026-08-24'
updated: '2026-09-24'
sourceUpdated: '2026-09-24T20:43:32.537'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-10582'
references:
  - url: 'https://github.com/gohugoio/hugo'
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/gohugoio/hugo/blob/v0.165.0/config/security/securityConfig.go
    label: disclosure@vulncheck.com
  - url: >-
      https://github.com/gohugoio/hugo/blob/v0.165.0/resources/resource_factories/create/create.go
    label: disclosure@vulncheck.com
  - url: >-
      https://www.vulncheck.com/advisories/hugo-through-server-side-request-forgery-via-security-http-urls-lacking-destination-address-validation
    label: disclosure@vulncheck.com
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-10582.json
  - url: 'https://access.redhat.com/security/cve/CVE-2026-10582'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2521803'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-10582'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-10582'
  - url: 'https://access.redhat.com/errata/RHSA-2026:66266'
tags:
  - nvd
  - csaf
  - vex
  - red-hat
epss: 0.00315
epssPercentile: 0.21913
ingestedAt: '2026-09-24T20:51:40.219Z'
vendor: Red Hat
product: Red Hat Hardened Images
affected:
  - hardened_images
patched:
  - hardened_images
---

## Overview

Hugo's security.http.urls allowlist is the only control on outbound fetches made by resources.GetRemote, and it inspects the URL text alone. CheckAllowedHTTPURL in config/security/securityConfig.go applies the configured pattern list and then re-checks a canonicalised form of an integer, hex or octal IPv4 host, but it never resolves the hostname and never inspects the address the HTTP client actually connects to. The client constructed in resources/resource_factories/create/create.go installs no dial-time hook, so no check occurs at connection time either. A hostname that resolves to a loopback, private or cloud-metadata address therefore satisfies the policy, and the response body is embedded in the generated site. An attacker who can supply a URL through content, for example a front-matter field or a CMS field, can make the build fetch an internal endpoint and publish the response in the static output, so the build artifact itself carries the data out.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Vendor advisories

- **RHSA-2026:66266** · Red Hat · fixed in: Red Hat Hardened Images · released 2026-09-09 · [advisory](https://access.redhat.com/errata/RHSA-2026:66266)
