{"id":"CVE-2021-3116","aliases":["CVE-2021-3116","GHSA-cmc7-mfmr-xqrx","PYSEC-2021-46"],"related":[],"kind":"vulnerability","state":"published","title":"Logic error in authentication in proxy.py","summary":"before_upstream_connection in AuthPlugin in http/proxy/auth.py in proxy.py before 2.3.1 accepts incorrect Proxy-Authorization header data because of a boolean confusion (and versus or).","summarySource":"cvelist","descriptions":[{"lang":"en","text":"before_upstream_connection in AuthPlugin in http/proxy/auth.py in proxy.py before 2.3.1 accepts incorrect Proxy-Authorization header data because of a boolean confusion (and versus or).","source":"cvelist"},{"lang":"es","text":"La función before_upstream_connection en AuthPlugin en el archivo http/proxy/auth.py en proxy.py versiones anteriores a 2.3.1, acepta datos de encabezado Proxy-Authorization incorrectos debido a una confusión booleana (y versus o)","source":"nvd"}],"published":"2021-01-11T05:00:49.000Z","modified":"2026-06-17T04:04:41.733Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N","rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:N/I:P/A:N","score":5,"rating":"MEDIUM"}],"cwes":["CWE-287","CWE-480","CWE-697"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.3.1"}],"ecosystem":"PyPI","package":"proxy-py","purl":"pkg:pypi/proxy-py","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"2.3.1"}],"vendor":"proxy.py_project","product":"proxy.py","cpe":"cpe:2.3:a:proxy.py_project:proxy.py:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.3.1"}],"ecosystem":"PyPI","package":"proxy-py","purl":"pkg:pypi/proxy-py","source":"pysec"}],"references":[{"url":"https://cardaci.xyz/advisories/2021/01/10/proxy.py-2.3.0-broken-basic-authentication/","tags":["advisory","exploit","third-party-advisory","x-refsource-misc","x-transferred"],"sources":["cvelist","nvd","pysec"]},{"url":"https://github.com/abhinavsingh/proxy.py/pull/482/commits/9b00093288237f5073c403f2c4f62acfdfa8ed46","tags":["patch","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://pypi.org/project/proxy.py/2.3.1/#history","tags":["package","product","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3116","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/abhinavsingh/proxy.py/pull/482","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/abhinavsingh/proxy.py/commit/bff171ec26d826ae1d22d2466eaf9d8bdbf059d3","tags":["web"],"sources":["ghsa"]},{"url":"https://cardaci.xyz/advisories/2021/01/10/proxy.py-2.3.0-broken-basic-authentication","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/abhinavsingh/proxy.py","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-cmc7-mfmr-xqrx","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/proxy-py/PYSEC-2021-46.yaml","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-3116","url":"https://www.cve.org/CVERecord?id=CVE-2021-3116","licence":"CVE Terms of Use","modified":"2024-08-03T16:45:51.254Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-cmc7-mfmr-xqrx","url":"https://github.com/advisories/GHSA-cmc7-mfmr-xqrx","licence":"CC-BY-4.0","modified":"2024-10-21T21:23:38.100Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-3116","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-3116","licence":"Public domain","modified":"2026-06-17T04:04:41.733Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2021-46","url":"https://osv.dev/vulnerability/PYSEC-2021-46","licence":"CC-BY-4.0","modified":"2023-11-08T04:05:47.192Z"}],"updatedAt":"2026-11-25T22:57:59.165Z","epss":{"score":0.01694,"percentile":0.77819,"date":"2026-12-01T12:00:22.000Z"}}