Skip to content

Security: bhavyaxtech/ai-code-reviewer

Security

SECURITY.md

Security Policy
πŸ”’ Keeping RepoSage secure for everyone


πŸ›‘οΈ Security Policy

We take the security of RepoSage and our users seriously. This document outlines our supported versions, how to report vulnerabilities, and security best practices for contributors.


πŸ“¦ Supported Versions

We provide security patches for the following versions:

Version Status Support Level
latest (main branch) βœ… Active Full security support β€” patches applied promptly
Previous minor release ⚠️ Maintenance Critical security fixes only
Older versions ❌ End of Life No security updates β€” please upgrade

Important

We strongly recommend always running the latest version of RepoSage. Security patches are only guaranteed for the current release.


🚨 Reporting a Vulnerability

If you discover a security vulnerability, please follow responsible disclosure practices. Do not disclose it publicly or file a GitHub issue.

How to Report

  1. πŸ“§ Email us directly:

    bhoompallykalyanreddy@gmail.com

  2. Include the following details:

    • πŸ“ A clear description of the vulnerability
    • πŸ”„ Step-by-step instructions to reproduce the issue
    • πŸ–₯️ Environment details (OS, browser, Node.js/Python version)
    • πŸ’₯ Potential impact and severity assessment
    • πŸ”§ Suggested fix or mitigation (if any)
    • πŸ“Ž Proof-of-concept (PoC) code or screenshots (if available)
  3. Use this subject line format:

    [SECURITY] Brief description of vulnerability
    

What to Expect

Timeline Action
Within 24 hours Acknowledgment of your report
Within 48 hours Initial assessment and severity classification
Within 7 days Development of a fix or mitigation plan
Within 14 days Patched release (for critical/high severity)

Note

We are committed to coordinated disclosure. We will work with you to determine an appropriate disclosure timeline after the fix is released.


πŸ“‹ Disclosure Policy

RepoSage follows a Coordinated Vulnerability Disclosure process:

  1. πŸ”’ Private Report β€” Reporter sends details via email (not public issues)
  2. βœ… Acknowledgment β€” We confirm receipt within 24 hours
  3. πŸ” Triage β€” We assess severity using CVSS v3.1 scoring
  4. πŸ”§ Remediation β€” We develop and test a fix internally
  5. πŸ“¦ Release β€” We publish the patched version
  6. πŸ“’ Advisory β€” We publish a security advisory with credit to the reporter
  7. πŸ… Recognition β€” Reporter is credited in the advisory (unless anonymity is requested)

Severity Classification

Severity CVSS Score Response Time
πŸ”΄ Critical 9.0 – 10.0 Patch within 48 hours
🟠 High 7.0 – 8.9 Patch within 7 days
🟑 Medium 4.0 – 6.9 Patch within 14 days
🟒 Low 0.1 – 3.9 Patch in next scheduled release

πŸ” Security Best Practices for Contributors

When contributing to RepoSage, please follow these security guidelines:

πŸ”‘ Secrets & Credentials

  • Never commit API keys, tokens, passwords, or secrets to the repository
  • Use environment variables (.env files) for all sensitive configuration
  • Ensure .env files are listed in .gitignore
  • Use placeholder values in example/config files (e.g., YOUR_API_KEY_HERE)

πŸ›‘οΈ Code Security

  • Validate all inputs β€” Never trust user-supplied data; sanitize and validate
  • Avoid SQL injection β€” Use parameterized queries and ORM methods
  • Prevent XSS β€” Sanitize HTML output in the frontend; avoid dangerouslySetInnerHTML
  • Secure dependencies β€” Run npm audit and pip audit before submitting PRs
  • Use HTTPS β€” All external API calls must use HTTPS endpoints
  • Minimize permissions β€” Request only the GitHub OAuth scopes you need

πŸ“¦ Dependency Management

  • Keep dependencies up to date with npm update and pip install --upgrade
  • Review new dependencies before adding them β€” prefer well-maintained packages
  • Run npm audit fix to resolve known vulnerabilities in Node.js packages
  • Pin dependency versions in production environments

πŸ”’ Authentication & Authorization

  • Never store tokens in localStorage β€” use httpOnly cookies or secure session storage
  • Implement proper rate limiting on all API endpoints
  • Use CSRF protection for state-changing requests

πŸ“š Security Resources


πŸ™ Acknowledgments

We sincerely appreciate the efforts of security researchers and contributors who help keep RepoSage safe. Responsible reporters will be:

  • πŸ… Credited in our security advisories
  • πŸ“ Listed in our Hall of Fame (with consent)
  • πŸ’Œ Thanked by the maintainer team

πŸ”’ Security is everyone's responsibility.
Thank you for helping keep RepoSage safe for the community.

Made with ❀️ by RepoSage & the open-source community

There aren't any published security advisories