safety

Install command:
brew install safety

Checks Python dependencies for known vulnerabilities and suggests remediations

https://safetycli.com/product/safety-cli

License: MIT

Development: Pull requests

Formula JSON API: /api/formula/safety.json

Formula code: safety.rb on GitHub

Bottle (binary package) installation support provided for:

macOS on
Apple Silicon
tahoe
sequoia
sonoma
Linux ARM64
x86_64

Current versions:

stable 3.8.1
head ⚡️ HEAD

Revision: 2

Depends on:

certifi 2026.7.22 Mozilla CA bundle for Python
cryptography 50.0.1 Cryptographic recipes and primitives for Python
pydantic 2.13.5 Data validation using Python type hints
python@3.14 3.14.7 Interpreted, interactive, object-oriented programming language

Binaries: safety

Known vulnerabilities in the current version:

PYSEC-2026-3740 (high) NLTK: Model-artifact APIs bypass pathsec and touch files outside allowed roots

Data from Homebrew/advisory-database. Run brew vulns safety for a live check.

Analytics:

30 days90 days365 days
Installs35114736
Installs on Request35114736
Build Errors0