Skip to content
Heist/ feed
Back to feed
MediumFix available

requests — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-CVE-2023-32681

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_proxies` to reattach the `Proxy-Authorization` header 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, the `Proxy-Authorization` header 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.

Products
requests
Affected versions
2.28.1+dfsg-1, 2.31.0+dfsg-1, 2.31.0+dfsg-2, 2.32.3+dfsg-1, 2.32.3+dfsg-2, 2.32.3+dfsg-3, 2.32.3+dfsg-4, 2.32.3+dfsg-5, 2.32.4+dfsg-1, 2.32.5+dfsg-1, 2.32.5+dfsg-2, 2.34.2-1
Fixed versions
2.31.0+dfsg-1
CVEs
CVE-2023-32681
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 16:23 UTC · Revision 1

Source evidence

DEBIAN-CVE-2023-32681

core-osv · Original source

Published 26 May 2023, 18:15 UTC

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_proxies` to reattach the `Proxy-Authorization` header 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, the `Proxy-Authorization` header 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.

osv:DEBIAN-CVE-2023-32681

requests

Fixed versions: Not specified

requests

Fixed versions: 2.31.0+dfsg-1

requests

Fixed versions: 2.31.0+dfsg-1

Complete source record
{
  "id": "25791b83dc449aef73be6346ec329d5c47d30a89ca5a55744aadd9f80d33bb7e",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2023-32681",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2023-32681",
    "summary": "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_proxies` to reattach the `Proxy-Authorization` header 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, the `Proxy-Authorization` header 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.",
    "evidence": "osv:DEBIAN-CVE-2023-32681",
    "products": [
      {
        "name": {
          "value": "requests",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.28.1+dfsg-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2.31.0+dfsg-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2.31.0+dfsg-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2.32.3+dfsg-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2.32.3+dfsg-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2.32.3+dfsg-3",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2.32.3+dfsg-4",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2.32.3+dfsg-5",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2.32.4+dfsg-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2.32.5+dfsg-1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2.32.5+dfsg-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "2.34.2-1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "requests",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2.31.0+dfsg-1",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "requests",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "2.31.0+dfsg-1",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "DEBIAN-CVE-2023-32681",
      "aliases": [
        "DEBIAN-CVE-2023-32681"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:N/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "requests",
            "purl": "pkg:deb/debian/requests?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "versions": [
            "2.28.1+dfsg-1",
            "2.31.0+dfsg-1",
            "2.31.0+dfsg-2",
            "2.32.3+dfsg-1",
            "2.32.3+dfsg-2",
            "2.32.3+dfsg-3",
            "2.32.3+dfsg-4",
            "2.32.3+dfsg-5",
            "2.32.4+dfsg-1",
            "2.32.5+dfsg-1",
            "2.32.5+dfsg-2",
            "2.34.2-1"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2023-32681.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.31.0+dfsg-1"
                }
              ]
            }
          ],
          "package": {
            "name": "requests",
            "purl": "pkg:deb/debian/requests?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2023-32681.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "2.31.0+dfsg-1"
                }
              ]
            }
          ],
          "package": {
            "name": "requests",
            "purl": "pkg:deb/debian/requests?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2023-32681.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-26T18:03:05.220041409Z",
      "provider": "osv",
      "upstream": [
        "CVE-2023-32681"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2023-32681"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2023-32681",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 457565,
  "published_at": "2023-05-26T18:15:14.147+00:00"
}