CWE-1395OWASP A06:2021OWASP A08:2021CWE-1104

CWE-1395: Known Vulnerabilities in Dependencies

This weakness is shipping software that depends on third party components with publicly known vulnerabilities that already have assigned identifiers and fixes.

Also known as: Known Vulnerable Dependencies, Vulnerable Components, Outdated Vulnerable Libraries, CVE-Affected Dependencies

Risk

Known vulnerabilities come with published details and often public exploit code, so attackers can scan for and attack affected versions at scale within hours of disclosure. Because the flaw and its fix are documented, an exploited known-vulnerable dependency is both common and avoidable, which is why it anchors OWASP's vulnerable components category.

Definition

What it is

Every dependency you ship inherits that dependency's known flaws. When a vulnerability is disclosed and given an identifier, the affected versions become a published target, and anything that still uses them is exposed until it is upgraded. These issues are the easiest kind for attackers to find because the research is already done for them. The fix is to continuously inventory your dependencies, match them against vulnerability databases, and upgrade affected versions promptly.

Use-cases

How it shows up in real code

Disclosed flaw in a web framework

A widely used framework version is found to allow remote code execution and gets an identifier. Scanners worldwide begin probing for it, and any service still on the affected version is attacked within a day.

Transitive vulnerable package

A direct dependency looks fine, but it pulls in a transitive package with a known serialization flaw. The team never chose that package directly, so it stays vulnerable until a composition scan surfaces it.

Upgrade deferred too long

A team knows a dependency has a disclosed flaw but delays the upgrade because of other priorities. An attacker exploits the documented issue before the migration is scheduled.

Prototype ships with old versions

A quick prototype pins several libraries to versions that already carry known advisories. It is promoted to production without a scan, inheriting every disclosed flaw.

AI risk

Why AI-generated code has increased the exposure

  • Assistants reproduce specific dependency versions from training data, and those exact versions frequently already carry disclosed vulnerabilities.
  • Models do not consult current vulnerability databases, so a version they recommend may have advisories published after their training cutoff.
  • Generated package files are rarely scanned, so known-vulnerable versions enter the project without any advisory check.
  • Assistants pin to a version that was safe when training data was gathered but has since been superseded by a security release.
  • The volume of AI-generated code pulls in many transitive dependencies, multiplying the chance that one carries a known flaw.

Vibe coding

How vibe coding amplifies the risk

  • Vibe coders accept the exact version a snippet specifies without checking it against any advisory database.
  • Dependencies are installed unread, so disclosed flaws in the chosen versions go unnoticed.
  • Prototypes carrying known-vulnerable versions are promoted to production without a composition scan.
  • Without lockfile and update discipline, versions stay pinned long after fixes are published.
  • Rapid scaffolding adds dependencies faster than anyone checks whether their versions are already flagged.

Detection

How to find it

  • Run software composition analysis against your full dependency tree, including transitive packages, on every build.
  • Match installed versions against vulnerability databases and advisory feeds for your ecosystems.
  • Prioritize findings by exploitability and whether the vulnerable code path is actually reachable in your app.
  • Track time-to-remediate so disclosed flaws are not left unpatched past an agreed window.

Remediation

How to fix it

  • Upgrade affected dependencies to the first fixed version as soon as an advisory is published.
  • Enable automated dependency update tooling to open and test upgrade pull requests continuously.
  • Pin and commit lockfiles so scans reflect exactly what ships and upgrades are deliberate.
  • Where no fix exists yet, apply a vendor-supplied mitigation or remove the vulnerable code path.
  • Add a CI gate that fails the build on dependencies with known high-severity vulnerabilities above an agreed threshold.

Frequently asked questions

What is CWE-1395 (known vulnerabilities in dependencies)?
CWE-1395 is depending on third party components that have publicly known vulnerabilities. Once a flaw is disclosed and given an identifier, the affected versions become a documented target with often-public exploit code. Anything still using those versions stays exposed until it is upgraded.
How have AI assistants and vibe coding increased the risk?
Assistants reproduce exact versions from training data that may already carry disclosed flaws, and they do not consult current advisory databases. Vibe coders install these versions unread and promote prototypes to production without a composition scan. Many transitive packages come along, raising the odds that one is known-vulnerable.
How do I fix known vulnerabilities in dependencies?
Run software composition analysis across your full dependency tree on every build and upgrade affected packages to the first fixed version promptly. Enable automated update tooling, commit lockfiles, apply vendor mitigations where no fix exists, and add a CI gate that fails on known high-severity vulnerabilities.

Related weaknesses

Catch CWE-1395 before you ship

Tethlyn Audit scans your codebase and its git history for CWE-1395 and the rest of the dependency & supply chain risk class, then ranks each finding by real exploitability and data sensitivity.

See Tethlyn Audit