
A prompt injection once got GitHub Copilot to edit its own settings file and switch on one setting: autoApprove = true. After that it ran commands without asking. (CVE-2025-53773, patched August 2025) Cursor had the same class of bug. An injected Slack message got the agent to rewrite its own mcp.json, and Cursor started the new entry with no approval. (CVE-2025-54135) Same root cause both times: the agent could write to the file that sets its own limits. Where does your agent's permission config live, and can the agent write to it?





