Security foundations Threat, vulnerability, and risk 2 min read
Threat, vulnerability, and risk
One dependency ticket lists two apps running the same vulnerable library. One processes public uploads. The other only processes bundled files. Which app should you fix first?
-
Start with the weakness
The library has the same flaw in both apps. That flaw is the vulnerability. A threat is a potential cause of harm, such as someone submitting a file that makes the service unavailable. To judge the risk, ask whether that situation can arise in each app and how much disruption it would cause.
In short One vulnerability can lead to different risks.
-
Use the deployment to set priority
The upload app hands externally supplied files to the library during normal use. The second app uses files shipped with the application, so the same threat is less likely on that path. If the upload service matters to customers, that combination gives the team a reason to prioritize its fix.
In short Prioritize using likelihood and impact in context.
Where this example stops
This ticket compares one scenario. Check how the library is actually used, what protections already apply, and what an interruption would cost before locking in the priority.
Keep this
A vulnerability describes the weakness. Risk depends on the situation.
Ask how likely the harm is in this system and what it would cost.