We provide security updates for the following versions:
| Version | Supported |
|---|---|
| 1.1.x | ✅ |
| 1.0.x | ✅ |
| < 1.0 | ❌ |
Please do not report security vulnerabilities through public GitHub issues.
Instead, please report them via one of the following methods:
Send an email to: security@ampyfin.com
Include the following information:
- Type of vulnerability
- Affected component(s)
- Steps to reproduce
- Potential impact
- Suggested fix (if any)
If you have a GitHub account, you can create a private security advisory:
- Go to the repository's Security tab
- Click "Report a vulnerability"
- Fill out the security advisory form
- Initial Response: Within 48 hours
- Status Update: Within 7 days
- Resolution: Depends on severity and complexity
-
Keep dependencies updated:
go get -u ./... go mod tidy
-
Use latest version of yfinance-go
-
Review configuration for sensitive settings
-
Monitor for security advisories
-
Never commit secrets (API keys, tokens, passwords)
-
Use environment variables for sensitive configuration
-
Validate all inputs from external sources
-
Follow secure coding practices:
- Avoid SQL injection (N/A for this project)
- Sanitize user inputs
- Use parameterized queries
- Implement proper error handling
-
Keep dependencies updated:
go get -u all go mod tidy
- The library implements rate limiting to prevent abuse
- Configure appropriate QPS limits for your use case
- Monitor for rate limit violations
- The library respects
robots.txtby default - Use scraping responsibly and in accordance with Yahoo Finance's terms of service
- Implement appropriate delays and backoff strategies
- All network requests use HTTPS
- Certificate validation is enabled by default
- Do not disable TLS verification in production
- All data from external sources is validated
- Protobuf schemas provide type safety
- Input validation prevents injection attacks
Security updates will be:
- Released as patch versions (e.g., 1.1.1 → 1.1.2)
- Documented in CHANGELOG.md
- Tagged with security labels on GitHub
- Private Disclosure: We will work with you to fix the vulnerability privately
- Coordinated Disclosure: We will coordinate public disclosure after a fix is available
- Credit: We will credit you (if desired) in the security advisory
Before submitting code, ensure:
- No hardcoded secrets or credentials
- Input validation for all user-provided data
- Proper error handling (no information leakage)
- Dependencies are up to date
- No use of deprecated or insecure functions
- Proper use of context for cancellation/timeouts
- Rate limiting is respected
- No sensitive data in logs
We periodically:
- Review dependencies for known vulnerabilities
- Audit code for security issues
- Update security best practices
- Review and update this policy
For security-related questions that are not vulnerabilities:
- Open a GitHub Discussion
- Check existing documentation
- Review GitHub Issues (non-security)
Thank you for helping keep yfinance-go secure!