What is Safety DB?
Safety DB is a database of known security vulnerabilities in Python packages. The data is made available by pyup.io and synced with this repository once per month. Most of the entries are found by filtering CVEs and changelogs for certain keywords and then manually reviewing them.
Tools
- Safety CI is a deep GitHub integration that's available on pyup.io. It checks your commits and Pull Requests.
- Safety is a command line tool that checks virtualenvironments and requirement files either locally or on a CI server.
- Safety Django is a package for Django that warns you in the admin area if your installed Django release is insecure.
- Safety Bar (alpha) is a macOS menubar application.
- A pre-commit hook by Lucas Cimon.
pipenv checkrelies onsafetyand Safety-DB to check for known vulnerabilities in locked components- your tool?
Installation
pip install safety-db
Usage
from safety_db import INSECURE, INSECURE_FULL
What is this not?
This is not a hall of shame, or a list of packages to avoid. The package maintainers show a great responsibility by documenting and fixing security issues in such a way that they can be listed here. That's extremely valuable when considering using a package in production.
Using this data
For humans:
- There's a small website available that lets you browse the data: https://pyupio.github.io/safety-db/
For robots:
Check out the data directory:
- insecure.json contains just the package name and all insecure releases as a plain list.
- insecure_full.json additionally contains the CVE description and URLs, or the relevant part of the changelog.
The database is licensed under CC BY-NC-SA 4.0. This allows you to use the data in any non commercial project as long as you link back to this repo. If you need a license for a commercial project, please contact support@pyup.io.
Metadata
Release files for safety-db 2021.7.17
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| safety-db-2021.7.17.tar.gz | 290.5 kB | Without provenance | Details for safety-db-2021.7.17.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| safety_db-2021.7.17-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for safety_db-2021.7.17-py2.py3-none-any.whl |
Total release size: 535.0 kB
Release files / safety-db-2021.7.17.tar.gz
| Download URL | safety-db-2021.7.17.tar.gz |
|---|---|
| Size | 290.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
287353e0d6c06995a4f22dc5e1de135898e8600f7a123b6f955801f68d53e028
|
|
BLAKE2b-256 checksum How to use checksums |
a2156ae02c4a2c96352bb39a265d0b5417f7f60a5e8aacf5432934682428fd03
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.6.7
|
Release files / safety_db-2021.7.17-py2.py3-none-any.whl
| Download URL | safety_db-2021.7.17-py2.py3-none-any.whl |
|---|---|
| Size | 244.5 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
33d4f657060345e5a417e05d2fd59fcc42bbcdf2c246e4e7bdb2238f8566c429
|
|
BLAKE2b-256 checksum How to use checksums |
eb68fb3cc78e65db6d36a160c09eff0c6748799e36ffd07dfca82199fbb02892
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.6.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.61.2 CPython/3.6.7
|
Security for safety-db 2021.7.17
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.