CVE-2023-31543
CRITICAL 9.8CVSS 3.1pipreqs vulnerable to Dependency Confusion
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
- 30 Jun 2023
- Last modified
- 17 Jun 2026
- Assigned by
- cve@mitre.org
- NVD status
- Modified
- Weakness
- CWE-427
- Also known as
- GHSA-v4f4-23wc-99mhPYSEC-2023-99
- Sources
- NVDJSONOSV GHSA-v4f4-23wc-99mhJSONOSV PYSEC-2023-99JSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| OSV | GitHub | CVSS 4.0 | 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 | |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | GitHub | CVSS 3.1 | CRITICAL 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | pipreqs_project | pipreqscpe:2.3:a:pipreqs_project:pipreqs:*:*:*:*:*:python:*:* |
>= 0.3.0, <= 0.4.11 | |
| OSV | PyPI | pipreqs | >= 0.3.0, < 0.4.12 | 0.4.12 |
References
- https://gist.github.com/adeadfed/ccc834440af354a5638f889bee34bafe · Exploit, Mitigation, Third Party Advisory, WEB, EVIDENCE
- https://github.com/bndr/pipreqs/pull/364 · Exploit, Mitigation, Patch, Vendor Advisory, WEB, EVIDENCE, FIX, ADVISORY
- https://nvd.nist.gov/vuln/detail/CVE-2023-31543 · ADVISORY
- https://github.com/bndr/pipreqs/commit/3f5964fcb90ec6eb6df46d78e651a1b73538d0ba · WEB
- https://github.com/bndr/pipreqs · PACKAGE
- https://github.com/bndr/pipreqs/blob/master/pipreqs/pipreqs.py#L447-L449 · WEB
- https://github.com/pypa/advisory-database/tree/main/vulns/pipreqs/PYSEC-2023-99.yaml · WEB
- https://github.com/advisories/GHSA-v4f4-23wc-99mh · ADVISORY
History
- 25 Nov 2026 20:36 UTC · NVD: first stored (published 30 Jun 2023)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 30 Jun 2023)
- 25 Nov 2026 20:12 UTC · OSV: first stored (published 30 Jun 2023)