Dependency & Supply Chain Risk
Dependency & Supply Chain Risk
Modern applications are mostly third-party code, so their risk is largely inherited. Known vulnerabilities in dependencies are the easiest findings to exploit because they are public and indexed. Beyond known CVEs, the supply chain itself can be attacked through confusion and typosquatting, where a malicious package takes the place of an intended one.
Known Vulnerabilities in Dependencies
CWE-1395OWASP A06:2021- What it is
- Direct or transitive packages have published CVEs with known exploits.
- Why it matters
- Attackers use public exploit code against a known-weak version.
- How to check
- Track dependencies against vulnerability databases and upgrade to fixed versions.
Outdated & Unmaintained Packages
CWE-1104- What it is
- Dependencies are end-of-life or no longer maintained, so fixes will never arrive.
- Why it matters
- Accumulating, unpatchable risk over time.
- How to check
- Monitor maintenance status and plan migrations off abandoned packages.
Dependency Confusion
CWE-427- What it is
- An internal package name can be claimed on a public registry, so a build may pull the attacker's package instead.
- Why it matters
- Malicious code runs inside your build or application.
- How to check
- Scope internal packages and pin registries so internal names cannot be shadowed publicly.
Malicious & Typosquatted Packages
CWE-506- What it is
- A dependency, or its install script, is a look-alike of a legitimate package or contains hidden malicious behavior.
- Why it matters
- Supply-chain compromise at install or build time.
- How to check
- Verify package names and provenance, and review install scripts.
In-depth guides
Uncontrolled Search Path Element
Dependency confusion happens when a package manager resolves an internal package name to a malicious public package because the search path is not controlled.
CWE-506Embedded Malicious Code
Malicious and typosquatted packages carry hidden harmful code that runs when you install or import a dependency you did not mean to trust.
CWE-1104Use of Unmaintained Third Party Components
This weakness is relying on third party components that are no longer maintained or updated, so known flaws in them are never fixed.
CWE-1395Dependency on Vulnerable Third-Party Component
This weakness is shipping software that depends on third party components with publicly known vulnerabilities that already have assigned identifiers and fixes.
Related coverage
Check your code for dependency & supply chain risk
Tethlyn Audit checks your codebase for dependency & supply chain risk and more, then ranks each finding by real exploitability and data sensitivity.