py-git-hooks
Warn
Audited by Socket on Sep 20, 2026
1 alert found:
SecuritySecuritylint-gate.py
MEDIUMSecurityMEDIUM
lint-gate.py
The code is a legitimate linting and type-checking hook, with no clear evidence of intentional malware, data exfiltration, or sabotage. It has a meaningful command-injection and arbitrary-code-execution risk because it sources a project-local activation script and passes unescaped Git-derived file names through bash -c. Use structured subprocess arguments, avoid sourcing untrusted activation scripts, and validate or constrain cwd.
Confidence: 98%Severity: 72%
Audit Metadata