Commit graph

12 commits

Author SHA1 Message Date
Nate Sesti
faca87bbc8
fix: add security check to createNewFile tool (CWE-22) (#11238)
* fix: add security check to createNewFile tool (CWE-22)

The createNewFile tool was missing the throwIfFileIsSecurityConcern()
check that readFile already has, allowing path traversal to write
sensitive file types (e.g. .env, SSH keys) via prompt injection.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* fix: upgrade tar-fs to patch CVE-2024-12905 and CVE-2025-59343

core/vendor had tar-fs@2.1.2 (via prebuild-install) and tar-fs@3.0.8,
both in vulnerable ranges. npm audit fix upgraded them.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-09 12:27:47 -07:00
Patrick Erichsen
77a8db7f63 use specific ConitnueError for tool calls 2025-10-14 14:55:00 -07:00
Dallin Romney
1ee5c54151 feat: more thorough tool arg checking utils with tests 2025-07-21 15:31:52 +02:00
Dallin Romney
6af35548c8 fix: throw error if tool call args are missing 2025-07-20 14:13:15 +02:00
chezsmithy
0c7cecd53d Updates to use codebase indexer 2025-06-04 22:02:59 -07:00
chezsmithy
f1a44194fb more cleanup 2025-06-04 20:54:28 -07:00
chezsmithy
0770b21dbf fix(files-context)-refresh-on-new-file-and-save 2025-06-04 20:54:26 -07:00
Dallin Romney
f2237c0399 cleanup 2025-04-04 17:10:24 -07:00
Dallin Romney
5014e162cc error if already exists" 2025-04-03 21:16:23 -07:00
Dallin Romney
1fb430ddb3 convert config json to file url for local config 2025-01-04 18:59:17 +01:00
Dallin Romney
b6b3cceb78 (BROKEN COMMI) path -> uri vscode utils and prompt files cont 2024-12-10 17:28:56 -08:00
Nate
025dc0840d fix type errors 2024-11-22 22:08:58 -08:00