If you discover a security vulnerability in mairouter, please report it through GitHub Private Vulnerability Reporting.
Please do not open a public issue for security vulnerabilities.
We will acknowledge receipt within 48 hours and provide an estimated timeline for a fix. Security patches are prioritized and released as soon as they are verified.
Security-relevant areas of mairouter include:
- JWT_SECRET — dashboard session cookie signing; must use a strong random value
- INITIAL_PASSWORD — the default password (
123456) must be changed on first login - API_KEY_SECRET — HMAC secret for local API key generation
- MACHINE_ID_SALT — salt for machine identification
- Provider credentials — API keys and OAuth tokens stored in the local SQLite database
- Cloud sync — data transmitted between local instance and cloud endpoint
This is an MIT-licensed open-source project with no bug bounty program. We appreciate responsible disclosure and will give credit to reporters in release notes.
- Always set a strong
JWT_SECRETvia environment variable - Change
INITIAL_PASSWORDon first login - Set
API_KEY_SECRETto a random string if enabling API key authentication - Restrict filesystem access to the data directory (
DATA_DIR) - Use environment variables rather than
.envfiles in production - Consider running behind a reverse proxy (Nginx, Caddy) with HTTPS