Update requests to version >= 2.31.0 #1
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Update requests to 2.31.0
Merge this pull request to resolve 2 vulnerabilities in requests.
MEDIUM - CVE-2023-32681: python-requests: Unintended leak of Proxy-Authorization header
Description
Requests is a HTTP library. Since Requests 2.3.0, Requests has been leaking Proxy-Authorization headers to destination servers when redirected to an HTTPS endpoint. This is a product of how we use
rebuild_proxiesto reattach theProxy-Authorizationheader to requests. For HTTP connections sent through the tunnel, the proxy will identify the header in the request itself and remove it prior to forwarding to the destination server. However when sent over HTTPS, theProxy-Authorizationheader must be sent in the CONNECT request as the proxy has no visibility into the tunneled request. This results in Requests forwarding proxy credentials to the destination server unintentionally, allowing a malicious actor to potentially exfiltrate sensitive information. This issue has been patched in version 2.31.0.References
https://access.redhat.com/errata/RHSA-2023:4350
https://access.redhat.com/security/cve/CVE-2023-32681
https://bugzilla.redhat.com/2209469
https://bugzilla.redhat.com/show_bug.cgi?id=2209469
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2023-32681
https://errata.almalinux.org/9/ALSA-2023-4350.html
https://errata.rockylinux.org/RLSA-2023:4520
https://github.com/psf/requests
psf/requests@74ea7cf
https://github.com/psf/requests/releases/tag/v2.31.0
GHSA-j8r2-6x86-q33q
https://github.com/pypa/advisory-database/tree/main/vulns/requests/PYSEC-2023-74.yaml
https://linux.oracle.com/cve/CVE-2023-32681.html
https://linux.oracle.com/errata/ELSA-2023-7050.html
https://lists.debian.org/debian-lts-announce/2023/06/msg00018.html
https://lists.fedoraproject.org/archives/list/[email protected]/message/AW7HNFGYP44RT3DUDQXG2QT3OEV2PJ7Y
https://lists.fedoraproject.org/archives/list/[email protected]/message/AW7HNFGYP44RT3DUDQXG2QT3OEV2PJ7Y/
https://lists.fedoraproject.org/archives/list/[email protected]/message/KOYASTZDGQG2BWLSNBPL3TQRL2G7QYNZ
https://lists.fedoraproject.org/archives/list/[email protected]/message/KOYASTZDGQG2BWLSNBPL3TQRL2G7QYNZ/
https://nvd.nist.gov/vuln/detail/CVE-2023-32681
https://security.gentoo.org/glsa/202309-08
https://ubuntu.com/security/notices/USN-6155-1
https://ubuntu.com/security/notices/USN-6155-2
https://www.cve.org/CVERecord?id=CVE-2023-32681
Publish date
2023-05-26
MEDIUM - CVE-2024-35195: requests: subsequent requests to the same host ignore cert verification
Description
Requests is a HTTP library. Prior to 2.32.0, when making requests through a Requests
Session, if the first request is made withverify=Falseto disable cert verification, all subsequent requests to the same host will continue to ignore cert verification regardless of changes to the value ofverify. This behavior will continue for the lifecycle of the connection in the connection pool. This vulnerability is fixed in 2.32.0.References
https://access.redhat.com/errata/RHSA-2025:0012
https://access.redhat.com/security/cve/CVE-2024-35195
https://bugzilla.redhat.com/2282114
https://bugzilla.redhat.com/show_bug.cgi?id=2282114
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-35195
https://errata.almalinux.org/8/ALSA-2025-0012.html
https://errata.rockylinux.org/RLSA-2025:0012
https://github.com/psf/requests
psf/requests@a58d7f2
Use TLS settings in selecting connection pool psf/requests#6655
GHSA-9wx4-h78v-vm56
https://linux.oracle.com/cve/CVE-2024-35195.html
https://linux.oracle.com/errata/ELSA-2025-0012.html
https://lists.fedoraproject.org/archives/list/[email protected]/message/IYLSNK5TL46Q6XPRVMHVWS63MVJQOK4Q
https://lists.fedoraproject.org/archives/list/[email protected]/message/IYLSNK5TL46Q6XPRVMHVWS63MVJQOK4Q/
https://lists.fedoraproject.org/archives/list/[email protected]/message/N7WP6EYDSUOCOJYHDK5NX43PYZ4SNHGZ
https://lists.fedoraproject.org/archives/list/[email protected]/message/N7WP6EYDSUOCOJYHDK5NX43PYZ4SNHGZ/
https://nvd.nist.gov/vuln/detail/CVE-2024-35195
https://www.cve.org/CVERecord?id=CVE-2024-35195
Publish date
2024-05-20