| Version | Supported |
|---|---|
| latest (main) | ✅ |
| older releases | ❌ |
Only the latest release on the main branch receives security fixes. Please update before reporting.
EmailFilter is a self-hosted, containerized API service. The following are considered in-scope for security reports:
- Remote code execution or command injection via API endpoints
- SSRF (Server-Side Request Forgery) through email/domain input
- DNS rebinding or MX lookup abuse leading to internal network access
- Container escape or privilege escalation
- Information disclosure of internal network topology via error messages
- Blacklist/whitelist bypass via input manipulation
- Denial of service via crafted input (e.g. infinite DNS loops, slowloris)
Out of scope:
- Issues requiring physical access to the host
- Security of third-party dependencies unrelated to EmailFilter's functionality
- Issues on unofficial forks or modified deployments
Do not open a public GitHub issue for security vulnerabilities.
Please report security issues by emailing:
Include in your report:
- Description of the vulnerability
- Steps to reproduce (curl commands, payloads, config)
- Impact assessment
- Your suggested fix (optional but appreciated)
You can expect an acknowledgment within 48 hours and a status update within 7 days.
If you run EmailFilter in production, consider the following:
Network exposure
The Docker Compose file publishes EmailFilter on 127.0.0.1:8000 only. Before making it reachable from other machines, set EMAILFILTER_API_KEY (create one with openssl rand -hex 32); every endpoint except /healthz then requires it in the X-API-Key header. Restricting the port to trusted networks is still recommended:
# Example: restrict to internal IPs only
location /filter-email {
allow 10.0.0.0/8;
allow 192.168.0.0/16;
deny all;
proxy_pass http://localhost:8000;
}Docker network isolation
Run EmailFilter in an isolated Docker network and only allow access from trusted services:
networks:
internal:
internal: trueInput validation
EmailFilter performs DNS and SMTP outbound lookups based on user-supplied input. Restrict who can call the API to trusted internal services only.
Rate limiting
EmailFilter limits each client IP to EMAILFILTER_RATE_LIMIT requests per minute (120 by default). Behind a reverse proxy, set EMAILFILTER_TRUST_PROXY to the proxy's address so the limit applies to the real client and not to the proxy. You can also limit at the proxy:
limit_req_zone $binary_remote_addr zone=emailfilter:10m rate=10r/s;
limit_req zone=emailfilter burst=20 nodelay;Outgoing connections
The SMTP, RDAP and WHOIS checks refuse to connect to private, loopback, link-local and other non-public addresses, checked after DNS resolution, so a domain cannot point EmailFilter at your internal network.
Container
The image is distroless and runs as a non-root user. The Compose file also sets a read-only root filesystem, drops all capabilities and sets no-new-privileges.
Postfix policy service
The policy port (EMAILFILTER_POLICY_LISTEN) has no authentication, as Postfix does not send any. Bind it to localhost or a private network only.
- Security issues will be fixed in a patch release as soon as possible.
- A GitHub Security Advisory will be published after the fix is released.
- Credit will be given to the reporter unless they prefer to remain anonymous.