/

CVE-2026-126799

Severity:

HIGH RISK

(7.5)

SSRF (CWE-918) in Gotenberg IPv6 Address Validation

CVE-2026-126799

Awaiting Analysis

Vulnerability type

Category:

Server-Side Request Forgery (SSRF)

CWE:

CWE-918

Impact:

Access to internal services and potential disclosure of their responses

Severity:

HIGH RISK

(7.5)

CVSS version:

3.1

Catch this CVE while code is being written

Detect vulnerable code directly in pull requests, so CVEs are fixed before merge.

Summary

Gotenberg's public-IP checks can be bypassed when IPv6 zone identifiers are used in URLs processed by affected features. An unauthenticated attacker who can submit a URL to those features may reach internal services, with responses potentially exposed in a generated PDF.

Affected context

The issue affects Gotenberg versions from 8.31.0 up to, but not including, 8.38.0. It occurs in URL handling paths that rely on IsPublicIP() to reject private or otherwise blocked IPv6 addresses, including download, webhook, and Chromium or LibreOffice URL workflows. Risk depends on the service being reachable and accepting attacker-controlled URLs in those paths.

Exploit preconditions

  • Attack surface: A Gotenberg endpoint that accepts URLs for downloads, webhooks, or document processing
  • Required access: No authentication is required according to the vulnerability description; the attacker must be able to submit a request to an exposed endpoint
  • Trigger point: URL processing and public-IP validation
  • Why exploitation is possible: IPv6 zone identifiers can cause the address validation logic to misclassify addresses that should be denied, allowing server-side requests to reach internal destinations

Why this happens

The underlying bug is inconsistent handling of IPv6 zone identifiers during address validation. The IsPublicIP() check does not reliably ensure that the address ultimately used for a server-side request is public and permitted. This is a CWE-918: Server-Side Request Forgery (SSRF) weakness: attacker-influenced URL data can make a server issue requests to destinations outside the intended trust boundary.

Potential impact

  • An attacker may cause Gotenberg to send requests to internal services.
  • Internal service responses could be exposed through generated documents, including returned PDFs.
  • Requests could reach network locations that the public-IP deny list is intended to block.
  • The issue could increase the risk of further compromise if reachable internal services have sensitive or privileged functions.

General mitigation guidance

Defensive patterns focus on validating the destination that will actually be contacted and limiting outbound network access:

  • Use a well-tested URL and IP parsing approach that handles IPv6 representations consistently, including zone identifiers.
  • Normalize and validate addresses before making requests, and apply the same checks after redirects or DNS resolution.
  • Prefer explicit destination allowlists when the application has a known set of required external services.
  • Restrict outbound connectivity with network controls so document-processing components cannot reach unnecessary internal services.
  • Reduce the amount of attacker-controlled URL input and run request-processing components with least privilege.

How teams detect issues like this

  • Review code paths that validate IP addresses separately from the HTTP client or resolver that makes the request.
  • Use static analysis and code review to identify server-side requests constructed from user-controlled URLs and checks that do not account for IPv6 zone identifiers, redirects, or DNS resolution.
  • Test URL-handling policies against IPv4 and IPv6 address forms, zone identifiers, redirects, and resolved destinations.
  • Enforce egress policies that alert on or block unexpected requests from document-processing services to internal address ranges.
  • Automated code review tools can help identify URL-fetching paths that lack consistent destination validation.

Sources

SourceLink
github.comgithub.com/gotenberg/gotenberg/blob/v8.37.0/pkg/gotenberg/outbound.go#L112-L142
github.comgithub.com/gotenberg/gotenberg/commit/8e850b1c932452627fba397f2005dd6fd57b9617
github.comgithub.com/gotenberg/gotenberg/releases/tag/v8.38.0
github.comgithub.com/gotenberg/gotenberg/security/advisories/GHSA-fqg9-x2xw-5crx
vulncheck.comvulncheck.com/advisories/gotenberg-8.31.0-before-8.38.0-ssrf-via-ipv6-zone-identifiers-in-ispublicip

Frequently asked

questions

It concerns Gotenberg URL-processing paths that rely on public-IP validation, including download, webhook, and Chromium or LibreOffice workflows.

The vulnerability description identifies unauthenticated exploitation. The Gotenberg service must be reachable, and an attacker must be able to submit a URL to an affected path.

Ensure destination validation accounts for IPv6 zone identifiers and is applied to the address the HTTP client actually contacts, including after redirects and DNS resolution.

Reduce attacker control over destination URLs, use explicit destination allowlists where practical, and enforce outbound network restrictions as defense in depth.

Find out what's already
exploitable in your codebase.