Skip to content

fix(security): replace shell=True with shell=False to prevent shell injection#2116

Open
Jah-yee wants to merge 2 commits intoTEN-framework:mainfrom
Jah-yee:fix/shell-injection-v2
Open

fix(security): replace shell=True with shell=False to prevent shell injection#2116
Jah-yee wants to merge 2 commits intoTEN-framework:mainfrom
Jah-yee:fix/shell-injection-v2

Conversation

@Jah-yee
Copy link
Copy Markdown

@Jah-yee Jah-yee commented Mar 18, 2026

Summary

Security fix for issues #2107, #2106, #2111, #2113, #2114

Replaces dangerous shell=True in subprocess.run with shell=False + shlex.split() to prevent shell injection vulnerabilities in 5 files:

  • ai_agents/agents/examples/voice-assistant-nodejs/tenapp/ten_packages/extension/main_nodejs/tools/run_script.py
  • packages/core_apps/default_app_cpp/tools/run_script.py
  • packages/core_extensions/default_extension_cpp/tools/run_script.py
  • packages/core_extensions/default_extension_nodejs/tools/run_script.py
  • packages/example_apps/transcriber_demo/ten_packages/extension/vtt_nodejs/tools/run_script.py

This follows security best practices for subprocess execution.

OpenClaw Bot and others added 2 commits March 18, 2026 04:02
- Consistent timestamp format %Y-%m-%d %H:%M:%S.%f (with milliseconds)
- Fixed 3 files: xfyun_asr_python, xfyun_asr_bigmodel_python, xfyun_asr_dialect_python
- Resolves issue TEN-framework#2082
Prevents shell injection vulnerabilities.

Good day
@Jah-yee Jah-yee force-pushed the fix/shell-injection-v2 branch from d9a97a0 to c70ff08 Compare April 8, 2026 07:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant