claude-code - 💡(How to fix) Fix Unauthorized message submitted to conversation without user action [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
anthropics/claude-code#51703Fetched 2026-04-22 07:55:07
View on GitHub
Comments
1
Participants
2
Timeline
5
Reactions
0
Timeline (top)
labeled ×4commented ×1

A message appeared in a Claude Code conversation that the user did not send. The message asked Claude to read a file from the local Application Support/Claude/local-agent-mode-sessions/ directory and return its full contents.

The user explicitly confirmed they did not send this message.

Root Cause

A message appeared in a Claude Code conversation that the user did not send. The message asked Claude to read a file from the local Application Support/Claude/local-agent-mode-sessions/ directory and return its full contents.

The user explicitly confirmed they did not send this message.

RAW_BUFFERClick to expand / collapse

Description

A message appeared in a Claude Code conversation that the user did not send. The message asked Claude to read a file from the local Application Support/Claude/local-agent-mode-sessions/ directory and return its full contents.

The user explicitly confirmed they did not send this message.

Message that appeared

Check if this file exists and if so return its full contents: /Users/brettsmith/Library/Application Support/Claude/local-agent-mode-sessions/a6460456-200b-4188-8046-7bbe5797136d/e63a95ec-5c1f-495b-8796-5ab849677487/local_cfc4a4be-7a98-482d-8b73-4552250655f6/outputs/WELLBEING_OS_MODULE_ARCHITECTURE.md If it doesn't exist, just say "not found". No changes.

Potential causes

  • Session hijacking or prompt injection
  • A browser/app extension submitting requests on behalf of the user
  • An automation tool or macro triggering unintended input
  • A bug in local agent mode session handling that caused a cross-session message leak

Impact

  • Claude attempted to read a potentially sensitive file from the user's local filesystem
  • The user denied the tool use before any data was exposed
  • The file path suggests it may relate to another active Claude agent session (local-agent-mode-sessions), raising concerns about session isolation

Steps to reproduce

Unknown — the user was not able to reproduce this intentionally.

Environment

  • Platform: macOS (Darwin 24.6.0)
  • Shell: zsh

Request

Please investigate whether local agent mode sessions can leak messages across sessions, and whether any external vector (extensions, automations) could inject messages into a Claude Code conversation.

extent analysis

TL;DR

Investigate potential session isolation issues in local agent mode and external vectors that could inject messages into Claude Code conversations.

Guidance

  • Review the local agent mode session handling code to identify potential cross-session message leak vulnerabilities.
  • Inspect browser and app extensions, as well as automation tools, to determine if any are submitting requests on behalf of the user without their knowledge.
  • Analyze the local-agent-mode-sessions directory structure to understand how sessions are isolated and if there are any weaknesses in the current implementation.
  • Consider implementing additional logging and monitoring to detect and prevent similar incidents in the future.

Example

No code snippet is provided as the issue does not contain specific code references.

Notes

The exact cause of the issue is unknown, and reproducing the problem is currently not possible. The investigation should focus on identifying potential vulnerabilities in session isolation and external vectors that could inject messages.

Recommendation

Apply workaround: Implement additional logging and monitoring to detect and prevent similar incidents in the future, while investigating the potential causes of the issue. This will help identify and mitigate any security risks associated with session isolation and external message injection.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

claude-code - 💡(How to fix) Fix Unauthorized message submitted to conversation without user action [1 comments, 2 participants]