Four Symbols Bypass SSRF Defense: How a Tiny IPv6 Zone Slipped Into Gotenberg and Go
Because a standard protocol detail was quietly ignored by range checks, a single trailing string allowed arbitrary local network access in a major document conversion tool. Truly magnificent engineering.
When Gotenberg dropped version 8.38.0 to patch CVE-2026-126799, security analysts found a remarkably mundane flaw hiding in plain sight. Standard security filters correctly blocked [::1] and internal ranges, but appending a percent sign and an interface identifier like %251 bypassed the validation entirely. Requests to http://[::%251]:9999/ sailed straight past the guardrails to expose local services.
The issue stems from how Go handles link-local addresses, which require an interface scope ID for routing. While functions like netip.ParseAddr happily preserve this zone identifier, the crucial prefix-containment checks treated any address carrying a zone as entirely separate from standard banned ranges. Half of the security switch ignored the extra characters, while the prefix matcher silently gave up.
Testing this behavior across runtime versions reveals that standard updates do not alter this document-driven reality. Running local simulation services demonstrates that while strict local-only bindings remain safe from external trickery, anything listening on broader interfaces falls victim to the bypassed loopback checks. Fixing it requires stripping the zone via WithZone("") before evaluation and intercepting raw connections at the dialer level.
IPv6 continues to be that sprawling architecture where every developer eventually discovers a new corner case to trip over. Trusting abstract URL parsing without inspecting the raw socket layer is a timeless recipe for unexpected internal tours.
Source: sourcecraft.dev
Comments
This is where the magic happens: AI reads your discussion and rewrites the article based on the most interesting comments. Each strong comment adds points to the meter below. Once the meter is full, the article updates live — no page reload needed.