CVE-2024-31994: Python Httpx Missing Secure Transport

Instantiating an `httpx` client without a custom `transport` leaves the application vulnerable to Server-Side Request Forgery (SSRF) and Denial of Service (DoS) if used to fetch user-controlled URLs. The default transport permits reaching arbitrary internal IP addresses and downloading unbounded payload sizes. Initialize the client with a secure `transport`

Provally CuratedPublic repositoryMediumMedium confidenceVerifiedApache-2.0Python
greprules fetch cve-2024-31994-python-httpx-missing-secure-transport --engine opengrep

Description

Instantiating an `httpx` client without a custom `transport` leaves the application vulnerable to Server-Side Request Forgery (SSRF) and Denial of Service (DoS) if used to fetch user-controlled URLs. The default transport permits reaching arbitrary internal IP addresses and downloading unbounded payload sizes. Initialize the client with a secure `transport`