CVE-2026-39889: Ai Agent Tool Static File Op Sandbox Bypass

Agent tools exposing file operations via static methods lack instance-level context necessary for proper sandboxing (e.g., workspace bounds). This can allow an attacker to exploit agent prompts to perform arbitrary file reads/writes outside intended boundaries. Refactor tools to use instance methods and explicitly enforce workspace access controls.

Provally CuratedPublic repositoryHighMedium confidenceVerifiedApache-2.0Python
greprules fetch cve-2026-39889-ai-agent-tool-static-file-op-sandbox-bypass --engine opengrep

Description

Agent tools exposing file operations via static methods lack instance-level context necessary for proper sandboxing (e.g., workspace bounds). This can allow an attacker to exploit agent prompts to perform arbitrary file reads/writes outside intended boundaries. Refactor tools to use instance methods and explicitly enforce workspace access controls.