Mailpit Concurrent Map Access Vulnerability Leading to Denial-of-Service

Vulnerability

A denial-of-service vulnerability has been identified in Mailpit, an email testing tool for developers, in versions prior to 1.30.0. The issue arises in the screenshot/print proxy, which manages a cache of message assets. The proxy reads this cache without proper synchronization, allowing concurrent writes from a cleanup routine and CSS-rewriting process to cause a fatal runtime error. This unsynchronized access can be exploited by sending concurrent requests to the proxy, leading to a crash that terminates the Mailpit process and disrupts its SMTP, POP3, and HTTP services.

Impact

Exploitation of this vulnerability causes a fatal error that crashes the Mailpit process, terminating all active SMTP, POP3, and HTTP services.

Reproduction

To reproduce this vulnerability, send a message containing a stylesheet link to the Mailpit inbox via the SMTP or the API v1 send endpoint, both of which are unauthenticated by default. Then, issue concurrent requests to the proxy endpoint, targeting the same message's CSS URL with a crafted stylesheet that includes numerous URL entries to prolong the processing time. This can be automated with a script that manages the concurrent requests.

Remediation

Users are advised to upgrade to Mailpit version 1.30.0 or later, where this vulnerability has been patched.

Added: Jul 20, 2026, 9:23 PM
Updated: Jul 20, 2026, 9:23 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
2.5
exploitability
7.6
remediation
0.0
relevance
9.9
threat
6.4
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.