We actively support the following versions of path-comment-hook with security updates:
| Version | Supported |
|---|---|
| 0.1.x | ✅ |
| < 0.1 | ❌ |
We take security vulnerabilities seriously. If you discover a security vulnerability in path-comment-hook, please report it responsibly.
Please do NOT report security vulnerabilities through public GitHub issues.
Instead, please report them via:
- Email: Send details to shorz2905@gmail.com
- Subject Line:
[SECURITY] path-comment-hook vulnerability - GitHub Security Advisory: Use GitHub's private security reporting feature
Please include the following information in your report:
- Description: A clear description of the vulnerability
- Steps to Reproduce: Detailed steps to reproduce the issue
- Impact: What an attacker could achieve by exploiting this vulnerability
- Affected Versions: Which versions of path-comment-hook are affected
- Environment: Operating system, Python version, installation method
- Proof of Concept: If possible, include a minimal proof-of-concept
We aim to respond to security reports according to the following timeline:
- Initial Response: Within 48 hours
- Assessment: Within 7 days
- Fix & Release: Within 30 days (for confirmed vulnerabilities)
- Public Disclosure: After fix is released and users have time to update
path-comment-hook operates on your file system with the permissions of the user running it. Be aware that:
- The tool reads and writes files in your project directory
- It preserves file permissions and line endings
- It uses atomic writes (temporary file + rename) for safety
- It respects ignore patterns to avoid modifying sensitive files
- File paths are validated and normalized
- Binary files are automatically detected and skipped
- Configuration values are validated before use
- Encoding detection includes fallback mechanisms
We maintain minimal dependencies and regularly update them:
typer- CLI frameworkrich- Terminal formattingchardet- Encoding detectionidentify- File type detection
- The tool processes files based on file extensions and content detection
- It relies on the
identifylibrary for file type detection - Configuration is loaded from
pyproject.tomlfiles in the project tree
- Review Configuration: Always review your
pyproject.tomlconfiguration - Use Version Control: Use git or similar VCS when running the tool
- Test First: Use
--checkmode before making changes - Backup Important Files: Ensure you have backups of critical files
- Update Regularly: Keep path-comment-hook updated to the latest version
Security updates will be:
- Released as soon as possible after confirmation
- Documented in the CHANGELOG.md
- Announced through:
- GitHub Security Advisories
- Release notes
- Documentation updates
For security-related questions or concerns that don't require private reporting:
- GitHub Issues: Open an issue
- GitHub Discussions: Start a discussion
- Documentation: Security section
Thank you for helping keep path-comment-hook secure!