Skip to content

fix: add security guardrails and cleanup lint warnings#96

Open
Misaka477 wants to merge 1 commit into
stepfun-ai:mainfrom
Misaka477:fix/security-shell-path-traversal-redos
Open

fix: add security guardrails and cleanup lint warnings#96
Misaka477 wants to merge 1 commit into
stepfun-ai:mainfrom
Misaka477:fix/security-shell-path-traversal-redos

Conversation

@Misaka477

@Misaka477 Misaka477 commented Jul 4, 2026

Copy link
Copy Markdown

Summary

Three defense-in-depth security improvements plus lint warning cleanup.

Changes

Security Guardrails

  1. Shell command blocklist: added validateShellCommand() that intercepts system-destructive patterns before they reach the shell.

  2. Workspace path boundary check: resolveWorkspacePath() now verifies that resolved paths stay within the workspace root.

  3. ReDoS protection: jsGrep() validates regex patterns for nested quantifiers before compiling.

Lint Cleanup

Verification

@github-actions github-actions Bot added area/core packages/core area/realtime packages/realtime + extensions/realtime-* area/extensions extensions/llm, extensions/mcp (non realtime-*) labels Jul 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/core packages/core area/extensions extensions/llm, extensions/mcp (non realtime-*) area/realtime packages/realtime + extensions/realtime-*

Projects

None yet

1 participant