cloud-sql-mysql-admin
Audited by Socket on Apr 29, 2026
3 alerts found:
Anomalyx3No direct malicious payload is visible in this wrapper, but it materially increases security exposure by (1) executing a third-party package via npx (@toolbox-sdk/server@1.1.0) and (2) propagating secrets/configuration from the host environment and an optional local .env file into the spawned process. Additionally, on Windows it runs with shell:true and forwards unvalidated user CLI arguments to the invoked tool. Treat this as a supply-chain/secret-handling risk that requires review of the executed dependency’s behavior and tightening of env/argument handling policies.
No clear malicious payload is present in this wrapper code itself (no obfuscation, no eval, no direct network/exfiltration logic). However, it has meaningful supply-chain and secret-forwarding risk because it executes an external dependency via npx (@toolbox-sdk/server@1.1.0) and broadly forwards environment variables into that child process, including values merged from a local '../../../.env' file when GEMINI_CLI is enabled. User-provided CLI arguments are also forwarded to the invoked tool without validation in this module. This warrants review of the invoked tool’s behavior and careful handling of .env/CI secrets and npx execution controls.
No overt malware logic is present in this module, but it acts as an orchestrator that (1) conditionally loads a local .env file and forwards its key/value pairs to a subprocess, and (2) executes an npm package via npx at runtime (supply-chain/code-execution risk). On Windows it also uses shell:true, slightly increasing risk around argument handling. Overall risk is moderate: review and restrict which environment keys are imported, avoid storing sensitive values in .env for this mode, and ensure the npx target/package is trusted and controlled (e.g., lockfiles/registry policy, CI-only resolution, and minimizing forwarded env).