Impact
In @takescake/1password-mcp versions prior to 4.0.2, the op_run tool spawned child processes by cloning the full server environment ({ ...process.env }). In standard configurations where OP_SERVICE_ACCOUNT_TOKEN (or macOS keychain credentials) is set in the server's environment, this exposed the master service account token to every command and subprocess executed by op_run.
Furthermore, output redaction was only applied to secret values resolved from explicit op:// references passed in the tool's env parameter. Consequently, any command or script that echoed its environment (such as env, printenv, or debug logging) returned the master service account token in plaintext to the model's conversation transcript.
Patched Versions
This vulnerability has been patched in @takescake/[email protected].
op_run now explicitly strips OP_SERVICE_ACCOUNT_TOKEN, OP_KEYCHAIN_SERVICE, and OP_KEYCHAIN_ACCOUNT from the child process environment before execution.
- The server's master service account token is automatically included in the defense-in-depth redaction targets across stdout, stderr, spawn errors, and caught exceptions (
«REDACTED:OP_SERVICE_ACCOUNT_TOKEN»).
- Full stream redaction is performed prior to the 5 MiB output truncation limit to prevent partial secret leakage across boundaries.
Workarounds
Users unable to upgrade to 4.0.2 immediately should avoid running commands via op_run that execute untrusted scripts or print environment variables.
References
Credit
Discovered and reported by independent security researcher Syed Anas Mohiuddin (@SyedAnas01).
Impact
In
@takescake/1password-mcpversions prior to4.0.2, theop_runtool spawned child processes by cloning the full server environment ({ ...process.env }). In standard configurations whereOP_SERVICE_ACCOUNT_TOKEN(or macOS keychain credentials) is set in the server's environment, this exposed the master service account token to every command and subprocess executed byop_run.Furthermore, output redaction was only applied to secret values resolved from explicit
op://references passed in the tool'senvparameter. Consequently, any command or script that echoed its environment (such asenv,printenv, or debug logging) returned the master service account token in plaintext to the model's conversation transcript.Patched Versions
This vulnerability has been patched in
@takescake/[email protected].op_runnow explicitly stripsOP_SERVICE_ACCOUNT_TOKEN,OP_KEYCHAIN_SERVICE, andOP_KEYCHAIN_ACCOUNTfrom the child process environment before execution.«REDACTED:OP_SERVICE_ACCOUNT_TOKEN»).Workarounds
Users unable to upgrade to
4.0.2immediately should avoid running commands viaop_runthat execute untrusted scripts or print environment variables.References
Credit
Discovered and reported by independent security researcher Syed Anas Mohiuddin (@SyedAnas01).