Every CVE Search/ Get API key

CVE-2023-31543

pipreqs vulnerable to Dependency Confusion

9.8 CriticalFix available

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.

Attack profile

How easy it is to exploit

Attack vector
Network
Complexity
Low
Privileges needed
None
User interaction
None

What an attacker can affect

Confidentiality
High
Integrity
High
Availability
High

Exploit likelihood

1.18%Up 1.1 points since Jul 1, 2023
90%50%10%1%

What each source reports

NVD Score used 9.8

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.

Record
CVE-2023-31543
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-427
Updated
2026-11-02
CVE List No score

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.

Record
CVE-2023-31543
Updated
2026-11-02
EUVDEUVD-2023-0201 No score

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.

Record
EUVD-2023-0201
Updated
2026-11-03
GitHub AdvisoriesGHSA-v4f4-23wc-99mh 9.3

pipreqs 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.

Record
GHSA-v4f4-23wc-99mh
CVSS 4.0
9.3 CriticalCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-427
Updated
2026-11-02
OSVGHSA-v4f4-23wc-99mh 9.3

pipreqs 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.

Record
GHSA-v4f4-23wc-99mh
CVSS 4.0
9.3 CriticalCVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
CVSS 3.1
9.8 CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-427
Updated
2026-11-02
OSV No score

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.

Record
CVE-2023-31543
Updated
2026-11-02
OSVopenSUSE-SU-2024:13041-1 No score

python310-pipreqs-0.4.13-1.1 on GA media

These are all security issues fixed in the python310-pipreqs-0.4.13-1.1 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2024:13041-1
Updated
2026-11-02
OSVopenSUSE-SU-2026:12026-1 No score

python313-pipreqs-0.5.0-2.2 on GA media

These are all security issues fixed in the python313-pipreqs-0.5.0-2.2 package on the GA media of openSUSE Tumbleweed.

Record
openSUSE-SU-2026:12026-1
Updated
2026-11-02
OSVPYSEC-2023-99 No score

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.

Record
PYSEC-2023-99
Updated
2026-11-02

Affected products

Affected packages

Affected packages
PackageAffectedFixed
pipreqs
PyPI
0.3.0 up to 0.4.12
0.4.12
pipreqs
PyPI
0.3.0 up to 0.4.12, plus listed versions
0.3.10.3.20.3.30.3.40.3.5
Show 16 moreShow less
0.3.60.3.70.3.80.3.90.4.00.4.10.4.100.4.110.4.20.4.30.4.40.4.50.4.60.4.70.4.80.4.9
0.4.12
python-pipreqs
openSUSE:Tumbleweed
before 0.5.0-2.2
0.5.0-2.2

History

History
RecordedChangedSources
aliasesEUVD
first indexedCVE List, GitHub Advisories, NVD, OSV

Dates are when Every CVE recorded each change. Upstream dates may differ.

In short

CVE-2023-31543 is a critical vulnerability (CVSS 9.8) in Pipreqs Project Pipreqs, published June 30, 2023. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 1.18%, the 67th percentile. Fixed in pipreqs 0.4.12.

References

Show 4 moreShow less
MoveEnter Open