Cursor reads files on my local filesystem onside projects workspace

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

I do not expect that Cursor for some reason will read from different directories other than the workspace directory.

Steps to Reproduce

NA.
I just spoke about configuration file. and then AI just suggest to reuse configuration file from different project.

Expected Behavior

I suppose and believe, that no such information should be leaked to AI.

Screenshots / Screen Recordings

Operating System

Linux

Version Information

Version: 2.6.0-pre.5.patch.0
VSCode Version: 1.105.1
Commit: ca82f854def74a47bfb7d9ab3b2c217b1a18ee69
Date: 2026-02-14T08:26:38.914Z
Build Type: Nightly
Release Track: Default
Electron: 39.4.0
Chromium: 142.0.7444.265
Node.js: 22.22.0
V8: 14.2.231.22-electron.0
OS: Linux x64 6.14.0-37-generic

For AI issues: which model did you use?

GPT-5.3 Codex Extra High

For AI issues: add Request ID with privacy disabled

I am not sure where to get this ID

Does this stop you from using Cursor

No - Cursor works, but with this issue

Hey, thanks for the report.

To understand what’s actually happening, could you please clarify a couple of things:

  1. Did the agent actually call a tool like read_file on a path outside your workspace? Or did it just suggest or mention that path in the reply?
  2. Does the path from option B (/front/mock/_config.js) actually exist on your file system inside another project’s folder?
  3. Can you share the full chat so far, especially what you asked about the config file?

Also, the Request ID would help so we can check this on the backend. You can copy it from the chat menu (three dots in the top right of the chat) then Copy Request ID.

This will help us figure out whether the agent is really trying to access files outside the workspace, or if the model is hallucinating or pulling context from somewhere it shouldn’t.

It seems I understand what was happening. I provided that absolute path in my message. That file should be used as example, but cursor (AI) tried to add it into the project.

As the resolution I suppose there should be some guard which should always ask: I am trying to read out from project’s directory: allow, deny, always allow, always deny etc.

@deanrie I see you marked it as “solution”.
May you please clarify, what will be solution? Will it implemented in Cursor? What is milstone?

Hey, good question.

The “solved” mark was because we found the root cause. The agent followed the absolute path you shared in your message instead of reading files on its own.

About the guard you suggested, there’s already a setting called External File Protection. It adds a confirmation prompt when the agent tries to edit files outside the workspace. You can check if it’s enabled in Cursor Settings > Agents. You can also use a .cursorignore file in your project root to block agent access to specific paths.

That said, the current protection mainly covers edits and file creation. Reading files outside the workspace is less restricted. The team knows this could be better. I can’t share a timeline, but reports like yours help us prioritize.

Let me know if you have more questions.