pip-audit
A tool that checks a Python project's pinned dependencies against public advisory databases and reports known vulnerabilities with fixed versions.
In more detail
It reports each affected package with the advisory identifier and the version that fixes it. Run it in the pipeline on every change and on a schedule, because the list of known vulnerabilities grows while your pins stay put.
Example
pip-audit --requirement requirements.txtRelated terms
- security advisory — A public notice from a vendor, project or government agency describing a security flaw, which versions it affects, and how to fix or work around it.
- requirements file — A text file, usually requirements.txt, listing the packages a project needs, one per line, often pinned to exact versions.
Taught in
- Dependency Risk And Typosquatting — Application Security & Threat Modeling for Engineers