Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. pipreqs
  4. ›
  5. CVE-2023-31543

CVE-2023-31543: pipreqs vulnerable to Dependency Confusion

June 30, 2023 (updated October 11, 2024)

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.

References

  • gist.github.com/adeadfed/ccc834440af354a5638f889bee34bafe
  • github.com/advisories/GHSA-v4f4-23wc-99mh
  • github.com/bndr/pipreqs
  • github.com/bndr/pipreqs/blob/master/pipreqs/pipreqs.py
  • github.com/bndr/pipreqs/commit/3f5964fcb90ec6eb6df46d78e651a1b73538d0ba
  • github.com/bndr/pipreqs/pull/364
  • github.com/pypa/advisory-database/tree/main/vulns/pipreqs/PYSEC-2023-99.yaml
  • nvd.nist.gov/vuln/detail/CVE-2023-31543

Code Behaviors & Features

Detect and mitigate CVE-2023-31543 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 0.3.0 before 0.4.12

Fixed versions

  • 0.4.12

Solution

Upgrade to version 0.4.12 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-427: Uncontrolled Search Path Element

Source file

pypi/pipreqs/CVE-2023-31543.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:43 +0000.