pyupio/safety-db

A curated database of insecure Python packages

Python

785

2,104 commits

updated Oct 1, 2026

See the code

See what people are saying

SourceMessageScoreDate

Here is PyUp (safety) response: https://pyup.io/posts/patched-vulnerability/

on Building a backdoor with Node.js

0

Mar 20, 2020

"bandit" (available in pypi) is a nice static analysis tool - I don't remember if it is able to recurse into dependencies though [safety](https://pyup.io/safety/) is a commercial product that monitors your dependencies for this kind of shenanigans LGTM.com seemed to be working in this area - Semmle…

on Two malicious Python libraries caught stealing SSH and GPG keys

0

Dec 4, 2019

The best thing for me was starting https://pyup.io Working with developers is such a refreshing thing to do!

on Ask HN: What has been your most rewarding job or project and why?

0

Apr 26, 2018

Finding security vulnerabilities in third party packages

1

Apr 4, 2018

I just use pyup (https://pyup.io/) for Python projects and it works like a charm. It not only show vulnerabilities but also updates and Python 3 incompatibilities.

on Apology after Japanese train departs 20 seconds early

0

Nov 16, 2017

It already exists for Python: https://pyup.io/

on Ask HN: What's a side project you built to make money that hasn't?

0

Jul 8, 2017

Analyzing Django requirement files on GitHub

143

Jun 8, 2017

Pyup: Get automatic pull requests when your dependencies get updated

1

Apr 20, 2017

Manage your Python dependencies with pyup.io

3

Mar 2, 2017

Just signed up and discovered a vulnerability. Thanks! A quick suggestion, consider adding a full sample configuration along with your config docs: https://pyup.io/docs/configuration/ It's a lot easier to see how it all sits together with a sample. CircleCI has a great example:…

on Operation Rosehub – patching thousands of open-source projects

0

Mar 2, 2017

README

safety

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 check relies on safety and 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:

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 [email protected].

pyupio/safety-db

A curated database of insecure Python packages

Python

785

2,104 commits

updated Oct 1, 2026

See the code

See what people are saying

SourceMessageScoreDate

Here is PyUp (safety) response: https://pyup.io/posts/patched-vulnerability/

on Building a backdoor with Node.js

0

Mar 20, 2020

"bandit" (available in pypi) is a nice static analysis tool - I don't remember if it is able to recurse into dependencies though [safety](https://pyup.io/safety/) is a commercial product that monitors your dependencies for this kind of shenanigans LGTM.com seemed to be working in this area - Semmle…

on Two malicious Python libraries caught stealing SSH and GPG keys

0

Dec 4, 2019

The best thing for me was starting https://pyup.io Working with developers is such a refreshing thing to do!

on Ask HN: What has been your most rewarding job or project and why?

0

Apr 26, 2018

Finding security vulnerabilities in third party packages

1

Apr 4, 2018

I just use pyup (https://pyup.io/) for Python projects and it works like a charm. It not only show vulnerabilities but also updates and Python 3 incompatibilities.

on Apology after Japanese train departs 20 seconds early

0

Nov 16, 2017

It already exists for Python: https://pyup.io/

on Ask HN: What's a side project you built to make money that hasn't?

0

Jul 8, 2017

Analyzing Django requirement files on GitHub

143

Jun 8, 2017

Pyup: Get automatic pull requests when your dependencies get updated

1

Apr 20, 2017

Manage your Python dependencies with pyup.io

3

Mar 2, 2017

Just signed up and discovered a vulnerability. Thanks! A quick suggestion, consider adding a full sample configuration along with your config docs: https://pyup.io/docs/configuration/ It's a lot easier to see how it all sits together with a sample. CircleCI has a great example:…

on Operation Rosehub – patching thousands of open-source projects

0

Mar 2, 2017

README

safety

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 check relies on safety and 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:

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 [email protected].

Project health

Overall

3.2/10

Maintained

5/10

Code review

0/10
OpenSSF Scorecard

Latest release

2021.7.17 · Jul 18, 2021

Releases this year

0

Significant stargazers

David Cramer

3,464 followers · starred Sep 2017

Daniël van Eeden

128 followers · starred Oct 2016

Christian Heimes

590 followers · starred Mar 2017

Abe Tomoaki

103 followers · starred Jul 2022