safety 3.7.0


pip install safety

  Latest version

Released: Nov 06, 2025


Meta
Author: Safety
Requires Python: >=3.9

Classifiers

Development Status
  • 5 - Production/Stable

Intended Audience
  • Developers
  • Information Technology
  • System Administrators
  • Telecommunications Industry

License
  • OSI Approved :: MIT License

Natural Language
  • English

Operating System
  • MacOS
  • Microsoft :: Windows
  • POSIX :: Linux

Programming Language
  • Python :: 3
  • Python :: 3.9
  • Python :: 3.10
  • Python :: 3.11
  • Python :: 3.12
  • Python :: 3.13
  • Python :: 3.14

Topic
  • Security

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

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: Perform a scan across the entire development machine.
  • 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.

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

3.8.0b3 Mar 12, 2026
3.8.0b2 Mar 10, 2026
3.8.0b1 Feb 25, 2026
3.8.0b0 Dec 02, 2025
3.7.0 Nov 06, 2025
3.7.0b5 Nov 04, 2025
3.7.0b4 Nov 03, 2025
3.7.0b3 Nov 03, 2025
3.7.0b0 Oct 22, 2025
3.6.2 Sep 24, 2025
3.6.2b0 Sep 23, 2025
3.6.1 Sep 01, 2025
3.6.1b0 Aug 25, 2025
3.6.0 Jul 09, 2025
3.6.0b0 Jul 09, 2025
3.5.2 Jun 04, 2025
3.5.2b1 Jun 03, 2025
3.5.1 May 14, 2025
3.5.1b0 May 13, 2025
3.5.0 May 07, 2025
3.5.0b2 May 06, 2025
3.5.0b1 May 06, 2025
3.5.0b0 May 05, 2025
3.4.1b0 Apr 29, 2025
3.4.0 Apr 23, 2025
3.4.0b9 Apr 23, 2025
3.4.0b8 Apr 22, 2025
3.4.0b7 Apr 11, 2025
3.4.0b6 Apr 07, 2025
3.4.0b5 Apr 07, 2025
3.4.0b4 Apr 01, 2025
3.4.0b3 Apr 01, 2025
3.4.0b2 Apr 01, 2025
3.4.0b1 Apr 01, 2025
3.4.0b0 Mar 31, 2025
3.3.1 Feb 24, 2025
3.3.1b0 Feb 21, 2025
3.3.0 Feb 14, 2025
3.3.0b0 Feb 13, 2025
3.2.14 Dec 20, 2024
3.2.13 Dec 11, 2024
3.2.12 Dec 10, 2024
3.2.11 Nov 12, 2024
3.2.10 Oct 25, 2024
3.2.9 Oct 24, 2024
3.2.8 Sep 27, 2024
3.2.7 Aug 29, 2024
3.2.6 Aug 21, 2024
3.2.5 Aug 09, 2024
3.2.4 Jul 04, 2024
3.2.3 Jun 10, 2024
3.2.2 Jun 07, 2024
3.2.1 Jun 05, 2024
3.2.0 May 01, 2024
3.1.0 Mar 26, 2024
3.0.1 Jan 20, 2024
3.0.0 Jan 18, 2024
3.0.0a2 Jan 14, 2024
3.0.0a1 Jan 12, 2024
2.4.0b2 Nov 15, 2023
2.4.0b1 Feb 26, 2023
2.3.5 Dec 08, 2022
2.3.4 Dec 08, 2022
2.3.3 Nov 28, 2022
2.3.2 Nov 21, 2022
2.3.1 Oct 05, 2022
2.3.0 Oct 05, 2022
2.2.1 Oct 04, 2022
2.2.0 Sep 19, 2022
2.1.1 Jul 18, 2022
2.1.0 Jul 14, 2022
2.0.0 Jun 28, 2022
2.0b5 Jun 24, 2022
2.0b4 Jun 16, 2022
2.0b3 May 30, 2022
2.0b2 May 27, 2022
2.0b1 May 08, 2022
1.10.3 Jan 15, 2021
1.10.2.post1 Jan 12, 2021
1.10.2 Jan 11, 2021
1.10.1 Jan 03, 2021
1.10.0 Dec 20, 2020
1.9.0 Apr 26, 2020
1.8.7 Mar 10, 2020
1.8.6 Mar 10, 2020
1.8.5 Feb 04, 2019
1.8.4 Aug 03, 2018
1.8.3 Jul 24, 2018
1.8.3b0 Jul 24, 2018
1.8.2 Jul 11, 2018
1.8.1 Apr 06, 2018
1.8.0 Apr 05, 2018
1.7.0 Feb 03, 2018
1.6.1 Oct 20, 2017
1.6.0 Oct 20, 2017
1.5.1 Jul 20, 2017
1.5.0 Jul 19, 2017
1.4.1 Jul 04, 2017
1.4.0 Apr 21, 2017
1.3.0 Apr 21, 2017
1.2.0 Apr 20, 2017
1.1.1 Mar 27, 2017
1.1.0 Mar 23, 2017
1.0.2 Mar 23, 2017
1.0.1 Mar 23, 2017
1.0.0 Mar 23, 2017
0.6.0 Mar 10, 2017
0.5.1 Nov 08, 2016
0.5.0 Nov 08, 2016
0.4.0 Nov 07, 2016
0.3.0 Oct 28, 2016
0.2.2 Oct 21, 2016
0.2.1 Oct 21, 2016
0.2.0 Oct 20, 2016
0.1.0 Oct 19, 2016

Wheel compatibility matrix

Platform Python 3
any

Files in release

Extras:
Dependencies:
authlib (>=1.2.0)
click (>=8.0.2)
dparse (>=0.6.4)
filelock (<4.0,>=3.16.1)
httpx
jinja2 (>=3.1.0)
marshmallow (>=3.15.0)
nltk (>=3.9)
packaging (>=21.0)
pydantic (>=2.6.0)
requests
ruamel-yaml (>=0.17.21)
safety-schemas (==0.0.16)
tenacity (>=8.1.0)
tomli
tomlkit
typer (>=0.16.0)
typing-extensions (>=4.7.1)