{"id":"CVE-2023-31543","aliases":["CVE-2023-31543","GHSA-v4f4-23wc-99mh","PYSEC-2023-99"],"related":[],"kind":"vulnerability","state":"published","title":"pipreqs vulnerable to Dependency Confusion","summary":"A dependency confusion in pipreqs v0.3.0 to v0.4.11 allows attackers to execute arbitrary code via uploading a crafted PyPI package to the chosen repository server.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"A dependency confusion in pipreqs v0.3.0 to v0.4.11 allows attackers to execute arbitrary code via uploading a crafted PyPI package to the chosen repository server.","source":"cvelist"}],"published":"2023-06-30T00:00:00.000Z","modified":"2026-06-17T05:57:09.227Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-427"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0.3.0","status":"affected","fixed":"0.4.12"}],"ecosystem":"PyPI","package":"pipreqs","purl":"pkg:pypi/pipreqs","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"0.3.0","lastAffected":"0.4.11"}],"vendor":"pipreqs_project","product":"pipreqs","cpe":"cpe:2.3:a:pipreqs_project:pipreqs:*:*:*:*:*:python:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0.3.0","status":"affected","fixed":"0.4.12"}],"ecosystem":"PyPI","package":"pipreqs","purl":"pkg:pypi/pipreqs","source":"pysec"}],"references":[{"url":"https://github.com/bndr/pipreqs/pull/364","tags":["advisory","evidence","exploit","fix","mitigation","patch","vendor-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://gist.github.com/adeadfed/ccc834440af354a5638f889bee34bafe","tags":["evidence","exploit","mitigation","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-31543","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/bndr/pipreqs/commit/3f5964fcb90ec6eb6df46d78e651a1b73538d0ba","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/bndr/pipreqs","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/bndr/pipreqs/blob/master/pipreqs/pipreqs.py#L447-L449","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/pipreqs/PYSEC-2023-99.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-v4f4-23wc-99mh","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"total","date":"2024-11-26T19:58:22.279Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-31543","url":"https://www.cve.org/CVERecord?id=CVE-2023-31543","licence":"CVE Terms of Use","modified":"2024-11-26T19:58:33.378Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-v4f4-23wc-99mh","url":"https://github.com/advisories/GHSA-v4f4-23wc-99mh","licence":"CC-BY-4.0","modified":"2024-10-14T18:48:38.278Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-31543","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-31543","licence":"Public domain","modified":"2026-06-17T05:57:09.227Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2023-99","url":"https://osv.dev/vulnerability/PYSEC-2023-99","licence":"CC-BY-4.0","modified":"2026-06-10T17:02:29.025Z"}],"updatedAt":"2026-11-25T22:58:25.345Z","epss":{"score":0.01177,"percentile":0.68511,"date":"2026-12-01T12:00:22.000Z"}}