Autofix Vulnerable Dependencies


AutoFix will fix all the dependencies on the project or virtual environment.

Note: To updating the dependencies might affect your application.

While running this command, will ask you which package manager do you want to use.

  1. pip
  2. pipenv
  3. conda

Based on your selection, it uses the package manager and will install the dependencies.

Autofix dependencies

pyraider autofix

Autofix dependencies by severity

Supported severities

  1. high
  2. medium
  3. low
pyraider autofix -s high

Autofix dependencies with deep scan

pyraider autofix -d

Autofix dependencies with deep scan by severity

Supported severities

  1. high
  2. medium
  3. low
pyraider autofix -d -s high

You should get a result like this.

_____ _____ _ _
| __ \ | __ \ (_) | |
| |__) | _| |__) |__ _ _ __| | ___ _ __
| ___/ | | | _ // _` | |/ _` |/ _ \ '__|
| | | |_| | | \ \ (_| | | (_| | __/ |
|_| \__, |_| \_\__,_|_|\__,_|\___|_|
__/ |
|___/
by RaiderSource version 1.0.3
Started Scanning .....
Are you sure want to update all the packages, It might affect other packages? [Y/n] y
Do you want to use pip to install packages? [Y/n] y
werkzeug is already up to date to 1.0.1 version
Collecting jinja2==3.0.0a1
Downloading Jinja2-3.0.0a1-py3-none-any.whl (121 kB)
|████████████████████████████████| 121 kB 1.6 MB/s
Requirement already satisfied: MarkupSafe>=1.1 in ./venv/lib/python3.7/site-packages (from jinja2==3.0.0a1) (1.1.1)
Installing collected packages: jinja2
Attempting uninstall: jinja2
Found existing installation: Jinja2 2.11.2
Uninstalling Jinja2-2.11.2:
Successfully uninstalled Jinja2-2.11.2
Successfully installed jinja2-3.0.0a1
0
jinja2==3.0.0a1 version has been installed successfully!!!
Collecting flask==1.1.2
Using cached Flask-1.1.2-py2.py3-none-any.whl (94 kB)
Requirement already satisfied: Jinja2>=2.10.1 in ./venv/lib/python3.7/site-packages (from flask==1.1.2) (3.0.0a1)
Requirement already satisfied: itsdangerous>=0.24 in ./venv/lib/python3.7/site-packages (from flask==1.1.2) (1.1.0)
Requirement already satisfied: Werkzeug>=0.15 in ./venv/lib/python3.7/site-packages (from flask==1.1.2) (1.0.1)
Requirement already satisfied: click>=5.1 in ./venv/lib/python3.7/site-packages (from flask==1.1.2) (7.1.2)
Requirement already satisfied: MarkupSafe>=1.1 in ./venv/lib/python3.7/site-packages (from Jinja2>=2.10.1->flask==1.1.2) (1.1.1)
Installing collected packages: flask
Attempting uninstall: flask
Found existing installation: Flask 1.1.1
Uninstalling Flask-1.1.1:
Successfully uninstalled Flask-1.1.1
Successfully installed flask-1.1.2
0
flask==1.1.2 version has been installed successfully!!!

If you press Y it will automatically install the dependency.