python-pip-audit

Audit Python dependencies for known vulnerabilities in environments and requirements files.

11|2|Updated Feb 18, 2026
One-click install
npx skills add https://github.com/the-perfect-developer/the-perfect-opencode --skill python-pip-audit
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: python-pip-audit
Source: https://github.com/the-perfect-developer/the-perfect-opencode/tree/main/.opencode/skills/python-pip-audit
Command: npx skills add https://github.com/the-perfect-developer/the-perfect-opencode --skill python-pip-audit

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

pip-audit scans Python environments and requirements files for packages with known vulnerabilities, helping teams reduce risk from insecure dependencies.

Core Features & Use Cases

  • Vulnerability scanning: Inspect environments and requirements files to surface CVEs, GHSA IDs, and fix versions.
  • Data source coverage: Query PyPI JSON API and OSV for comprehensive vulnerability data across ecosystems.
  • Use Case: Integrate into CI to fail builds when new vulnerabilities are detected in dependencies.

Quick Start

Install pip-audit in your environment and run a dependency audit on requirements.txt to identify vulnerabilities.

Frequently Asked Questions about python-pip-audit

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scan Python dependencies for known vulnerabilities in requirements files?

To scan Python dependencies for vulnerabilities, you can audit requirements files to surface CVEs and GHSA IDs. This process queries the PyPI JSON API and OSV database to identify insecure packages and provide fix versions.

How does pip-audit check environments for CVEs and GHSAs?

pip-audit checks environments for CVEs and GHSAs by querying the PyPI JSON API and OSV for comprehensive vulnerability data. It inspects installed packages and requirements files to surface known security issues across ecosystems.

Can I use vulnerability scanning to fail CI builds when insecure dependencies are detected?

Yes, you can integrate dependency vulnerability scanning into CI to fail builds when new vulnerabilities are detected. The audit supports multi-format output, making it suitable for automated pipelines to block insecure deployments.

Do I need a specific Python version to run pip-audit for dependency auditing?

Yes, you need Python 3.10 or higher to run pip-audit for dependency auditing. The tool supports installation via pip, pipx, or conda, ensuring flexibility across different environment setups.

What is the best way to audit PyPI packages for security issues?

The best way to audit PyPI packages for security issues is using a tool that queries both PyPI and OSV databases. This approach surfaces CVEs, GHSA IDs, and fix versions by inspecting environments and requirements files.

What data sources are used when scanning Python environments for vulnerabilities?

When scanning Python environments for vulnerabilities, the tool queries the PyPI JSON API and OSV for comprehensive vulnerability data. These sources provide coverage across ecosystems to identify known CVEs and GHSA IDs.