{"answers":{"affected":"3 open source packages ship an affected version, including requests. It affects 2 products.","exploited":"There is no known exploitation of CVE-2023-32681 in the wild and no public exploit code.","fix":"Upgrade requests to 2.31.0 or later.","what":"CVE-2023-32681 is a medium-severity vulnerability in Fedoraproject Fedora, published on 26 May 2023. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2023-32681 and fix it if it is affected.\n\nWhat it is: CVE-2023-32681 is a medium-severity vulnerability in Fedoraproject Fedora, published on 26 May 2023. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2023-32681 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- requests (PyPI): affected from 2.3.0; fixed in 2.31.0\n- requests (PyPI): affected from 2.3.0; fixed in 2.31.0\n- requests (PyPI): affected from 2.3.0; fixed in 2.31.0\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2023-32681/ (Markdown: https://insights.sbomify.com/CVE-2023-32681/index.md)","id":"CVE-2023-32681","markdown":"https://insights.sbomify.com/CVE-2023-32681/index.md","name":"CVE-2023-32681","record":{"aliases":["ALSA-2023:4350","ALSA-2023:4520","ALSA-2023:7042","AZL-26985","BELL-CVE-2023-32681","DEBIAN-CVE-2023-32681","DLA-3456-1","ECHO-acbd-1583-01d0","GHSA-j8r2-6x86-q33q","MGASA-2023-0210","MINI-f797-jfff-jfhv","OESA-2023-1341","OESA-2025-2337","OESA-2025-2338","OESA-2025-2339","PYSEC-2023-74","RHSA-2023:4350","RHSA-2023:4520","RHSA-2023:7042","RHSA-2024:0299","RLSA-2023:4520","RLSA-2023:7042","ROOT-APP-PYPI-CVE-2023-32681","SUSE-SU-2023:2638-1","SUSE-SU-2023:2865-1","SUSE-SU-2023:2866-1","SUSE-SU-2023:2883-1","SUSE-SU-2023:3094-1","SUSE-SU-2024:2685-1","UBUNTU-CVE-2023-32681","USN-6155-1","USN-6155-2","openSUSE-SU-2024:12998-1"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read"],"network_reachable":"yes","non_default_config":false,"product_category":"Python HTTP library","requires_auth":"none","summary":"The Requests library leaks Proxy-Authorization headers to destination servers during HTTPS redirects, allowing attackers to exfiltrate sensitive proxy credentials.","user_interaction":"required","vuln_class":"information_disclosure"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"fedora","vendor":"fedoraproject"},{"product":"requests","vendor":"python"}],"cvss":{"score":6.1,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-200","name":"Exposure of Sensitive Information to an Unauthorized Actor"}],"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_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.","ecosystems":["AlmaLinux:8","AlmaLinux:9","PyPI","Red Hat:enterprise_linux:8::appstream","Red Hat:enterprise_linux:8::baseos","Red Hat:enterprise_linux:9::appstream","Red Hat:enterprise_linux:9::baseos","Red Hat:rhel_eus:8.6::baseos","Rocky Linux:8","SUSE:Enterprise Storage 7","SUSE:Enterprise Storage 7.1","SUSE:Linux Enterprise High Availability Extension 12 SP4","SUSE:Linux Enterprise High Availability Extension 12 SP5","SUSE:Linux Enterprise High Performance Computing 15 SP1-LTSS","SUSE:Linux Enterprise High Performance Computing 15 SP2-LTSS","SUSE:Linux Enterprise High Performance Computing 15 SP3-LTSS","SUSE:Linux Enterprise Micro 5.1","SUSE:Linux Enterprise Micro 5.2","SUSE:Linux Enterprise Micro 5.3","SUSE:Linux Enterprise Micro 5.4","SUSE:Linux Enterprise Module for Advanced Systems Management 12","SUSE:Linux Enterprise Module for Basesystem 15 SP4","SUSE:Linux Enterprise Module for Basesystem 15 SP5","SUSE:Linux Enterprise Module for Public Cloud 12","SUSE:Linux Enterprise Module for Public Cloud 15 SP1","SUSE:Linux Enterprise Real Time 15 SP3","SUSE:Linux Enterprise Server 12 SP5","SUSE:Linux Enterprise Server 15 SP1-LTSS","SUSE:Linux Enterprise Server 15 SP2-LTSS","SUSE:Linux Enterprise Server 15 SP3-LTSS","SUSE:Linux Enterprise Server for SAP Applications 12 SP5","SUSE:Linux Enterprise Server for SAP Applications 15 SP1","SUSE:Linux Enterprise Server for SAP Applications 15 SP2","SUSE:Linux Enterprise Server for SAP Applications 15 SP3","SUSE:Linux Enterprise Software Development Kit 12 SP5","SUSE:Linux Enterprise Workstation Extension 12 SP5","SUSE:Manager Client Tools 12","SUSE:Manager Proxy 4.2","SUSE:Manager Server 4.2","openSUSE:Leap 15.4","openSUSE:Leap 15.5","openSUSE:Leap Micro 5.3","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":"2023-07-22","github_poc":2,"max_poc_stars":4,"metasploit":0,"nuclei":0,"refs":[{"date":"2023-07-22T05:24:58Z","kind":"github_poc","ref":"https://github.com/hardikmodha/POC-CVE-2023-32681","stars":4,"title":"POC for the CVE-2023-32681"},{"date":"2026-10-21T07:36:48Z","kind":"github_poc","ref":"https://github.com/mcpmark-eval-liuhezi/requests-sec-notes","stars":0,"title":"Research notes on CVE-2023-32681 (Proxy-Authorization header leak in Python requests) for internal security talk prep"}],"tier":"poc_unverified"},"has_fix":true,"headline":"Unintended leak of Proxy-Authorization header in requests","id":"CVE-2023-32681","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"PyPI","product":"fedoraproject:fedora","products":["fedoraproject:fedora"],"type":"information_disclosure","year":"2023"},"n_packages":293,"n_references":7,"next":{"headline":"Improper checks for deactivated users during login in synapse","id":"CVE-2023-32682"},"packages":[{"ecosystem":"PyPI","fixed":["2.31.0"],"introduced":["2.3.0"],"last_affected":[],"package":"requests","purl":null,"source":"GHSA-j8r2-6x86-q33q"},{"ecosystem":"PyPI","fixed":["2.31.0"],"introduced":["2.3.0"],"last_affected":[],"package":"requests","purl":"pkg:pypi/requests","source":"GHSA-j8r2-6x86-q33q"},{"ecosystem":"PyPI","fixed":["2.31.0"],"introduced":["2.3.0"],"last_affected":[],"package":"requests","purl":"pkg:pypi/requests","source":"PYSEC-2023-74"},{"ecosystem":"AlmaLinux:8","fixed":["2.5.1-10.module_el8.6.0+2781+fed64c13"],"introduced":["0"],"last_affected":[],"package":"babel","purl":"pkg:rpm/almalinux/babel","source":"ALSA-2023:7042"},{"ecosystem":"AlmaLinux:8","fixed":["1.3.7-31.module_el8.6.0+2781+fed64c13"],"introduced":["0"],"last_affected":[],"package":"python-nose-docs","purl":"pkg:rpm/almalinux/python-nose-docs","source":"ALSA-2023:7042"},{"ecosystem":"AlmaLinux:8","fixed":["2.7.5-8.module_el8.9.0+3640+8d3927b5"],"introduced":["0"],"last_affected":[],"package":"python-psycopg2-doc","purl":"pkg:rpm/almalinux/python-psycopg2-doc","source":"ALSA-2023:7042"},{"ecosystem":"AlmaLinux:8","fixed":["1.3.2-2.module_el8.6.0+2781+fed64c13"],"introduced":["0"],"last_affected":[],"package":"python-sqlalchemy-doc","purl":"pkg:rpm/almalinux/python-sqlalchemy-doc","source":"ALSA-2023:7042"},{"ecosystem":"AlmaLinux:8","fixed":["2.7.18-15.module_el8.9.0+3674+85657c95.alma.1"],"introduced":["0"],"last_affected":[],"package":"python2","purl":"pkg:rpm/almalinux/python2","source":"ALSA-2023:7042"},{"ecosystem":"AlmaLinux:8","fixed":["0.28.1-7.module_el8.6.0+2781+fed64c13"],"introduced":["0"],"last_affected":[],"package":"python2-Cython","purl":"pkg:rpm/almalinux/python2-Cython","source":"ALSA-2023:7042"},{"ecosystem":"AlmaLinux:8","fixed":["0.28.1-7.module_el8.6.0+3162+01a09e5a"],"introduced":["0"],"last_affected":[],"package":"python2-Cython","purl":"pkg:rpm/almalinux/python2-Cython","source":"ALSA-2023:7042"},{"ecosystem":"AlmaLinux:8","fixed":["0.8.0-10.module_el8.6.0+2781+fed64c13"],"introduced":["0"],"last_affected":[],"package":"python2-PyMySQL","purl":"pkg:rpm/almalinux/python2-PyMySQL","source":"ALSA-2023:7042"},{"ecosystem":"AlmaLinux:8","fixed":["17.4.0-10.module_el8.6.0+2781+fed64c13"],"introduced":["0"],"last_affected":[],"package":"python2-attrs","purl":"pkg:rpm/almalinux/python2-attrs","source":"ALSA-2023:7042"},{"ecosystem":"AlmaLinux:8","fixed":["2.5.1-10.module_el8.6.0+2781+fed64c13"],"introduced":["0"],"last_affected":[],"package":"python2-babel","purl":"pkg:rpm/almalinux/python2-babel","source":"ALSA-2023:7042"},{"ecosystem":"AlmaLinux:8","fixed":["1.0-16.module_el8.6.0+2781+fed64c13"],"introduced":["0"],"last_affected":[],"package":"python2-backports","purl":"pkg:rpm/almalinux/python2-backports","source":"ALSA-2023:7042"},{"ecosystem":"AlmaLinux:8","fixed":["1.0-16.module_el8.6.0+3162+01a09e5a"],"introduced":["0"],"last_affected":[],"package":"python2-backports","purl":"pkg:rpm/almalinux/python2-backports","source":"ALSA-2023:7042"},{"ecosystem":"AlmaLinux:8","fixed":["3.5.0.1-12.module_el8.6.0+2781+fed64c13"],"introduced":["0"],"last_affected":[],"package":"python2-backports-ssl_match_hostname","purl":"pkg:rpm/almalinux/python2-backports-ssl_match_hostname","source":"ALSA-2023:7042"},{"ecosystem":"AlmaLinux:8","fixed":["3.7.0-1.module_el8.6.0+2781+fed64c13"],"introduced":["0"],"last_affected":[],"package":"python2-bson","purl":"pkg:rpm/almalinux/python2-bson","source":"ALSA-2023:7042"},{"ecosystem":"AlmaLinux:8","fixed":["3.7.0-1.module_el8.6.0+3162+01a09e5a"],"introduced":["0"],"last_affected":[],"package":"python2-bson","purl":"pkg:rpm/almalinux/python2-bson","source":"ALSA-2023:7042"},{"ecosystem":"AlmaLinux:8","fixed":["3.0.4-10.module_el8.6.0+2781+fed64c13"],"introduced":["0"],"last_affected":[],"package":"python2-chardet","purl":"pkg:rpm/almalinux/python2-chardet","source":"ALSA-2023:7042"},{"ecosystem":"AlmaLinux:8","fixed":["4.5.1-5.module_el8.9.0+3640+8d3927b5"],"introduced":["0"],"last_affected":[],"package":"python2-coverage","purl":"pkg:rpm/almalinux/python2-coverage","source":"ALSA-2023:7042"},{"ecosystem":"AlmaLinux:8","fixed":["2.7.18-15.module_el8.9.0+3674+85657c95.alma.1"],"introduced":["0"],"last_affected":[],"package":"python2-debug","purl":"pkg:rpm/almalinux/python2-debug","source":"ALSA-2023:7042"},{"ecosystem":"AlmaLinux:8","fixed":["2.7.18-15.module_el8.9.0+3674+85657c95.alma.1"],"introduced":["0"],"last_affected":[],"package":"python2-devel","purl":"pkg:rpm/almalinux/python2-devel","source":"ALSA-2023:7042"},{"ecosystem":"AlmaLinux:8","fixed":["1.15.0-10.module_el8.6.0+2781+fed64c13"],"introduced":["0"],"last_affected":[],"package":"python2-dns","purl":"pkg:rpm/almalinux/python2-dns","source":"ALSA-2023:7042"},{"ecosystem":"AlmaLinux:8","fixed":["2.7.16-2.module_el8.6.0+2781+fed64c13"],"introduced":["0"],"last_affected":[],"package":"python2-docs","purl":"pkg:rpm/almalinux/python2-docs","source":"ALSA-2023:7042"},{"ecosystem":"AlmaLinux:8","fixed":["2.7.16-2.module_el8.6.0+2781+fed64c13"],"introduced":["0"],"last_affected":[],"package":"python2-docs-info","purl":"pkg:rpm/almalinux/python2-docs-info","source":"ALSA-2023:7042"},{"ecosystem":"AlmaLinux:8","fixed":["0.14-12.module_el8.6.0+2781+fed64c13"],"introduced":["0"],"last_affected":[],"package":"python2-docutils","purl":"pkg:rpm/almalinux/python2-docutils","source":"ALSA-2023:7042"},{"ecosystem":"AlmaLinux:8","fixed":["1.0.2-13.module_el8.6.0+2781+fed64c13"],"introduced":["0"],"last_affected":[],"package":"python2-funcsigs","purl":"pkg:rpm/almalinux/python2-funcsigs","source":"ALSA-2023:7042"},{"ecosystem":"AlmaLinux:8","fixed":["2.5-7.module_el8.6.0+2781+fed64c13"],"introduced":["0"],"last_affected":[],"package":"python2-idna","purl":"pkg:rpm/almalinux/python2-idna","source":"ALSA-2023:7042"},{"ecosystem":"AlmaLinux:8","fixed":["1.0.18-6.module_el8.6.0+2781+fed64c13"],"introduced":["0"],"last_affected":[],"package":"python2-ipaddress","purl":"pkg:rpm/almalinux/python2-ipaddress","source":"ALSA-2023:7042"},{"ecosystem":"AlmaLinux:8","fixed":["2.10-9.module_el8.6.0+2781+fed64c13"],"introduced":["0"],"last_affected":[],"package":"python2-jinja2","purl":"pkg:rpm/almalinux/python2-jinja2","source":"ALSA-2023:7042"},{"ecosystem":"AlmaLinux:8","fixed":["2.7.18-15.module_el8.9.0+3674+85657c95.alma.1"],"introduced":["0"],"last_affected":[],"package":"python2-libs","purl":"pkg:rpm/almalinux/python2-libs","source":"ALSA-2023:7042"},{"ecosystem":"AlmaLinux:8","fixed":["4.2.3-6.module_el8.6.0+2781+fed64c13"],"introduced":["0"],"last_affected":[],"package":"python2-lxml","purl":"pkg:rpm/almalinux/python2-lxml","source":"ALSA-2023:7042"},{"ecosystem":"AlmaLinux:8","fixed":["4.2.3-6.module_el8.6.0+3162+01a09e5a"],"introduced":["0"],"last_affected":[],"package":"python2-lxml","purl":"pkg:rpm/almalinux/python2-lxml","source":"ALSA-2023:7042"},{"ecosystem":"AlmaLinux:8","fixed":["0.23-19.module_el8.6.0+2781+fed64c13"],"introduced":["0"],"last_affected":[],"package":"python2-markupsafe","purl":"pkg:rpm/almalinux/python2-markupsafe","source":"ALSA-2023:7042"},{"ecosystem":"AlmaLinux:8","fixed":["0.23-19.module_el8.6.0+3162+01a09e5a"],"introduced":["0"],"last_affected":[],"package":"python2-markupsafe","purl":"pkg:rpm/almalinux/python2-markupsafe","source":"ALSA-2023:7042"},{"ecosystem":"AlmaLinux:8","fixed":["2.0.0-13.module_el8.6.0+2781+fed64c13"],"introduced":["0"],"last_affected":[],"package":"python2-mock","purl":"pkg:rpm/almalinux/python2-mock","source":"ALSA-2023:7042"},{"ecosystem":"AlmaLinux:8","fixed":["1.3.7-31.module_el8.6.0+2781+fed64c13"],"introduced":["0"],"last_affected":[],"package":"python2-nose","purl":"pkg:rpm/almalinux/python2-nose","source":"ALSA-2023:7042"},{"ecosystem":"AlmaLinux:8","fixed":["1:1.14.2-16.module_el8.6.0+2781+fed64c13"],"introduced":["0"],"last_affected":[],"package":"python2-numpy","purl":"pkg:rpm/almalinux/python2-numpy","source":"ALSA-2023:7042"},{"ecosystem":"AlmaLinux:8","fixed":["1:1.14.2-16.module_el8.6.0+3162+01a09e5a"],"introduced":["0"],"last_affected":[],"package":"python2-numpy","purl":"pkg:rpm/almalinux/python2-numpy","source":"ALSA-2023:7042"},{"ecosystem":"AlmaLinux:8","fixed":["1:1.14.2-16.module_el8.6.0+2781+fed64c13"],"introduced":["0"],"last_affected":[],"package":"python2-numpy-doc","purl":"pkg:rpm/almalinux/python2-numpy-doc","source":"ALSA-2023:7042"}],"prev":{"headline":"Missing SQL permissions check in metabase","id":"CVE-2023-32680"},"products":["requests"],"published":"2023-05-26","related":[{"cvss_score":9.8,"headline":"PHP-CGI OS Command Injection","id":"CVE-2024-4577","kev_date_added":"2024-06-12","published":"2024-06-09"},{"cvss_score":9.8,"headline":"Grafana Authentication Bypass","id":"CVE-2021-39226","kev_date_added":"2022-08-25","published":"2021-10-05"},{"cvss_score":9.8,"headline":"VMware ESXi and Horizon DaaS OpenSLP Heap-Based Buffer Overflow","id":"CVE-2019-5544","kev_date_added":"2021-11-03","published":"2019-12-06"},{"cvss_score":9.6,"headline":"Google Chromium V8 Type Confusion","id":"CVE-2024-4947","kev_date_added":"2024-05-20","published":"2024-05-15"},{"cvss_score":9.6,"headline":"Google Chromium Visuals Use-After-Free","id":"CVE-2024-4671","kev_date_added":"2024-05-13","published":"2024-05-09"},{"cvss_score":9.6,"headline":"Google Chromium Mojo Insufficient Data Validation","id":"CVE-2022-3075","kev_date_added":"2022-09-08","published":"2022-09-26"},{"cvss_score":9.6,"headline":"Google Chromium Indexed DB API Use-After-Free","id":"CVE-2021-30633","kev_date_added":"2021-11-03","published":"2021-10-08"}],"sources":[{"class":"attribution","licence":"MIT","name":"AlmaLinux","prefix":"ALSA"},{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"CC BY 4.0","name":"PyPA Advisory Database","prefix":"PYSEC"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"partial"},"state":"PUBLISHED","updated":"2025-02-13","vendors":["psf"]},"summary":"The Requests library leaks Proxy-Authorization headers to destination servers during HTTPS redirects, allowing attackers to exfiltrate sensitive proxy credentials.","url":"https://insights.sbomify.com/CVE-2023-32681/"}