You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
safe-bash: host-env warning is identity-only — {...process.env} copies bypass it while README claims detection #659
Where:packages/safe-bash/src/shell/env-warning.ts:6 — if (env !== process.env) return; — the "you passed the host environment" warning fires only on object identity. packages/safe-bash/README.md ("Environment" section) says the shell detects passing the host environment.
PoC: construct three shells with console.warn counted:
Impact: (a)/(e) — the common Workers/Node wiring mistake env: { ...process.env, EXTRA } (exactly the v1 finding-1 scenario, where nodejs_compat maps Worker secret bindings into process.env) produces no warning, while the README text overstates the guard.
Fix: also warn when the supplied env shares a large fraction of key/value pairs with process.env (or contains well-known secret-bearing keys such as *_TOKEN, *_SECRET, AWS_*), or reword the README to "warns only when the identical process.env object is passed".
Activity
poe-code-agent commentedon Sep 8, 2026
Issue was resolved by #691aafe
Update poe-code via
npm install -g poe-code@14.0.90