Home

mweinbach / agent-coworker

publicmweinbach/agent-coworker
Overview Code History Branches Pull requestsIssuesInsights
main
HomeOverview Code PRsIssues

fix: disable glob brace expansion escape

8 months ago

6e3e034
Authored
mweinbach2/14/2026, 1:58:01 AM
Prevent glob patterns from using brace expansion to smuggle absolute paths (for example {/etc/passwd,*.ts}) outside the allowed cwd scope, and add regression coverage for the exploit.

Co-authored-by: Cursor <cursoragent@cursor.com>

Parentb9e4912

2 files changed
  • src/tools/glob.ts+1−0
  • test/tools.test.ts+12−4