Skip to content

[Bug]: Antigravity file reads reach every thread's attachments without asking #39827

Open

Description

@zicochaos

Area

Antigravity provider

Steps to reproduce

  1. Attach a file in thread A (any provider).
  2. In thread B on an Antigravity instance, ask the agent to read a file under the attachments directory.

Expected behavior

An Antigravity thread reads its own working directory and its own attachments. Reading another thread's attachments asks first, or is refused.

Actual behavior

  • The fs.readTextFile client handler allows [cwd, attachmentsDir] (apps/server/src/orchestration-v2/Adapters/AntigravityAdapterV2.ts around line 149). attachmentsDir is shared by all threads.
  • packages/provider-acp/src/server/clientPolicy.ts (around line 86) never asks for reads.
  • So thread B can read thread A's attachments without a prompt, also in approval-required mode.

I read SECURITY.md: agents act with the user's privileges, so I am filing this as an isolation gap, not a vulnerability. #37997 already removed attachmentsDir from the shell's additional directories; the file reader still allows it.

Impact

Threads that should stay separate, for example different projects or different people's assistants on one server, can see each other's files through Antigravity.

Version or commit

v0.1.11 (59651c17), agy 1.5.13.

Environment

Linux, t3 serve.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions