Integrate security scanning into your early development process...
Automated tools to check npm and composer packages for known vulnerabilities.