pip-audit
noun
say it: “PIP AW-dit” /pɪp ˈɔdɪt/
A command-line tool that checks a Python project's packages against a public list of known security holes and names the version that fixes each one.
What does pip-audit do?
pip-audit checks a project's packages, installed or pinned in requirements.txt, against a public list of known
security holes, and names the version that fixes each one. Pin a version at least that new, run the tests, and run
pip-audit again before each release.
pip-audit -r requirements.txt
# Name Version ID Fix Versions
# ------ ------- --------------- ------------
# jinja2 3.1.2 PYSEC-2026-1473 3.1.3
# jinja2 3.1.2 PYSEC-2026-1471 3.1.6
# ... (after pinning jinja2==3.1.6)
# No known vulnerabilities found
In a sentence
- “pip-audit found known holes in the pinned jinja2 and named 3.1.6 as the version that fixes them all.”
- “Run pip-audit before each release and whenever you add a package.”
Level: Journeyman · More Python terms at this level
Updated