You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix path traversal vulnerabilities in update-readme tool
Add input validation to prevent path traversal attacks in the
update-readme internal tool:
- Clean file path using filepath.Clean to remove path traversal sequences
- Validate that only README.md files can be updated
- Add argument count validation
This fixes Snyk code scan findings:
- MEDIUM severity path traversal in os.ReadFile (line 28)
- MEDIUM severity path traversal in os.WriteFile (line 84)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
0 commit comments