Tainted flow: 'req' from pathlib.Path.read_text (line 201, file read) → urllib.request.urlopen (network output)
High
- Category
- Data Flow
- Content
headers={"Content-Type": "application/json", **{key: value for key, value in headers.items() if value}}, ) try: opener = urllib.request.urlopen(req) if not timeout else urllib.request.urlopen(req, timeout=timeout) with opener as resp: body = resp.read().decode("utf-8", errors="replace") return json.loads(body)- Confidence
- 98% confidence
- Finding
- opener = urllib.request.urlopen(req) if not timeout else urllib.request.urlopen(req, timeout=timeout)
