Cursor - Community Forum
Security Concern: Files in .cursorignore accessible to agent if they are open in an editor tab?
Discussions
security
,
rules
,
context
MaxTee
(Max Tee)
January 30, 2026, 10:04am
7
Also reported here
Cursor is reading .env
1 Like
show post in topic
Related topics
Topic
Replies
Views
Activity
Questions on .gitignore, .cursorignore, .cursorban
Feedback
24
2635
April 12, 2025
.cursorignore ignored for command prompt functions
Bug Reports
terminal
,
rules
,
security
3
31
February 7, 2026
.cursorignore blocks file read and bash commands, but not the Grep tool
Bug Reports
sandbox
,
terminal
,
rules
,
security
1
12
February 10, 2026
CRITICAL: Cursor does NOT follow .gitignore and .cursorignore files!
Bug Reports
5
1165
December 20, 2024
BIG SECURITY RISK! .cursorignore doesn't seem to work, .envs files being sent as context
Bug Reports
2
1632
December 13, 2024