# Zero-day Vulnerability Mitigation Using Examples From Log4j source: https://developer.mastercard.com/blog/zero-day-vulnerability/index.md Authors: Derek Humphreys. With ever more complex applications made up of millions lines of code and hundreds of dependencies it is very likely that some version of a service or library that you rely on will have a vulnerability. Even relatively simple applications rely on many external libraries to provide the plumbing so the developers can focus on the business logic. You may be confident that your own code is locked down tight, but a vulnerability may be discovered in any one of the third party or open-source libraries your application relies on. This short video will offer advice on how to design your code and your build-pipelines to help you mitigate your exposure from a vulnerability and how to fix it quickly when a patch is made available. It uses the Log4j zero-day vulnerability from Dec 2021 as an example. It will briefly outline what Log4j is and in what way was it exploited. It will then walk you through a few code experiments that show exactly how dependent libraries can expose you to an external attacker. Finally, it will list ways a developer can help mitigate the damage of similar vulnerabilities and how to adjust your build-pipelines to prevent the spread of compromised modules and reduce the time it takes to locate vulnerable libraries and patch them. Resources You can download the Log4j experiments from GitHub here.