Live threats

All CVEs / Pipreqs Project

CVE-2023-31543Pipreqs Project Pipreqs

Critical 9.8 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Pipreqs.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
pipreqs_projectpipreqs≥ 0.3.0 ≤ 0.4.11

Official advisories

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.