claude-code-agent-sdk
Warn
Audited by Snyk on Aug 8, 2026
Risk Level: MEDIUM
Full Analysis
MEDIUM W011: Third-party content exposure detected (indirect prompt injection risk).
- Third-party content exposure detected (medium risk: 0.30). Outsider-authored free text is ingested as the runtime
prompt/message stream provided toquery()(and optionally via streaming input), before any agent skill selection can occur.
MEDIUM W012: Unverifiable external dependency detected (runtime URL that controls agent).
- Potentially malicious external URL detected (high risk: 0.90). The SDK example configures an MCP server with the runtime URL "https://code.claude.com/docs/mcp", which the agent will connect to at runtime to load tool definitions that can directly influence agent prompts/behavior.
Issues (2)
W011
MEDIUMThird-party content exposure detected (indirect prompt injection risk).
W012
MEDIUMUnverifiable external dependency detected (runtime URL that controls agent).
Audit Metadata