cloudflare-workers-ai
Warn
Audited by Snyk on Jun 14, 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.65). In the RAG template (
templates/ai-embeddings-rag.ts), the runtime buildscontextfrommatch.metadata?.textreturned byenv.VECTORIZE.query(...)and injects it into the LLM prompt assystemcontent (content: ...\n\nContext:\n${context}), so any outsider-authored text previously stored in Vectorize (e.g., from documents the user didn’t author) can flow into the model context.
Issues (1)
W011
MEDIUMThird-party content exposure detected (indirect prompt injection risk).
Audit Metadata