# 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.

```bash
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](https://www.ask-codey.com/glossary?category=python&level=3)

Updated: November 19, 2026

Source: https://www.ask-codey.com/glossary/pip-audit
