CVE-2026-40280 Gotenberg SSRF via case-insensitive URL scheme bypass in webhook and downloadFrom deny-lists
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: partial
Description
Gotenberg is an API-based document conversion tool. In versions 8.30.1 and earlier, the default private-IP deny-lists for the --webhook-deny-list and --api-download-from-deny-list flags use a case-sensitive regular expression (^https?://) to match URL schemes. Because Go's net/url.Parse() normalizes the scheme to lowercase before establishing the outbound TCP connection, an attacker can bypass the deny-list by simply capitalizing part of the URL scheme (e.g., HTTP://, HTTPS://, or Http://). This allows unauthenticated requests to reach internal network services, including private IP ranges, loopback addresses, and cloud instance metadata endpoints such as HTTP://169.254.169.254/latest/meta-data/.
This bypasses the same security control that was patched in CVE-2026-27018.
This issue has been fixed in version 8.31.0.
Upgrade path
3 packages: 1 fixed, 1 partially fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| gotenberg(Go) | < 8.31.0; <= 8.30.1; All versions | 8.31.0 | Partially fixed |
| thecodingmachine gotenberg | < 8.31.0 | 8.31.0 | Fixed |
| gotenberg | = <= 8.30.1 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| gotenberg(Go) | < 8.31.0 | 8.31.0 |
| gotenberg(Go) | All versions | No fix listed |
| gotenberg | = <= 8.30.1 | No fix listed |
| gotenberg(Go) | <= 8.30.1 | No fix listed |
| thecodingmachine gotenberg | < 8.31.0 | 8.31.0 |
References
- https://github.com/gotenberg/gotenberg/security/advisories/GHSA-5q7p-7jgv-ww56 exploit mitigation vendor-advisory
- nvd.nist.gov third-party-advisory vendor-advisory
- https://github.com/gotenberg/gotenberg/commit/3f01ca18d3cc21375a1e2da4b5a3f261c8548e47 patch
- https://github.com/advisories/GHSA-jjwv-57xh-xr6r not-applicable vendor-advisory
- github.com product
- github.com
- github.com