subprocess module call
Medium
- Category
- Dangerous Code Execution
- Content
prompt = build_prompt(content, style, 5) try: result = subprocess.run( ['ollama', 'run', 'llama3.2', prompt], capture_output=True, text=True,- Confidence
- 88% confidence
- Finding
- The script passes untrusted, scraped web content directly as part of the prompt to an LLM subprocess. While this is not shell injection, it is still a real trust-boundary issue because hostile page text can influence model output and potentially induce unsafe or misleading behavior through prompt injection.
