The following controls are in place to assist with dependency management of the web application:
npm
for dependency resolution and auditingIf your build fails due to a trivy alert, try to find the part of the application that has the vulnerable component.
In the root directory of that component (where the package.json
lives), run npm audit
.
This will advise on dependencies with known vulnerabilities and whether they can be fixed.
You can then run npm audit fix
which updates the package-lock.json
file.
To obtain the updated package run npm install
.
This should be done at the package level and the root level when possible to protect developers as well as production environments.
Threat Dragon: making threat modeling less threatening