HTTP Request Redirection The advisory has been revoked - it doesn't affect any version of package requests  (opens in a new tab)


Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about HTTP Request Redirection vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-PYTHON-REQUESTS-40470
  • published17 Jul 2016
  • disclosed17 Jul 2016
  • creditScott Geary

Introduced: 17 Jul 2016

CVE NOT AVAILABLE CWE-601  (opens in a new tab)

How to fix?

According to the vendor, setting the Session.trust_env to False completely mitigates this risk.

Overview

requests is a Python HTTP for Humans.

Affected versions of this package are vulnerable to HTTPoxy attacks. The Python CGIHandler class did not properly protect against the HTTP_PROXY variable. A remote attacker could possibly use this flaw to redirect HTTP requests performed by a Python CGI script to an attacker-controlled proxy via a malicious HTTP request.