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 builds context from match.metadata?.text returned by env.VECTORIZE.query(...) and injects it into the LLM prompt as system content (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
MEDIUM

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

Audit Metadata
Risk Level
MEDIUM
Analyzed
Jun 14, 2026, 09:40 AM
Issues
1
Security Audit — snyk — cloudflare-workers-ai