VDB
CVE-2023-31543
CVE-2023-31543
PUBLISHED
CVSS 9.800000190734863 CRITICAL
pipreqs vulnerable to Dependency Confusion
Reported by mitre · Published June 30, 2023
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| pipreqs | pipreqs_project | 0.4.11 |
Risk scores
CVSS 3.1
9.800000190734863
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| n/a | n/a | * |
| PyPI | pipreqs | 0.3.0 |
Timeline
- Jun 30, 2023 CVE Published
- Jul 1, 2023 EPSS Score (30 in total, the first dated here)
- Jul 1, 2023 PoC Published
- Jul 13, 2023 GitHub Gist PoC
- Feb 16, 2026 CVE Updated
- Mar 10, 2026 Security Advisory
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2023-31543
vulnetix vdb fixes CVE-2023-31543
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-31543/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- https://nvd.nist.gov/vuln/detail/CVE-2023-31543 advisory
- https://github.com/advisories/GHSA-v4f4-23wc-99mh advisory
- https://github.com/bndr/pipreqs/commit/3f5964fcb90ec6eb6df46d78e651a1b73538d0ba patch
- https://github.com/bndr/pipreqs url
- https://github.com/bndr/pipreqs/blob/master/pipreqs/pipreqs.py#L447-L449 url
- https://github.com/pypa/advisory-database/tree/main/vulns/pipreqs/PYSEC-2023-99.yaml advisory