backend-api-versioning
Warn
Audited by Socket on Sep 8, 2026
1 alert found:
SecuritySecurityreferences/version-migration-automation.md
MEDIUMSecurityMEDIUM
references/version-migration-automation.md
The fragment appears to implement legitimate API migration and sunset automation, with no direct evidence of malware, data theft, reverse shells, or obfuscation. The GitHub Actions workflow has a significant command-injection risk because manually supplied version inputs are interpolated into shell commands and paths without validation or safe quoting. Pin npx dependencies, restrict versions to a strict allowlist or pattern, pass values as environment variables or safely quoted arguments, and add authorization and safeguards around destructive sunset operations. The code also has monitoring lifecycle, weight-validation, and race-condition weaknesses.
Confidence: 98%Severity: 78%
Audit Metadata