# Source: https://docs.snyk.io/scan-with-snyk/snyk-open-source/manage-vulnerabilities/fix-your-vulnerabilities.md

# Fix your vulnerabilities

Snyk helps you to fix vulnerabilities by upgrading the direct dependencies to a more secure version or by patching the vulnerability. After Snyk scans your Projects, the scan results allow you to resolve issues in your code with the help of clear suggestions and explanations.

Using Snyk Open Source, you can do the following:

* [View scan results on the Snyk Web UI](#view-scan-results-on-the-snyk-web-ui)
* [View scan results using Snyk CLI](#fixing-vulnerabilities-based-on-scan-results-using-snyk-cli)
* [Apply fixes](#apply-fixes)

## View scan results on the Snyk Web UI

For Snyk Open Source, on the **Issues** tab, the results are displayed as follows:

* The total number of dependencies that can be fixed is displayed in the tab title.
* Vulnerabilities grouped by dependency are shown, labeled by the current dependency version.
* Different versions are listed and can be expanded to show the full list of vulnerabilities remediated in that specific version.
* All vulnerabilities contain contextual information to help you prioritize the issues and start fixing them.

<figure><img src="https://2533899886-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MdwVZ6HOZriajCf5nXH%2Fuploads%2Fgit-blob-b63d66462392da34ad06752f3b2c7ae8971a83b1%2FOS-fix-vulns-issues-in-project.png?alt=media" alt=""><figcaption><p>Example of issues diplayed on the Issues tab for a Project</p></figcaption></figure>

## View fix advice

The **Fixes** tab also appears on the Project details page. On this page, Snyk offers you one of these solutions:

* An upgrade to the original package.
* Pinning a package, installing a package as a top-level dependency; that is, a specific version of an indirect dependency. This avoids having a direct dependency pull in a vulnerable version.
* A Snyk precision patch to fix the issue. If an upgrade to fix any of the vulnerabilities in the package is not currently available, Snyk offers patches to fix the issues

The summary area groups advice by package, and is displayed based on the best available fix. Advice in these summary lists includes these details for each package:

* All vulnerability names and severity details affecting that package
* The recommended fix, a link to the recommended fix for this package and its listed vulnerabilities: either the specific version to which to upgrade or the name of the patch.

<figure><img src="https://2533899886-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MdwVZ6HOZriajCf5nXH%2Fuploads%2Fgit-blob-4b6755138c8d631baaf289ca3c64e42625383983%2Fproject_details_fixes.png?alt=media" alt=""><figcaption><p>Upgradable issues tab</p></figcaption></figure>

You can also find additional advice and details further down on the Project details page:

* From the **Issues**, tab, a full description per vulnerability
* From the **Dependencies** tab, the entire tree of your Project dependencies, enabling you to clearly visualize affected paths

## Fixing vulnerabilities based on scan results using Snyk CLI

For information about fixing vulnerabilities, see [Fix vulnerabilities using the Snyk CLI](https://docs.snyk.io/developer-tools/snyk-cli/scan-and-maintain-projects-using-the-cli/fix-vulnerabilities-using-the-snyk-cli).

## Apply fixes

To apply fixes, you can:

* Click **Fix this vulnerability** on a specific [issue card](https://docs.snyk.io/snyk-platform-administration/snyk-projects/issue-card-information) on the relevant Project page.
* If you are using a [Source code integration](https://docs.snyk.io/developer-tools/scm-integrations/organization-level-integrations):
  * Click **Open a fix PR** on the Project page.
  * Use [automated pull requests](https://docs.snyk.io/scan-with-snyk/pull-requests/snyk-pull-or-merge-requests/create-automatic-prs-for-new-fixes-fix-prs) when new fixes become available that help you to fix a vulnerability.

{% hint style="info" %}
**Automatic Fix PRs**\
When a new fixable vulnerability is found, Snyk can attempt to open a new pull request automatically. See [Automated pull request creation for new fixes](https://docs.snyk.io/scan-with-snyk/pull-requests/snyk-pull-or-merge-requests/create-automatic-prs-for-new-fixes-fix-prs) for details.
{% endhint %}