{"id":"CVE-2023-31543","aliases":["GHSA-v4f4-23wc-99mh","PYSEC-2023-99"],"url":"https://o3.security/vulnerability/CVE-2023-31543","summary":"pipreqs vulnerable to Dependency Confusion","details":"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.","published":"2023-06-30T00:00:00Z","modified":"2026-08-12T03:51:12.174735710Z","cvss":{"score":9.8,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},"epss":null,"cisaKev":null,"exploitsKnown":2,"affectedPackages":[{"ecosystem":"PyPI","name":"pipreqs","fixedVersion":"0.4.12"}],"fix":{"url":"https://github.com/bndr/pipreqs/pull/364","label":"bndr/pipreqs#364"},"references":[{"type":"WEB","url":"https://gist.github.com/adeadfed/ccc834440af354a5638f889bee34bafe"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/31xxx/CVE-2023-31543.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-31543"},{"type":"FIX","url":"https://github.com/bndr/pipreqs/pull/364"},{"type":"WEB","url":"https://github.com/bndr/pipreqs/commit/3f5964fcb90ec6eb6df46d78e651a1b73538d0ba"},{"type":"PACKAGE","url":"https://github.com/bndr/pipreqs"},{"type":"WEB","url":"https://github.com/bndr/pipreqs/blob/master/pipreqs/pipreqs.py#L447-L449"},{"type":"WEB","url":"https://github.com/pypa/advisory-database/tree/main/vulns/pipreqs/PYSEC-2023-99.yaml"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:12.174735710Z"}}