pdf-analysis

Warn

Audited by Snyk on Jul 3, 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.85). Outsider free text can enter the LLM context via the OCR/caption runtime path: extract_scanned_pdf() / extract_hybrid_pdf() renders each page to PNG and then runs caption.py with a --prompt and the image content, where the captioner’s output (derived from the PDF’s page text) is then appended into all_text and fed to the agent’s LLM context.

Issues (1)

W011
MEDIUM

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

Audit Metadata
Risk Level
MEDIUM
Analyzed
Jul 3, 2026, 12:24 PM
Issues
1
Security Audit — snyk — pdf-analysis