All vulnerabilities

Servers and applications

GHSA-pmrv-x7gp-2rjw

A mixed case URL would bypass the security.http.urls IP-literal deny rule

Severity
Medium
Published
9 Sept 2026
Last changed
12 Sept 2026
Added to UpHeron
3 Nov 2026
Fixed in
0.166.0
Sources
Project advisories (GitHub)

Description

Hugo's security.http.urls allowlist is the only control on outbound fetches made by resources.GetRemote.

The default IP-literal deny rule was case-sensitive, so an uppercase scheme (e.g. HTTP://127.0.0.1/) slipped past it. Make it case insensitive like the other default rules.

From gohugoio/hugo's security advisory.

Workarounds

Avoid passing untrusted URLs to resources.GetRemote, or tighten security.http.urls to an explicit allow-list of trusted hosts.

Workarounds as given by gohugoio/hugo's security advisory.

Affected software

SoftwareAffected versions
HugoServers and applications · github:gohugoio/hugo
  • From 0.162.0 before 0.166.0

About Hugo

static site and RSS generator written in Go

From Wikidata, CC0 1.0.
Share of all websites
0.1%W3Techs, Nov 2026
GitHub stars
90,472GitHub, 15 Nov 2026
Forks
8,450GitHub, 15 Nov 2026
Latest release
v0.170.0GitHub, 15 Nov 2026
Released
13 Nov 2026GitHub
Developer
Bjorn Erik PedersenWikidata
License
Apache Software License 2.0Wikidata
Written in
GoWikidata
First released
2013Wikidata
First published on GitHub
4 Jul 2013GitHub

References