uv-secure

0.17.1 · active · verified Fri Apr 17

uv-secure is a command-line tool designed to scan your uv.lock file for dependencies with known vulnerabilities. It provides a quick way to ensure your project's Python dependencies, managed by `uv`, are secure. The library is actively maintained with frequent releases, often including dependency updates and minor feature enhancements.

Common errors

Warnings

Install

Quickstart

To use `uv-secure`, you must first generate a `uv.lock` file for your project using `uv`. Once the lock file exists, simply run `uv-secure scan` in the same directory. Output will be printed to the console, detailing any found vulnerabilities. Additional flags allow filtering by severity or ignoring unfixed issues.

# First, ensure you have uv installed and a uv.lock file
# pip install uv
# cd your_project_directory
# uv pip install -r requirements.txt
# uv pip freeze > uv.lock

# Then, run uv-secure
uv-secure scan

# Example with additional options (introduced in 0.16.0)
uv-secure scan --min-severity critical --ignore-unfixed

view raw JSON →