CVE-2026-67448: CWE-177: Improper Handling of URL Encoding (Hex Encoding) in axllent mailpit
Description
CVE-2026-67448 is a vulnerability in axllent mailpit versions 1.29.0 through 1.30.5 involving improper handling of URL encoding in WebSocket origin checks. The origin check relies on the raw request URI prefix, but Go's ServeMux routes on the percent-decoded path, allowing an attacker to bypass origin validation by encoding the path. This leads to unauthorized WebSocket connections that can leak sensitive email data. The issue arises because the upgrader accepts all origins and the middleware origin check is bypassed due to inconsistent handling of encoded URLs.
CVSS v3.1
Score 6.5medium
Affected software
axllent
mailpit
pkg:github/axllent/mailpitRun on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in mailpit stems from a mismatch between the origin check and the routing logic. The origin check is performed on the raw, percent-encoded request URI, while the Go ServeMux router matches on the decoded path. An attacker can craft a request with a percent-encoded path (e.g., /%61pi/events) that bypasses the origin check but is routed to the WebSocket handler. Since the upgrader's CheckOrigin function unconditionally returns true, the WebSocket connection is established without proper origin validation. This allows cross-origin WebSocket hijacking, exposing sensitive email information such as message IDs, sender and recipient addresses, subjects, and body snippets. The vulnerability affects mailpit versions from 1.29.0 up to but not including 1.30.6. The issue was introduced when a previous fix removed CheckOrigin and replaced it with a raw URI prefix check that is bypassable due to URL decoding behavior.
Potential Impact
An attacker controlling a malicious website visited by a user running an unauthenticated mailpit instance can establish unauthorized WebSocket connections. This leads to leakage of sensitive email data including IDs, sender and recipient information, subjects, and message snippets. The vulnerability does not require credentials or mail sending capabilities, only that mailpit is running without UI authentication. WebSocket connections bypass CORS protections once established, making the origin check critical. This vulnerability can result in significant confidentiality loss of email content.
Mitigation Recommendations
No official patch information is provided in the input data. Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The suggested fix is to perform origin checks on the decoded URL path (r.URL.Path) rather than the raw request URI, ensuring the origin check aligns with routing. Additionally, restoring a proper CheckOrigin function in the WebSocket upgrader to enforce origin validation independently is recommended. Enabling UI authentication (--ui-auth-file) prevents this bypass by requiring authentication. Until a patch is available, users should enable UI authentication to mitigate risk.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-07-29T15:07:24.992Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 6a877790acd9273b492c5fcb
Added to database: 08/20/2026, 21:54:24 UTC
Last enriched: 09/11/2026, 03:48:19 UTC
Last updated: 10/05/2026, 06:48:18 UTC
Views: 71
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.