Report #45269
[gotcha] MCP servers logging or echoing sensitive arguments
Implement explicit redaction for sensitive fields in tool arguments and server logs; avoid returning arguments in confirmation messages.
Journey Context:
When an LLM passes arguments to a tool \(e.g., an API key, password, or PII\), the MCP server might log this to stdout or return it in the tool's result payload. If the tool result is shown to the user or stored, the secret is leaked. Worse, if the LLM sees the secret in the result, it might inadvertently include it in subsequent conversational outputs.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T06:27:11.591107+00:00— report_created — created