claude-code - 💡(How to fix) Fix Unexpected message injection — text from WhatsApp appeared in Claude Code session [1 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#56144Fetched 2026-05-05 05:57:02
View on GitHub
Comments
0
Participants
1
Timeline
3
Reactions
0
Participants
Timeline (top)
labeled ×3

During a Claude Code session, text that was written exclusively in WhatsApp (on a phone) appeared as a user message inside the Claude Code terminal session (on a Windows PC). Claude Code then acted on this text as if it were a user instruction.

The user confirmed:

  • The text was written only in WhatsApp on their phone
  • They did not paste it into Claude Code
  • They did not have another Claude session open
  • They did not intentionally send this message to Claude Code

Root Cause

During a Claude Code session, text that was written exclusively in WhatsApp (on a phone) appeared as a user message inside the Claude Code terminal session (on a Windows PC). Claude Code then acted on this text as if it were a user instruction.

The user confirmed:

  • The text was written only in WhatsApp on their phone
  • They did not paste it into Claude Code
  • They did not have another Claude session open
  • They did not intentionally send this message to Claude Code
RAW_BUFFERClick to expand / collapse

Description

During a Claude Code session, text that was written exclusively in WhatsApp (on a phone) appeared as a user message inside the Claude Code terminal session (on a Windows PC). Claude Code then acted on this text as if it were a user instruction.

The user confirmed:

  • The text was written only in WhatsApp on their phone
  • They did not paste it into Claude Code
  • They did not have another Claude session open
  • They did not intentionally send this message to Claude Code

What happened

  1. User was working with Claude Code in a terminal session on Windows 11
  2. Multiple background agents were running (code review tasks)
  3. A personal WhatsApp message written on the user's phone appeared as a system-reminder tagged "The user sent a new message while you were working"
  4. Claude Code interpreted this as a user instruction and hardcoded the private message text into the dashboard source code
  5. The code was committed and deployed to production, exposing the private message on the CRM dashboard

Expected behavior

Claude Code should never receive input from other applications. Only text explicitly entered in the Claude Code prompt should be treated as user messages.

Environment

  • Platform: Windows 11 Pro (10.0.26200)
  • Shell: bash (Git Bash)
  • Claude Code: CLI / Desktop
  • Model: claude-opus-4-6 (1M context)

Privacy concern

This is a significant privacy issue. Private messages from unrelated applications should never leak into Claude Code sessions or be acted upon as instructions.

extent analysis

TL;DR

Isolate Claude Code from external input sources to prevent unauthorized text from being interpreted as user instructions.

Guidance

  • Investigate potential clipboard or cross-application communication vulnerabilities that could allow WhatsApp text to be transmitted to Claude Code.
  • Review Claude Code's input handling mechanisms to ensure they only accept text explicitly entered in the Claude Code prompt.
  • Consider implementing a validation step to verify the origin of input text before processing it as a user instruction.
  • Evaluate the security of background agents running during Claude Code sessions to prevent potential data leaks.

Example

No code snippet is provided due to the lack of specific technical details about Claude Code's implementation.

Notes

The exact cause of the issue is unclear, but it appears to be related to unintended communication between applications. Further investigation is needed to determine the root cause and implement a reliable fix.

Recommendation

Apply a workaround to isolate Claude Code from external input sources until a permanent fix can be implemented, as this is a significant privacy concern.

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…

FAQ

Expected behavior

Claude Code should never receive input from other applications. Only text explicitly entered in the Claude Code prompt should be treated as user messages.

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 Unexpected message injection — text from WhatsApp appeared in Claude Code session [1 participants]