This kind of attack happens when we are providing full privileges, whether knowingly or unknowingly, to the application components, such as libraries, frameworks etc. In such cases, we are giving the opportunity to a hacker to perform a serious data breach.

Using components with the known vulnerabilities should be looked after, for the following reasons:

Prevention Mechanisms

For reference, find the link for more details.