Back to all lessons
Awareness Lessons
4 hours ago

Transitive Dependencies: The Hidden Risk in Your Software Supply Chain

Written by AI from the linked story. Not reviewed by an editor. How this works

Transitive dependencies are packages that your project inherits indirectly through its direct dependencies, and they often receive little to no security review before entering a codebase. With 21.6% of npm packages carrying vulnerabilities in their dependency networks and 42% of those rated high severity, the attack surface is substantial and largely invisible to most development teams. The core problem is that developers focus on the packages they explicitly choose, while ignoring the deep chain of inherited code that may contain vulnerabilities or even malicious packages. Remediation is further complicated because developers cannot always directly update a transitive dependency without breaking other components, leaving teams exposed for extended periods. This matters because a single compromised or vulnerable transitive package can undermine an otherwise well-secured application.

Tactical Insight

Immediate actions

  • Run a full software composition analysis (SCA) scan on all existing projects to surface vulnerable transitive dependencies immediately.
  • Apply version override or resolution configurations in your package manager to pin vulnerable transitive packages to patched versions where possible.
  • Remove or replace direct dependencies that pull in high-severity vulnerable transitive packages with no available fix.

Long-term improvements

  • Maintain a Software Bill of Materials (SBOM) for every project so that all direct and transitive dependencies are tracked and auditable.
  • Integrate SCA tooling into CI/CD pipelines so that new vulnerabilities in the dependency tree are detected before code is merged or deployed.
  • Establish a dependency hygiene policy that limits the total number of dependencies and requires periodic review of the full dependency tree.

Detection measures

  • Subscribe to vulnerability feeds (e.g., GitHub Advisory Database, OSV) and configure automated alerts for newly disclosed CVEs affecting any package in your dependency graph.
  • Monitor package registries for known malicious packages using tools such as Socket.dev or similar supply-chain security platforms.
  • Audit dependency lock files in version control to detect unexpected or unauthorised changes to transitive package versions.

Back this up with a control

All controls and vendors

Training helps people spot this. These controls make the attack fail even on the day someone does not.