gemini-files-api

Warn

Audited by Snyk on Jul 15, 2026

Risk Level: MEDIUM
Full Analysis

MEDIUM W011: Third-party content exposure detected (indirect prompt injection risk).

  • Third-party content exposure detected (high risk: 0.75). At runtime, the required workflow in scripts/gemini-mm.mjs ingests outsider-authored free text from CLI args (--prompt / --system) into the LLM request via createUserContent(parts) and systemInstruction, and also reads user-supplied JSON config/schema files as text/JSON that can contain prompt-like instructions.

Issues (1)

W011
MEDIUM

Third-party content exposure detected (indirect prompt injection risk).

Audit Metadata
Risk Level
MEDIUM
Analyzed
Jul 15, 2026, 04:11 PM
Issues
1
Security Audit — snyk — gemini-files-api