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:
@@ -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.
|
||||
It’s 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 project’s 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 can’t update to the secure version, Dependabot shares additional information to help you determine next steps. For example, you should consider how you’re 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 you’re able to accept the risk represented by the security vulnerability.
|
||||
|
||||
Reference in New Issue
Block a user