Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-110240 Overview
CVE-2026-110240 is a Server-Side Request Forgery (SSRF) protection bypass in the Lancet Go utility library through version 2.3.9. The netutil.IsInternalIP function misclassifies IPv6 private, link-local, Carrier-Grade NAT (CGNAT), and IPv4 transition addresses as external. Attackers can submit hostnames that resolve to these address forms, including NAT64, 6to4, or Teredo addresses embedding internal IPv4 ranges, to reach internal services or cloud metadata endpoints. The flaw is tracked under CWE-918: Server-Side Request Forgery.
Critical Impact
Applications relying on netutil.IsInternalIP for SSRF defense can be tricked into contacting internal infrastructure, including cloud instance metadata services such as 169.254.169.254, enabling credential theft and lateral movement.
Affected Products
- Lancet Go library versions through 2.3.9
- Lancet v1.x branch (including v1.4.6 code path)
- Applications importing github.com/duke-git/lancet/netutil for SSRF allowlisting
Discovery Timeline
- 2026-10-13 - CVE-2026-110240 published to the National Vulnerability Database
- 2026-10-13 - Last updated in NVD database
Technical Details for CVE-2026-110240
Vulnerability Analysis
The IsInternalIP function in Lancet's netutil package was designed to flag private IPv4 ranges before an HTTP client dispatches a request. The implementation only inspected RFC 1918 IPv4 ranges (10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16) and link-local 169.254.0.0/16. It did not evaluate IPv6 private, unique-local, or link-local addresses, nor did it recognize IPv4 shared address space defined by RFC 6598 (100.64.0.0/10).
The function also failed to parse IPv6 transition formats. NAT64 (64:ff9b::/96), 6to4 (2002::/16), and Teredo (2001::/32) addresses embed an IPv4 destination inside an IPv6 address. An attacker can craft a hostname whose DNS record returns a transition address containing a private IPv4 target, bypassing allowlists that call IsInternalIP.
Root Cause
The root cause is incomplete input validation of network addresses. The validator trusted the surface representation of the IP without canonicalizing IPv6 transition formats or consulting Go's standard net.IP.IsPrivate() and net.IP.IsLinkLocalUnicast() helpers.
Attack Vector
An unauthenticated remote attacker submits a URL or hostname to an application endpoint that fetches external resources. The hostname resolves to a transition address such as [64:ff9b::a9fe:a9fe] (NAT64-embedded 169.254.169.254) or to a CGNAT address. The Lancet check returns false, and the server dispatches the request to internal infrastructure.
// IsInternalIP verify an ip is intranet or not.
// Play: https://go.dev/play/p/sYGhXbgO4Cb
func IsInternalIP(IP net.IP) bool {
- if IP.IsLoopback() {
+ if IP.IsLoopback() || IP.IsPrivate() || IP.IsLinkLocalUnicast() {
return true
}
if ip4 := IP.To4(); ip4 != nil {
- return ip4[0] == 10 ||
- (ip4[0] == 172 && ip4[1] >= 16 && ip4[1] <= 31) ||
- (ip4[0] == 169 && ip4[1] == 254) ||
- (ip4[0] == 192 && ip4[1] == 168)
+ // RFC 6598 shared address space, 100.64.0.0/10.
+ return ip4[0] == 100 && ip4[1]&0xc0 == 0x40
+ }
+ if embedded, ok := embeddedTransitionIPv4(IP); ok {
+ return IsInternalIP(embedded)
}
return false
}
+// embeddedTransitionIPv4 returns the IPv4 address carried by a NAT64, 6to4, or Teredo address.
+func embeddedTransitionIPv4(ip net.IP) (net.IP, bool) {
+ ip = ip.To16()
+ if ip == nil || ip.To4() != nil {
+ return nil, false
+ }
+ switch {
+ case bytes.Equal(ip[:12], []byte{0x00, 0x64, 0xff, 0x9b, 0, 0, 0, 0, 0, 0, 0, 0}):
+ return net.IPv4(ip[12], ip[13], ip[14], ip[15]), true
Source: Lancet patch commit 835111c
Detection Methods for CVE-2026-110240
Indicators of Compromise
- Outbound HTTP requests from application servers to IPv6 transition prefixes 64:ff9b::/96, 2002::/16, or 2001::/32.
- Application-originated connections to cloud metadata endpoints such as 169.254.169.254, fd00:ec2::254, or metadata.google.internal.
- DNS resolutions returning CGNAT (100.64.0.0/10) or IPv6 unique-local (fc00::/7) addresses for user-supplied hostnames.
Detection Strategies
- Audit Go projects for imports of github.com/duke-git/lancet/netutil and flag any use of IsInternalIP at or below version 2.3.9.
- Deploy egress proxies that normalize IPv6 transition addresses and block requests destined for private, link-local, or metadata ranges.
- Correlate web application access logs showing user-supplied URL parameters against outbound firewall logs for internal destinations.
Monitoring Recommendations
- Log and alert on application processes initiating connections to RFC 1918, RFC 6598, link-local, and unique-local address space.
- Monitor cloud instance metadata service access for unexpected caller processes or user agents.
- Enable DNS query logging to detect resolution of attacker-controlled domains that return internal address families.
How to Mitigate CVE-2026-110240
Immediate Actions Required
- Upgrade the Lancet dependency to the patched release containing commit 835111c and rebuild affected services.
- Inventory all codepaths that fetch user-supplied URLs and verify they validate the resolved IP, not just the hostname.
- Restrict outbound network policy on application workloads to known external destinations only.
Patch Information
The maintainers of Lancet merged Pull Request #357, which rewrites IsInternalIP to call net.IP.IsPrivate() and net.IP.IsLinkLocalUnicast(), adds RFC 6598 shared address space handling, and decodes embedded IPv4 from NAT64, 6to4, and Teredo IPv6 addresses. See VulnCheck's advisory for full remediation guidance and the referenced Lancet Issue #356 for discussion.
Workarounds
- Replace calls to netutil.IsInternalIP with a custom validator that evaluates IsPrivate, IsLinkLocalUnicast, IsLoopback, and transition-address decoding before dispatching requests.
- Force outbound HTTP clients to resolve hostnames once, validate the resolved address, and connect by IP to prevent DNS rebinding.
- Deploy a hardened egress proxy or metadata firewall (for example, IMDSv2 enforcement on AWS) to block SSRF payloads at the network boundary.
# Update the Lancet dependency to a patched release
go get github.com/duke-git/lancet/v2@latest
go mod tidy
# Verify the resolved version no longer matches the vulnerable range
go list -m github.com/duke-git/lancet/v2
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

