
How to Check Your Python Dependencies for Vulnerabilities
Python Tip: Use pip-audit to check your local Python project dependancies for vulerabilities.
Heres how π
# Install
python -m pip install pip-audit
# Scan
pip-audit
# or, if you have a requirements.txt file
pip-audit -r requirements.txt
# Output:
# Found 2 known vulnerabilities in 1 package
# Name Version ID Fix Versions
# ---- -------