Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/axllent/mailpit
  4. ›
  5. CVE-2026-45712

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

May 19, 2026

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.

References

  • github.com/advisories/GHSA-w4vj-r5pg-3722
  • github.com/axllent/mailpit/releases/tag/v1.30.0
  • github.com/axllent/mailpit/security/advisories/GHSA-w4vj-r5pg-3722
  • nvd.nist.gov/vuln/detail/CVE-2026-45712

Code Behaviors & Features

Detect and mitigate CVE-2026-45712 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.30.0

Fixed versions

  • 1.30.0

Solution

Upgrade to version 1.30.0 or above.

Impact 5.9 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-362: Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')
  • CWE-770: Allocation of Resources Without Limits or Throttling

Source file

go/github.com/axllent/mailpit/CVE-2026-45712.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 23 Jun 2026 12:23:28 +0000.