CVE-2023-31543Pipreqs Project Pipreqs
Critical 9.8 No auth needed
Follow: this CVE · Pipreqs Project · Pipreqs Project Pipreqs We alert you by email or Slack (account required).
- Priority
- 74
- CVSS 3.1
- 9.8
- EPSS
- 1.3% probability of exploitation in 30 days · percentile 72
- Auth required
- No
- Published
- Jun 30, 2023
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-427
- SSVC (CISA)
- Exploitation: proof of concept · Automatable: yes · Technical impact: total
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
What happens
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.
What to do
- Apply the vendor's security update for Pipreqs.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | pipreqs |
≥ 0.3.0 < 0.4.12 |
0.4.12 |
pip install "pipreqs>=0.4.12" |
| PyPI | pipreqs |
≥ 0.3.0 < 0.4.12 |
0.4.12 |
pip install "pipreqs>=0.4.12" |
Per OSV / GitHub Advisories (GHSA-v4f4-23wc-99mh, PYSEC-2023-99). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| pipreqs_project | pipreqs | ≥ 0.3.0 ≤ 0.4.11 |
Official advisories
- python313-pipreqs-0.5.0-2.2 on GA media · SUSE · openSUSE-SU-2026:12026-1 · Oct 4, 2026 Critical
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.
- gist.github.com Exploit Mitigation Third Party Advisory
- github.com Exploit Mitigation Patch