This project follows semantic versioning. Security fixes are applied to the latest released minor version only. Please upgrade before reporting.
Do not open a public issue or pull request for security vulnerabilities.
Report privately via GitHub's Private Vulnerability Reporting:
- Go to the Security tab of this repository.
- Click Report a vulnerability.
- Describe the issue, affected version, and reproduction steps.
You'll get an acknowledgement and can track the fix in the private advisory. Once a fix ships, the advisory is published with credit (unless you prefer to remain anonymous).
This server brokers OAuth access to Google accounts — Gmail, Drive, Calendar, and (when enabled) Workspace Admin SDK scopes. A vulnerability could expose mail, files, or directory data. Of particular interest:
- Token handling — refresh tokens are AES-256-GCM encrypted at rest (
~/.config/mcp-google-multi/tokens/<alias>.enc, mode0600) with a key derived fromMASTER_KEY; tokens must never be logged or transmitted, andMASTER_KEYmust never be committed or logged. Error payloads carry onlymessage+ code — never raw error objects (which can hold theAuthorizationheader). - Header / MIME construction — Gmail tools build raw RFC 5322 messages; injection (e.g. CRLF in headers) is in scope.
- Scope escalation — anything that grants an account scopes it didn't consent to.
- Vulnerabilities requiring an already-compromised local machine or a maliciously modified
.env. - Issues in Google's own APIs (report those to Google).
Never paste OAuth tokens, client secrets, MASTER_KEY, authorization codes, or .env contents into issues, PRs, or logs.