1
0
mirror of synced 2025-12-30 03:01:36 -05:00

Update assessing-risk-dependabot-alerts.md

This section is a great idea!
I've rewritten it to emphasize a couple things: I really want to make sure we promote best security practices here, like keeping your dependencies up to date.  I've adjusted this section to call out Dependabot updates, and also to emphasize more how developers can interact with Dependabot's vulnerable calls feature in order to assess risk and determine next steps.
This commit is contained in:
Erin Havens
2022-04-13 12:24:21 -07:00
committed by GitHub
parent 792f37a9db
commit 6b03deadfc

View File

@@ -1,5 +1,7 @@
<!--When making updates to this text, remember to keep the text general. It is used in the end-to-end Supply chain guides -->
When you discover you are using a vulnerable dependency, for example, a library or a framework, you must assess your project's level of exposure and determine what action to take. Vulnerabilities are usually reported with a severity score to show how severe their impact could be. The severity score is a useful guide but cannot tell you the full impact of the vulnerability on your code.
Its important to ensure that all of your dependencies are clean of any security weaknesses. When Dependabot discovers vulnerabilities in your dependencies, you should assess your projects level of exposure and determine what remediation steps to take to secure your application.
To assess the impact of a vulnerability on your code, you also need to consider how you use the library and determine how much risk that actually poses to your system. Maybe the vulnerability is part of a feature that you don't use, and you can update the affected library and continue with your normal release cycle. Or maybe your code is badly exposed to risk, and you need to update the affected library and ship an updated build right away. This decision depends on how you're using the library in your system, and is a decision that only you have the knowledge to make.
If a patched version is available, you can generate a Dependabot pull request to update this dependency directly from a Dependabot alert. If you have Dependabot security updates enabled, the linked pull request will be shown in the Dependabot alert.
In cases where a patched version is not available, or you cant update to the secure version, Dependabot shares additional information to help you determine next steps. For example, you should consider how youre using any impacted functions from the dependency, which are surfaced for supported languages in Dependabot alerts. This information can help you further assess your risk level, and determine workarounds or if youre able to accept the risk represented by the security vulnerability.