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

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.

See Tethlyn Audit