Discover / Security

Safety

by pyupioPython

Checks Python dependencies against a database of known vulnerabilities.

Toolstable

Maturity: stable because 10y old, 3.8.1 released 66d ago. Derived from release and commit history, not a rating.

Stars
2.0k
Forks
199
Downloads / mo
4.7M
Last commit
2026-07-21
License
Open issues
84

Market and trust evidence

Edition not yet matched

No exact skills.sh identity match is available for this repository. Repository adoption and freshness remain visible above; install momentum is not inferred.

Trust analysis is a screening signal, not a security warranty. Read the ranking and trust methodology.

In practice

Written by AI from this repository’s README · high confidence

Installed Python dependencies may carry known vulnerabilities with no obvious signal about what to upgrade.

Use it when

When scanning Python projects locally, in CI/CD or in production for vulnerable or malicious dependencies.

Not the right pick when

Scans prompt for account creation or login, and the system wide scan is part of the commercial product.

Capabilities

  • Scans individual requirements files, directories or whole systems
  • Updates vulnerable dependencies with scan --apply-fixes
  • JSON, SBOM, HTML and text output
  • GitHub Action for CI/CD pipelines
  • Backed by the Safety DB vulnerability data

Requirements

  • A Safety account, since scans prompt for creation or login
  • Python with pip on the development machine

Cost: Open source with a paid cloud option

Install

Derived from the published package name in the repository, not from a model.

Video walkthroughs

Third-party YouTube uploads matched to this tool by title, channel and repository name on 2026-08-03. Not made, reviewed or endorsed by SkillPilot. View counts and publish months are as of the match date and the month is approximate. Nothing loads from YouTube until you press play.

What the repository ships

Has testsHas docsDocker imageSecurity policyCI configured

Detected from the actual files in the repository root.

Latest release 3.8.1

Published 2026-05-29

What's Changed

  • bump: version 3.8.0 → 3.8.1 (ec3368a)
  • fix: support SFTY-format vulnerability IDs in policy files (#868) (796af4d)

Tags

README

safety

Downloads

CI Status

License

PyPI Version

Python Versions

Coverage

[!NOTE]

Come and join us at SafetyCLI. We are hiring for various roles.

Table of Contents

  • Table of Contents
  • Introduction
  • Key Features
  • Getting Started
  • GitHub Action
  • Command Line Interface
  • 1. Installation
  • 2. Log In or Register
  • 3. Running Your First Scan
  • Basic Commands
  • Service-Level Agreement (SLA)
  • Detailed Documentation
  • License
  • Supported Python Versions
  • Resources

Introduction

Safety CLI is a Python dependency vulnerability scanner designed to enhance software supply chain security by detecting packages with known vulnerabilities and malicious packages in local development environments, CI/CD, and production systems.

Safety CLI can be deployed in minutes and provides clear, actionable recommendations for remediation of detected vulnerabilities.

Leveraging the industry's most comprehensive database of vulnerabilities and malicious packages, Safety CLI Scanner allows teams to detect vulnerabilities at every stage of the software development lifecycle.

Key Features

  • Versatile, comprehensive dependency security scanning for Python packages.
  • Leverages Safety DB, the most comprehensive vulnerability data available for Python.
  • Clear output with detailed recommendations for vulnerability remediation.
  • Automatically updates requirements files to secure versions of dependencies where available, guided by your project's policy settings.
  • Scanning of individual requirements files and project directories or system-wide scans on developer machines, CI/CD pipelines, and Production systems to detect vulnerable or malicious dependencies.
  • JSON, SBOM, HTML and text output.
  • Easy integration with CI/CD pipelines, including GitHub Actions.
  • Enterprise Ready: Safety CLI can be deployed to large teams with complex project setups with ease, on-premise or as a SaaS product.

Getting Started

GitHub Action

Command Line Interface

1. Installation

  • Install Safety on your development machine.
  • Run pip install safety.

2. Log In or Register

  • Run your first scan using safety scan.
  • If not authenticated, Safety will prompt for account creation or login.
  • Use safety auth to check authentication status.

3. Running Your First Scan

  • Navigate to a project directory and run safety scan.
  • Safety will perform a scan and present results in the Terminal.

Basic Commands

  • safety --help: Access help and display all available commands.
  • safety auth: Start authentication flow or display status.
  • safety scan: Perform a vulnerability scan in the current directory.
  • safety system-scan: Discover supply-chain assets on your development machine — AI assistants (e.g. Claude Code, Claude Desktop), dependencies, runtimes, environments, and developer tools. Available as part of the Safety commercial product — see https://getsafety.com/.
  • safety scan --apply-fixes: Update vulnerable dependencies.

Service-Level Agreement (SLA)

We are committed to maintaining a high level of responsiveness and transparency in managing issues reported in our codebases. This SLA outlines our policies and procedures for handling issues to ensure timely resolutions and effective communication with our community.

  • Read our full SLA

Detailed Documentation

Full documentation is available at https://docs.safetycli.com.

Included in the documentation are the following key topics:

Safety CLI 3

Vulnerability Remediation

Integration

Administration

Output

Miscellaneous

System status is available at https://status.safetycli.com

Further support is available by emailing support@safetycli.com.

License

Safety is released under the MIT License.

Upon creating an account, a 7-day free trial of our Team plan is offered to new users, after which they will be downgraded to our Free plan. This plan is limited to a single user and is not recommended for commercial purposes.

Our paid plans for commercial use begin at just $25 per seat per month and allow scans to be performed using our full vulnerability database, complete with 3x more tracked vulnerabilities and malicious packages than our free plan and other providers. To learn more about our Team and Enterprise plans, please visit https://safetycli.com/resources/plans or email sales@safetycli.com.

Supported Python Versions

Safety CLI 3 supports Python versions >=3.9. Further details on supported versions, as well as options to run Safety CLI on versions <3.9 using a Docker image are available in our Documentation Hub.

We maintain a policy of supporting all maintained and secure versions of Python, plus one minor version below the oldest maintained and secure version. Details on Python versions that meet these criteria can be found here: https://endoflife.date/python.

Resources

Related tools