# CVE-2026-40280: Gotenberg SSRF via case-insensitive URL scheme bypass in webhook and downloadFrom deny-lists

- Severity: High 7.8 (CVSS:4.0, scored by GitHub_M) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:L/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.95%, higher than 80% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-04-30T17:19:49.000Z
- Modified: 2026-07-24T21:10:00.143Z
- Also known as: GHSA-5q7p-7jgv-ww56, GO-2026-5151
- Weaknesses: CWE-918
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- gotenberg gotenberg: <= 8.30.1
- github.com/gotenberg/gotenberg/v8 (Go): before 8.31.0
- github.com/gotenberg/gotenberg/v7 (Go): all versions
- thecodingmachine gotenberg: before 8.31.0

## Every score

- GitHub_M: CVSS:4.0 7.8 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:L/SA:N`
- GitHub: CVSS:3.1 9.3 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:L/A:N`
- GitHub: CVSS:4.0 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:N/SC:H/SI:L/SA:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/gotenberg/gotenberg/security/advisories/GHSA-5q7p-7jgv-ww56> (exploit, advisory, mitigation, vendor-advisory, web)
- <https://github.com/gotenberg/gotenberg/commit/3f01ca18d3cc21375a1e2da4b5a3f261c8548e47> (patch, web)
- <https://github.com/advisories/GHSA-jjwv-57xh-xr6r> (advisory, not-applicable, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-40280> (advisory)
- <https://github.com/gotenberg/gotenberg> (package)
- <https://github.com/gotenberg/gotenberg/releases/tag/v8.31.0> (web)

## Sources

- CVE List: [CVE-2026-40280](https://www.cve.org/CVERecord?id=CVE-2026-40280), CVE Terms of Use, modified 2026-05-06
- GitHub Advisory Database: [GHSA-5q7p-7jgv-ww56](https://github.com/advisories/GHSA-5q7p-7jgv-ww56), CC-BY-4.0, modified 2026-07-08
- Go Vulnerability Database: [GO-2026-5151](https://pkg.go.dev/vuln/GO-2026-5151), CC-BY-4.0, modified 2026-06-25
- NVD: [CVE-2026-40280](https://nvd.nist.gov/vuln/detail/CVE-2026-40280), Public domain, modified 2026-07-24

---

Page: https://cve.day/CVE-2026-40280 · Whole record: https://cve.day/CVE-2026-40280.json · Rebuilt by cve.day 2026-11-25T22:59:20.641Z
