Video: Update Your Vulnerable NPM Packages

Erich Smith
Mar 5th, 2021

In this "Bite-size Security Showcase", Erich Smith walks through a common developer security scenario, dealing with vulnerable third party dependencies. Specifically, Erich takes a look at NPM packages.

Staying updated with NPM dependencies requires automation. In this video example, Erich examines a situation where automated PRs are not available, but the build needs to be quickly remediated. He works through how to update the vulnerable packages on the command-line using YARN, starting with a local sanity check, and then moves through updating to the latest version of the packages containing security fixes. He runs a quick "git dif" against the package json to see the impact of the changes.

A deep transitive dependency is then explored, including the use of "npx-yarn-audit-fix", a conversion wrapper around the npm-audit-fix process. 

This all leads to a security best practice: clean as you go. Don't wait for your project to fail in CI/CD due to dependency vulnerabilities. Work with your team to process your Dependabot PRs in a timely fashion, and make liberal use of YARN audit throughout your day-to-day development cycle. Finally, update packages when it's convenient for you, not under stress. 

 

 

 

Other Resources:

Other articles

AI agents and third-party models are expanding your attack surface. Here's what's changing in supply chain security and machine identity — and what closes the gap.

John Le
Sep 14th, 2026
  • CAASM
  • SBOM
  • AI ASM
  • IAM
The Top CAASM Tools in 2026

Here's what actually matters when you evaluate a CAASM platform, plus how the top vendors compare in 2026.

John Le
Sep 3rd, 2026
  • CAASM
A design representing Continuous Controls Monitoring

A failed control is a security event, not a compliance footnote. See how Continuous Controls Monitoring (CCM) treats every control test as a security detection.

John Le
Sep 1st, 2026
  • CCM
  • Compliance

Tools are silent.
Risks aren't.

See your full security program as one connected picture in a 30-minute demo tailored to your environment.