inertia-rails-best-practices
Warn
Audited by Socket on Sep 15, 2026
1 alert found:
SecuritySecurityscripts/setup.sh
MEDIUMSecurityMEDIUM
scripts/setup.sh
The script is a legitimate Rails setup utility, but it contains a significant command-injection vulnerability: the unvalidated framework argument is interpolated into a string and executed with eval. An attacker who can influence the argument can run arbitrary shell commands in the project user's context. Replace eval with an array-based invocation or strictly validate FRAMEWORK against react, vue, and svelte. No clear credential theft, exfiltration, persistence, destructive behavior, or obfuscation is present.
Confidence: 99%Severity: 78%
Audit Metadata