CVE-2026-54452
JSON

6.3medium

safeurl: Missing IPv6 CIDR Ranges in Blocklist

Severity
6.3medium CVSS:4.0 by GitHub_M
Exploit likelihood
0.39% (higher than 35% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-xgch-x3mx-cm3cGO-2026-5997

Description

safeurl is a server-side request forgery protection library. Prior to 0.2.4, the privateNetworks list in ip.go omits the IPv6 ranges 64:ff9b:1::/48, 5f00::/16, 3fff::/20, and 100:0:0:1::/64. When an application enables IPv6 with EnableIPv6(true), an attacker-controlled destination in one of these ranges is not recognized as non-public and can pass the SSRF destination check, potentially allowing access to resources hosted within the omitted ranges. IPv6 is disabled by default, and configurations that retain EnableIPv6(false) are not exposed to this bypass. This issue is fixed in version 0.2.4.

Affected

Product or packageVersionsReported by
doyensec safeurl< 0.2.4CVE List
github.com/doyensec/safeurl (Go)before 0.2.4GitHub Advisory Database, Go Vulnerability Database

All scores

GitHub_M6.3medium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:L/SI:L/SA:N
GitHubmedium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N

Classification

CWE-918

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total.

What each source says

CVE List

safeurl is a server-side request forgery protection library. Prior to 0.2.4, the privateNetworks list in ip.go omits the IPv6 ranges 64:ff9b:1::/48, 5f00::/16, 3fff::/20, and 100:0:0:1::/64. When an application enables IPv6 with EnableIPv6(true), an attacker-controlled destination in one of these ranges is not recognized as non-public and can pass the SSRF destination check, potentially allowing access to resources hosted within the omitted ranges. IPv6 is disabled by default, and configurations that retain EnableIPv6(false) are not exposed to this bypass. This issue is fixed in version 0.2.4.

GitHub Advisory Database

The privateNetworks blocklist was found to be missing newly added CIDR ranges. More specifically, the following CIDR ranges were not being blocked:

  • 64:ff9b:1::/48: NAT64 local-use prefix (RFC 8215)
  • 5f00::/16: Segment Routing (SRv6) SIDs (RFC 9602)
  • 3fff::/20: documentation prefix (RFC 9637)
  • 100:0:0:1::/64: Dummy IPv6 Prefix (RFC 9780)
Impact

If exploited, an attacker would potentially be able to reach resources hosted on the IPs residing in the missing ranges.

Workarounds

Disable IPv6 by setting EnableIPv6(false). This is the default behavior of the library.

Resolution

Upgrade to v0.2.4

Credits

safeurl thanks @tonghuaroot for reporting.

Go Vulnerability Database

safeurl is Missing IPv6 CIDR Ranges in Blocklist in github.com/doyensec/safeurl

References

Sources

SourceRecordLicence
CVE ListCVE-2026-54452 changed 2026-09-16CVE Terms of Use
GitHub Advisory DatabaseGHSA-xgch-x3mx-cm3c changed 2026-07-21CC-BY-4.0
Go Vulnerability DatabaseGO-2026-5997 changed 2026-07-21CC-BY-4.0
NVDCVE-2026-54452 changed 2026-09-30Public domain