We actively support the following versions of MASH-Backend with security updates:
| Version | Supported | Notes |
|---|---|---|
| 1.x.x | β | Current release - Full support |
| 0.x.x | β | Beta/Development - No support |
We take the security of MASH-Backend seriously. If you discover a security vulnerability, please follow these steps:
DO NOT open a public GitHub issue for security vulnerabilities.
Instead, please report security issues privately by:
- Email: Send details to mash.mushroom.automation@gmail.com
- GitHub Security Advisory: Use GitHub's private vulnerability reporting
Please include the following information in your report:
- Description: A clear description of the vulnerability
- Impact: What type of vulnerability it is (e.g., SQL injection, XSS, authentication bypass)
- Steps to Reproduce: Detailed steps to reproduce the issue
- Proof of Concept: Code snippets or screenshots if applicable
- Suggested Fix: If you have suggestions on how to fix the issue
- Your Contact Info: So we can follow up with questions
- Initial Response: Within 48 hours of receiving your report
- Status Update: Every 7 days until resolution
- Fix Timeline: Critical issues within 7 days, high severity within 14 days, medium/low within 30 days
- We follow Coordinated Vulnerability Disclosure (CVD)
- We request a 90-day embargo to develop and deploy fixes before public disclosure
- We will credit you in our security advisory (unless you prefer to remain anonymous)
- We may offer bug bounties for critical vulnerabilities (contact us for details)
If Accepted:
- We will confirm the vulnerability and work on a fix
- We will keep you updated on our progress
- We will credit you in the security advisory and release notes
- We will notify you before public disclosure
If Declined:
- We will provide a clear explanation of why we don't consider it a vulnerability
- We will suggest alternative solutions if applicable
-
Authentication
- Use strong passwords (minimum 12 characters)
- Enable Two-Factor Authentication (2FA) when available
- Rotate API keys regularly
- Never commit secrets or credentials to version control
-
Environment Configuration
- Keep
.envfiles secure and never commit them - Use different credentials for development and production
- Regularly update dependencies (
npm audit fix) - Enable HTTPS in production
- Keep
-
Access Control
- Follow the principle of least privilege
- Regularly review user permissions
- Disable unused API endpoints
- Monitor audit logs for suspicious activity
-
Code Security
- Run
npm auditbefore every deployment - Keep all dependencies up to date
- Use parameterized queries to prevent SQL injection
- Validate and sanitize all user inputs
- Implement rate limiting on all API endpoints
- Run
-
Secrets Management
- Never hardcode secrets in source code
- Use environment variables for sensitive data
- Use
.env.examplefor templates (without actual values) - Rotate secrets regularly
-
Testing
- Write security tests for authentication and authorization
- Test for common vulnerabilities (OWASP Top 10)
- Perform regular security audits
- Use tools like
npm audit,snyk, or similar
- β Clerk-based authentication with OAuth support (Google, GitHub, Facebook)
- β JWT token-based session management
- β Role-based access control (RBAC)
- β Two-Factor Authentication (2FA) support
- β Session management and device tracking
- β API key authentication for external services
- β Bcrypt password hashing
- β HTTPS/TLS encryption in production
- β Input validation using class-validator
- β SQL injection prevention via Prisma ORM
- β XSS protection with helmet middleware
- β CORS configuration for trusted origins
- β Redis-backed distributed rate limiting
- β Throttling guards on sensitive endpoints
- β Request timeout configuration
- β Body parser limits
- β Prometheus metrics for security events
- β OpenTelemetry tracing
- β Audit logs for sensitive operations
- β Slow query logging
- β Error tracking and alerting
- Environment variables properly configured
- Database connection uses SSL
- Redis connection secured with password
- Clerk credentials configured (production keys)
- JWT secrets are strong and unique
- Rate limiting enabled and tested
- CORS configured for production domains only
- HTTPS/TLS certificates installed
- Security headers configured (helmet)
- File upload limits set appropriately
- Logging configured for audit trails
- Backup strategy in place
- Monitoring and alerting configured
- Regular security updates scheduled
- Incident response plan documented
- Security Team: mash.mushroom.automation@gmail.com
- Project Maintainers: Listed in CODEOWNERS
- Security Advisories: GitHub Security Advisories
We would like to thank the following security researchers for responsibly disclosing vulnerabilities:
- No security issues reported yet
Last Updated: October 15, 2025
Policy Version: 1.0.0