This repository is part of the Gitlytics Ecosystem. Security issues in any Gitlytics repository follow the same private disclosure process.
| Version | Supported |
|---|---|
0.9.x (latest) |
Yes |
< 0.9.0 |
No |
- Loopback Default & Non-Loopback Gate:
gitlytics dashboardbinds to127.0.0.1by default. Any non-loopback--host(0.0.0.0,::, or a LAN IP) requires--public-bind, which automatically drops pre-configured server tokens (--tokenandGITLYTICS_TOKEN) so each caller must supply their own GitHub token. - No Ambient
GITHUB_TOKENPromotion:gitlytics dashboardnever silently promotes an ambientGITHUB_TOKENfrom your shell into the HTTP server; pass--tokenor setGITLYTICS_TOKENexplicitly on loopback if desired. - Local Stdio MCP Isolation (
gitlytics mcp): Tool schemas never accept raw GitHub tokens as arguments (preventing secrets in AI chat logs); live GitHub tools readGITLYTICS_TOKEN/GITHUB_TOKENstrictly from process environment variables. CSV vault queries enforce strict path containment under--data-dirand reject path traversal (..). - Trusted
Host& Same-Origin Checks: Browser requests are validated against trusted loopback hosts (localhost,127.0.0.1,[::1], orGITLYTICS_ALLOWED_HOSTSfor reverse proxies) and requireapplication/jsonon JSONPOSTroutes. - Upload Access & Size Caps:
POST /api/upload-csvenforcesGITLYTICS_UPLOAD_KEY(viaX-Upload-Key) whenever set, caps request bodies at 5 MiB before multipart parsing, and limits parsed CSVs to 50,000 rows and 2,000 unique repositories. - Principal & Privacy Isolation:
POST /api/trafficscopesGITLYTICS_DATA_DIRCSV archives to repositories owned by or accessible to the authenticated token, public username lookups filter withis:public, andexport_public_only=Trueexcludes all rows of any repository marked private. - Security Headers: The packaged
src/gitlytics/static/_headersfile carries a hash-pinnedContent-Security-Policy(frame-ancestors 'none',object-src 'none'), applied by the local FastAPI server to every response.
Do not open a public GitHub issue for security vulnerabilities.
Please report vulnerabilities privately using either:
- GitHub's Private Vulnerability Reporting (Security tab -> Advisories -> Report a vulnerability).
- Email contact@gitlytics.dev (or ameyasanjaychopade@gmail.com) with
[SECURITY]in the subject line.
Please include:
- Affected Repository & Component (e.g.
gitlyticsCLI,gitlytics mcp, Python SDK, or local dashboard) - Impact & Detailed Description
- Steps to Reproduce or minimal Proof of Concept
- Acknowledgment: Within 72 hours.
- Triage & Investigation: Severity assessment and root-cause analysis.
- Fix & Advisory: Coordinated patch release and credit (if desired).