Skip to content

Commit 147c851

Browse files
authored
v2.31.0
1 parent 74ea7cf commit 147c851

File tree

2 files changed

+29
-2
lines changed

2 files changed

+29
-2
lines changed

HISTORY.md

+27
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,33 @@ dev
66

77
- \[Short description of non-trivial change.\]
88

9+
2.31.0 (2023-05-22)
10+
-------------------
11+
12+
**Security**
13+
- Versions of Requests between v2.3.0 and v2.30.0 are vulnerable to potential
14+
forwarding of `Proxy-Authorization` headers to destination servers when
15+
following HTTPS redirects.
16+
17+
When proxies are defined with user info (https://user:pass@proxy:8080), Requests
18+
will construct a `Proxy-Authorization` header that is attached to the request to
19+
authenticate with the proxy.
20+
21+
In cases where Requests receives a redirect response, it previously reattached
22+
the `Proxy-Authorization` header incorrectly, resulting in the value being
23+
sent through the tunneled connection to the destination server. Users who rely on
24+
defining their proxy credentials in the URL are *strongly* encouraged to upgrade
25+
to Requests 2.31.0+ to prevent unintentional leakage and rotate their proxy
26+
credentials once the change has been fully deployed.
27+
28+
Users who do not use a proxy or do not supply their proxy credentials through
29+
the user information portion of their proxy URL are not subject to this
30+
vulnerability.
31+
32+
Full details can be read in our [Github Security Advisory](https://github.com/psf/requests/security/advisories/GHSA-j8r2-6x86-q33q)
33+
and [CVE-2023-32681](https://nvd.nist.gov/vuln/detail/CVE-2023-32681).
34+
35+
936
2.30.0 (2023-05-03)
1037
-------------------
1138

requests/__version__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
__title__ = "requests"
66
__description__ = "Python HTTP for Humans."
77
__url__ = "https://requests.readthedocs.io"
8-
__version__ = "2.30.0"
9-
__build__ = 0x023000
8+
__version__ = "2.31.0"
9+
__build__ = 0x023100
1010
__author__ = "Kenneth Reitz"
1111
__author_email__ = "[email protected]"
1212
__license__ = "Apache 2.0"

0 commit comments

Comments
 (0)