Tainted flow: 'req' from os.environ.get (line 134, credential/environment) → urllib.request.urlopen (network output)
Critical
- Category
- Data Flow
- Content
"""Get embedding vector from Ollama.""" data = json.dumps({'model': MODEL, 'input': [text]}).encode() req = urllib.request.Request(OLLAMA_URL, data=data, headers={'Content-Type': 'application/json'}) with urllib.request.urlopen(req, timeout=30) as resp: return json.loads(resp.read())['embeddings'][0]- Confidence
- 93% confidence
- Finding
- with urllib.request.urlopen(req, timeout=30) as resp:
