continue-custom/core/tools
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
..
definitions feat: make create/read rule tools disabled by default (#10543) 2026-02-16 12:15:57 -08:00
implementations fix: add security check to createNewFile tool (CWE-22) (#11238) 2026-03-09 12:27:47 -07:00
policies prettier 2025-10-16 19:08:31 -07:00
systemMessageTools fix: remove blank test file 2025-07-29 15:31:57 -07:00
applyToolOverrides.ts feat: add tool prompt override support in .continuerc.json (#9314) 2026-02-02 21:55:21 -08:00
applyToolOverrides.vitest.ts feat: add tool prompt override support in .continuerc.json (#9314) 2026-02-02 21:55:21 -08:00
builtIn.ts add read skill tool 2025-12-30 12:51:16 +05:30
callTool.ts feat: limited MCP App support (#10132) 2026-02-05 19:07:44 -08:00
constants.ts feat: tool call args preprocessing (#7992) 2025-09-30 18:49:29 -07:00
index.ts read skill is a tool definition 2026-01-06 17:31:04 +05:30
mcpToolName.ts feat: limited MCP App support (#10132) 2026-02-05 19:07:44 -08:00
mcpToolName.vitest.ts fix: core type error 2025-09-24 17:41:46 -07:00
parseArgs.ts fix: support object-type arguments in tool call parsing 2026-01-21 18:16:12 +08:00
parseArgs.vitest.ts Address comments from @RomneyDa 2025-12-02 20:28:45 +00:00
searchWebGating.vitest.ts fix test lints 2026-01-06 17:58:53 +05:30