Back to Signal Feed
CodeTracked since May 20, 2026

Kilo adds strict allowlist validation to skill removal to prevent path traversal

The PR now blocks skill deletions that target paths outside approved directories by validating the resolved path before deletion, replacing a previously unguarded delete path that could be driven by crafted input.

isPathWithinAllowlist/kilocode/skill/removeSkill.remove()path allowlist

What Happened

  • The PR now blocks skill deletions that target paths outside approved directories by validating the resolved path before deletion, replacing a previously unguarded delete path that could be driven by crafted input.
  • The PR now blocks skill deletions that target paths outside approved directories by validating the resolved path before deletion, replacing a previously unguarded delete path that could be driven by crafted input.
  • 1 evidence item attached for review.

What is Different

Before

Scattered source updates, isolated context, and manual follow-up across multiple feeds.

Now

Introduced a concrete path-boundary enforcement: normalized path resolution plus allowlist matching is now executed before skill removal, so only trusted project/config/cwd roots are eligible and `Skill.remove()` is short-circuited when a target falls outside those roots.

Why Track This

Why It Matters

Users deleting skills through the webview/CLI flow can avoid accidental or malicious deletion of files outside expected folders, because unsafe locations are blocked before any file-system removal occurs. The hardening is done at both API route and service layers with explicit trusted-root checks, which should reduce file-loss incidents; continue tracking whether custom workspace layouts are fully covered by the allowlist and whether any alternative deletion path can execute without the same check.

Impact

Users deleting skills through the webview/CLI flow can avoid accidental or malicious deletion of files outside expected folders, because unsafe locations are blocked before any file-system removal occurs. The hardening is done at both API route and service layers with explicit trusted-root checks, which should reduce file-loss incidents; continue tracking whether custom workspace layouts are fully covered by the allowlist and whether any alternative deletion path can execute without the same check.

What To Watch Next

  • Watch whether isPathWithinAllowlist becomes a repeated pattern.
  • Track follow-up changes around AI Security.
  • Compare future signals against this evidence trail.
  • Re-check risk flags: allowlist_gap_for_nonstandard_paths, alternate_skill_removal_path_bypass.
Open Topic TimelineOpen Technical EventOpen Original Sourceallowlist_gap_for_nonstandard_paths / alternate_skill_removal_path_bypass / runtime_scoped_fallback_edge_cases

Supporting Evidence