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.
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.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Python (PyPI) | pipreqs | >= 0.3.0, < 0.4.12 | 0.4.12 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2023-31543
- https://github.com/bndr/pipreqs/pull/364
- https://github.com/bndr/pipreqs/commit/3f5964fcb90ec6eb6df46d78e651a1b73538d0ba
- https://gist.github.com/adeadfed/ccc834440af354a5638f889bee34bafe
- https://github.com/bndr/pipreqs
- https://github.com/bndr/pipreqs/blob/master/pipreqs/pipreqs.py#L447-L449
- https://github.com/pypa/advisory-database/tree/main/vulns/pipreqs/PYSEC-2023-99.yaml
- https://github.com/advisories/GHSA-v4f4-23wc-99mh
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H- Weakness (CWE)
CWE-427- Platform
- Python (PyPI)
- Package
pipreqs- Disclosed
- 30.06.2023
- Updated
- 11.10.2026 12:20
Sources and licenses
OSV / GitHub Advisory Database - GHSA-v4f4-23wc-99mh - CC BY 4.0
OSV / GitHub Advisory Database - PYSEC-2023-99 - PyPA Advisory Database; CC BY 4.0
Vulnerability history: pipreqs
All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.
This is the only known vulnerability of this package.
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.