git-hooks-setup

Warn

Audited by Socket on Sep 16, 2026

1 alert found:

Security
SecurityMEDIUM
references/pre-commit-hook-nodejs.md

The hook performs a legitimate lint-and-format workflow, and there is no clear evidence of intentional malware. However, direct interpolation of Git-controlled filenames into `execSync` shell commands creates command-injection and argument-injection risks. Filenames should be passed as safely separated arguments, shell execution should be avoided where possible, and `npx` should be constrained to trusted, pinned local tooling. The unused `fs` import is non-security-relevant.

Confidence: 98%Severity: 72%
Audit Metadata
Analyzed At
Sep 16, 2026, 10:47 AM
Package URL
pkg:socket/skills-sh/aj-geddes%2Fuseful-ai-prompts%2Fgit-hooks-setup%2F@cf72ed16d8ab7b1fa0378d5ba82c66aceb6b1d4411be809016963b7f477bdb46