# CVE-2026-45709: Mailpit has an incomplete fix for GHSA-6jxm: HTML check still permits SSRF to private/loopback/IMDS via missing IP-filter dialer

- Severity: Medium 5.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A: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): 0.27%, higher than 19% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-19T15:52:16.000Z
- Modified: 2026-10-24T20:10:00.137Z
- Also known as: GHSA-j3fj-qppj-fmmc, GO-2026-5446
- Weaknesses: CWE-918
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

Mailpit is an email testing tool and API for developers. The fix for GHSA-6jxm-fv7w-rw5j (CVE-2026-23845, "Server-Side Request Forgery (SSRF) via HTML Check API"), shipped in mailpit `v1.28.3`, hardened `internal/htmlcheck/css.go::downloadCSSToBytes` with a 5MB size cap, a `text/css` content-type check, login-info stripping in `isValidURL`, and an opt-in `--block-remote-css-and-fonts` config flag — but did not add the IP-filtering dialer that the same codebase already uses on the two sister SSRF endpoints (the proxy handler and link-check). Prior to version 1.30.0, `internal/htmlcheck/css.go::newSafeHTTPClient` is mis-named — it builds an `http.Client` whose `Transport.DialContext` calls `net.Dialer.DialContext` directly with no IP allowlisting. As a result, the SSRF originally reported by Bao Anh Phan still permits the server to dial loopback, private, link-local, and any other reserved/multicast range, provided the target replies with `HTTP/200` and a content-type beginning with `text/css`. With redirect-following (`CheckRedirect` allows redirects to any `isValidURL` URL with no IP filter), an attacker-controlled public site can redirect mailpit's request into the private network without ever appearing in the email's HTML. In the default mailpit deploy (no UI auth, no SMTP auth, port 1025/8025 exposed), this is an unauthenticated, network-reachable SSRF triggered by sending an HTML email and then issuing one HTTP `GET` to `/api/v1/message/{id}/html-check`. Version 1.30.0 contains an updated fix.

(As written by CVE List.)

## Affected

- axllent mailpit: >= 1.28.3, < 1.30.0; from 1.28.3 before 1.30.0
- github.com/axllent/mailpit (Go): from 1.28.3 before 1.30.0

## Every score

- GitHub_M: CVSS:3.1 5.8 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N`
- GitHub: CVSS:3.1 5.8 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:N`

## References

- <https://github.com/axllent/mailpit/security/advisories/GHSA-j3fj-qppj-fmmc> (exploit, advisory, vendor-advisory, web)
- <https://github.com/axllent/mailpit/releases/tag/v1.30.0> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-45709> (advisory)
- <https://github.com/axllent/mailpit> (package)

## Sources

- CVE List: [CVE-2026-45709](https://www.cve.org/CVERecord?id=CVE-2026-45709), CVE Terms of Use, modified 2026-07-20
- GitHub Advisory Database: [GHSA-j3fj-qppj-fmmc](https://github.com/advisories/GHSA-j3fj-qppj-fmmc), CC-BY-4.0, modified 2026-09-02
- Go Vulnerability Database: [GO-2026-5446](https://pkg.go.dev/vuln/GO-2026-5446), CC-BY-4.0, modified 2026-06-25
- NVD: [CVE-2026-45709](https://nvd.nist.gov/vuln/detail/CVE-2026-45709), Public domain, modified 2026-10-24

---

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