Tainted flow: 'EMBEDDING_SERVICE_URL' from os.environ.get (line 20, credential/environment) → requests.post (network output)
Critical
- Category
- Data Flow
- Content
def get_embeddings(texts: list) -> Optional[list]: """Get embeddings from the embedding service.""" try: response = requests.post( f"{EMBEDDING_SERVICE_URL}/embed", json={"texts": texts, "prefix": "passage: "}, timeout=120- Confidence
- 93% confidence
- Finding
- response = requests.post( f"{EMBEDDING_SERVICE_URL}/embed", json={"texts": texts, "prefix": "passage: "}, timeout=120 )
