Tainted flow: 'BASE_URL' from os.environ.get (line 29, credential/environment) → requests.post (network output)
Critical
- Category
- Data Flow
- Content
def embed(texts: list[str], api_key: str) -> np.ndarray: """Get embeddings from SiliconFlow API.""" resp = requests.post( f"{BASE_URL}/embeddings", headers={"Authorization": f"Bearer {api_key}"}, json={"model": MODEL, "input": texts, "encoding_format": "float"},- Confidence
- 98% confidence
- Finding
- resp = requests.post( f"{BASE_URL}/embeddings", headers={"Authorization": f"Bearer {api_key}"}, json={"model": MODEL, "input": texts, "encoding_format": "float"}, t
