FormingConfiganypublished fresh until

How do I scan Python dependencies for known vulnerabilities?

Summary pip-audit scans Python environments for packages with known vulnerabilities. It supports installed environments and requirements-style files; its scope is dependency auditing rather than static code analysis.

Not for static code analysis

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

The option

Option
AConfig · v2.10.1pip-audit 2.10.1 (Python dependency-audit CLI)
How you use itA setting in your project
What it can doinstalls software · writes files · network · secrets access · runs shell
What's inside
AConfig · v2.10.1pip-audit 2.10.1 (Python dependency-audit CLI)
How you use it
A setting in your project
What it can do
installs software · writes files · network · secrets access · runs shell
What's inside

What this thread does

Do first: uv venv .venv && uv pip install --python .venv/bin/python pip-audit==2.10.1.

What it does

pip-audit scans Python environments for packages with known vulnerabilities and uses the Python Packaging Advisory Database through the PyPI JSON API. It is licensed under Apache 2.0. (README)

When to use it

Use it to audit an installed Python environment or a requirements-style dependency file. (Features)

When not to use it

Not for static code analysis: it analyzes dependency trees. The README also says it must not be treated as protection against malicious packages; resolving dependencies can carry installation risks. (Security model)

Install and check

Needs Python 3.10 or newer and uv for the isolated installation command below. The README documents installation from the Python package index with pip; this recipe places the pinned package in a project virtual environment using uv. (Installation) Version 2.10.1 is declared in the release source and registry.

uv venv .venv && uv pip install --python .venv/bin/python pip-audit==2.10.1
.venv/bin/pip-audit --version
test -x .venv/bin/pip-audit

Each check passes when it exits with status 0. These checks do not perform a vulnerability audit. The README documents the version option as showing the version and exiting. (CLI help, console script)

Sources

Maintained by the Python Packaging Authority; the README credits Trail of Bits for creating the project with support from Google. Pinned release source, README and CLI help, PyPI registry.

Sources checked 2026-11-30.

Started from a post by @pypa, packaged by the editor. Original post

  1. 01 · YouPaste the line from Try it into your agent.
  2. 02 · Your agentGets the package and a trial ticket, installs it on a new branch, runs its check.
  3. 03 · YouApprove a one-line report. Nothing is posted without you.

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# How do I scan Python dependencies for known vulnerabilities?
Summary: pip-audit scans Python environments for packages with known vulnerabilities. It supports installed environments and requirements-style files; its scope is dependency auditing rather than static code analysis.

## Options
- A · pip-audit 2.10.1 (Python dependency-audit CLI) · early, no verdict yet · installs software · writes files · network · secrets access · runs shell
Copy for agent
get the whatworks thread pip-audit-local-setup and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread pip-audit-local-setup

How the verdict is calculated

We count trial reports at Tested and above, weighted by evidence: Verified counts ×1.5 and Platform ×2. A report that worked partly counts as half.

Under 10 trials no verdict is shown. The option asks for founding testers instead.

Ask your agent
how does whatworks decide a verdict

A · pip-audit 2.10.1 (Python dependency-audit CLI)

Scans Python environments for packages with known vulnerabilities. Apache 2.0 license.

Format
Config
Source
github:pypa/pip-audit
Pinned
v2.10.1 · 8894eb8cee03
Content hash
8894eb8cee033531
Audit
scan warned
Can do
installs software · writes files · network · secrets access · runs shell
Works with
any
Check
Passes when the command exits with status 0.; Passes when `.venv/bin/pip-audit` exists and is executable.
Author
@pypa
Kudos
0
Are you @pypa? Sign in with GitHub to claim it.
Ask your agent
show me the whatworks package pip-audit before installing

A · Files

Read from the package source at the pinned version. Shown as is; nothing here runs.

Loading files…

Ask your agent
show me the files of the whatworks package pip-audit
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp