{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2023-31543","id":"CVE-2023-31543","title":"pipreqs vulnerable to Dependency Confusion","description":"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.","descriptionLong":"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:00.000Z","updated":"2026-10-28T02:31:11.141351856Z","reserved":"2023-04-29T00:00:00.000Z","status":"PUBLISHED","rejected":false,"assigner":"mitre","metric":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"GitHub"},"metrics":[{"version":"4.0","score":null,"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","source":"GitHub"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","rating":"critical","source":"GitHub"}],"rating":"critical","products":[],"affectedProducts":[{"vendor":"n/a","product":"n/a","defaultStatus":null,"versions":[{"version":"n/a","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"pipreqs","purl":"pkg:pypi/pipreqs","ranges":[">=0.3.0 <0.4.12"],"fixed":["0.4.12"],"advisory":"GHSA-v4f4-23wc-99mh"}],"cwes":["CWE-427"],"aliases":["GHSA-v4f4-23wc-99mh","PYSEC-2023-99"],"references":[{"url":"https://github.com/bndr/pipreqs/pull/364","tags":["x_transferred","fix","web","evidence","advisory"]},{"url":"https://gist.github.com/adeadfed/ccc834440af354a5638f889bee34bafe","tags":["x_transferred","web","evidence"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/31xxx/CVE-2023-31543.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-31543","tags":["advisory"]},{"url":"https://github.com/bndr/pipreqs/commit/3f5964fcb90ec6eb6df46d78e651a1b73538d0ba","tags":["web"]},{"url":"https://github.com/bndr/pipreqs","tags":["package"]},{"url":"https://github.com/bndr/pipreqs/blob/master/pipreqs/pipreqs.py#L447-L449","tags":["web"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/pipreqs/PYSEC-2023-99.yaml","tags":["web"]},{"url":"https://github.com/advisories/GHSA-v4f4-23wc-99mh","tags":["advisory"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total"},"epss":0.01177,"epssPercentile":0.68408,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2023-31543","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-31543","ok":false,"note":"unavailable (rate limited?)"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2023-31543","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-v4f4-23wc-99mh","ok":true,"note":"GHSA-v4f4-23wc-99mh"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2023-31543","ok":true,"note":"scored 2026-11-20"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}