A vulnerability identified as CVE-2026-126799 affects the Gotenberg service, which converts HTML and office documents to PDF. The flaw exists in versions 8.31.0 through 8.37.0 and was addressed in version 8.38.0.

The issue stems from how Go's net/netip package handles IPv6 addresses with zones. While SSRF protection filters were designed to block local IPv6 ranges, appending a zone identifier—such as %25 followed by an interface name—allowed requests to bypass these checks.

The vulnerability occurs because methods like netip.Prefix.Contains return false for addresses containing a zone, rendering standard blocklists ineffective. Additionally, the IsUnspecified check fails to recognize an address as unspecified if a zone is present, even though other checks like IsLoopback ignore the zone.

To mitigate this, developers can strip the zone from the address using WithZone("") before performing validation. Furthermore, implementing a check within net.Dialer.Control provides a secondary layer of defense, ensuring that connections are blocked even if the initial URL validation is bypassed.

The researcher verified these findings using Go versions 1.26.11 and 1.27.4. The tests confirmed that while standard local addresses are blocked, appending a zone to the unspecified IPv6 address allows unauthorized access to services listening on the loopback interface.