Mailpit jest narzędziem testowania poczty e-mail i API dla deweloperów. Poprawka dla CVE-2026-23845 (SSRF poprzez HTML Check API) wydana w wersji 1.28.3 wzmocniła funkcję pobierania CSS limitem 5MB, sprawdzeniem typu content-type `text/css` oraz oczyszczaniem danych logowania, ale nie dodała IP-filteringu dialera używanego w pozostałych SSRF endpointach. Przed wersją 1.30.0 funkcja `newSafeHTTPClient` buduje `http.Client`, którego `Transport.DialContext` wywołuje `net.Dialer.DialContext` bez żadnego allowlistingu IP, umożliwiając dostęp do zakresu loopback, prywatnych i zarezerwowanych adresów. Atakujący może wykorzystać przekierowanie do sieci prywatnej bez widocznego odbicia w HTML poprzez publiczną stronę kontrolowaną przez atakującego — w domyślnym wdrożeniu mailpita (bez autoryzacji UI/SMTP, porty 1025/8025 dostępne) stanowi to nie
▸ Pokaż oryginał (EN)
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.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:L/A:NAxllent Mailpit
APPAxllent1.28.3 – 1.30.0 (bez)
Powiązane podatności
Mailpit SMTP/HTTP – brak limitu rozmiaru wiadomości prowadzi do wyczerpania pamięci (DoS)
Mailpit to narzędzie testowania poczty elektronicznej i API dla deweloperów. Przed wersją 1.30.0 podkomenda ma...
Mailpit to narzędzie testowania poczty e-mail dla developerów. Przed wersją 1.30.1 poprawka poprzedniego waria...
Mailpit to narzędzie do testowania poczty e-mail i API dla deweloperów. Przed wersją 1.30.0 proxy screenshot/p...
Mailpit to narzędzie testowania poczty e-mail i API dla deweloperów. Przed wersją 1.29.2 Link Check API (/api/...