Tainted flow: 'req' from os.environ.get (line 114, credential/environment) → urllib.request.urlopen (network output)
Critical
- Category
- Data Flow
- Content
}).encode("utf-8") headers = {**HEADERS, "Authorization": f"Bearer {API_KEY}"} req = urllib.request.Request(API_URL, data=payload, headers=headers) with urllib.request.urlopen(req, timeout=timeout) as resp: data = json.loads(resp.read().decode("utf-8")) content = data["choices"][0]["message"]["content"].strip() if content.startswith("```"):- Confidence
- 95% confidence
- Finding
- with urllib.request.urlopen(req, timeout=timeout) as resp:
