requests is vulnerable to Server-Side Request Forgery (SSRF)
59
CVE Score
Medium
Server-Side Request Forgery (SSRF)
The should_bypass_proxies logic in requests matches a request host against no_proxy entries using an unanchored suffix comparison. Because the check is greedy and ignores domain boundaries, a host such as evilexample.com is treated as covered by a no_proxy value of example.com. An attacker who controls or influences such a look-alike host can make the client skip the configured proxy and connect directly, bypassing proxy-based egress controls and SSRF protections that rely on no_proxy. The fix ports CPython's bpo-39057 change to constrain no_proxy matching to proper domain boundaries.
Upgrade the requests library to the patch version.
You are affected if you are using a version that falls within the vulnerable range and rely on no_proxy/NO_PROXY rules to control which hosts bypass the configured proxy.
1.0.0 - 2.33.1
Fixed in 2.34.0requests is vulnerable to Server-Side Request Forgery (SSRF) in versions 1.0.0 - 2.33.1.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.