Intel

AIKIDO-2026-755698

fastmcp-slim is vulnerable to Insertion of Sensitive Information into Log File

Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Oct 21, 2026
October 21, 2026

30

CVE Score

Low

Insertion of Sensitive Information into Log File

Are you affected? Scan for Free

TL;DR

FastMCP.call_tool() in fastmcp_slim/fastmcp/server/server.py logs PydanticValidationError.errors() as a warning when a tool's arguments fail validation. The default error detail includes the caller's arguments, nested dict values, and custom field_validator messages, so untrusted argument values and custom validator text are written to application logs. The fix adds _validation_error_summary(), which calls error.errors(include_url=False, include_context=False, include_input=False) and logs only an error_count and a bucketed type, with "custom_error" for non-builtin types.

How do I fix this?

Upgrade the fastmcp-slim and/or the fastmcp library to the patch version.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and are running a FastMCP server that logs tool call validation failures from client supplied tool arguments.

Versions

3.3.0 - 4.0.3

Fixed in 4.0.4

Background info

fastmcp-slim is vulnerable to Insertion of Sensitive Information into Log File in versions 3.3.0 - 4.0.3.

Get secure today,
quickly and for free.

Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.

No credit card required | Scan results in 32 seconds.

Trusted by 150k+ orgs
  • Revolut
  • n8n
  • Lovable
  • Deel
  • Prove
  • Omnea