Skip to content

In-depth lesson · technique

Dependency confusion and supply chain

What every disclosed Dependency confusion and supply chain report in the index teaches, put together: how it works, how it changed year by year, where it turns up, and things to try. Every point shows the reports it is seen in.

reports cited in this lesson
49

Learning Cloud and infrastructure, step 7

Overview

What it is and why programs pay for it.

Dependency confusion is a supply chain weakness where a build or install process resolves a dependency name from a public registry even though the project intends to use an internal, private package of the same name. If the internal name is unclaimed on the public registry, an outsider can register it and have their code pulled into the build. The evidence shows this pattern across npm, gems, Python, Composer, Puppet, pods and container registries, and in CI pipelines and workflows that resolve dependencies from sources an outsider can publish to.

Programs care because the result is remote code execution inside their build and deployment systems, not just a bad dependency. A successful claim can run install scripts during a build, shadow an internal package with a higher version, or inject code into release artefacts. The reports here tie the weakness to pipelines, developer machines and build servers, which often hold tokens and access to private repositories, so the impact usually extends beyond the single package.

It turns up most often where internal names are left unclaimed on public registries, where package managers are allowed to fall back to the public source, and where documentation or configuration names a package without pinning the internal source. Related variants include renamed or abandoned repository owners, plugins matched by slug, dependencies fetched over plain HTTP, and workflows triggered by untrusted input. The evidence covers Node.js libraries, gems, Python packages, Composer commands, Puppet modules, pods and private container registries.

Year by year

6 years

What each year's disclosed reports show, newest first. A year with few reports says less.

Reports per yearPeak 2026: 30
Reports per year
20182
20194
20202
20219
20227
20232
202418
202513
202630
  1. 2026

    30 reports

    Turned up less1

    • The npm unclaimed name and install script checks seen in 2024 did not recur in the 2026 reports.
  2. 2024

    18 reports

    Kept working1

    • They checked whether a named npm dependency was unclaimed on the public registry and whether its install script ran during a build.

    Turned up less1

    • The gem name checking from README instructions seen in 2022 did not recur in the 2024 reports.
  3. 2023

    2 reports · median $500

    Kept working1

    • They checked whether a project referenced an npm package name unclaimed on the public registry.

    Turned up less1

    • The gem name checking from README instructions seen in 2022 did not recur in the 2023 reports.

    Reports from 20231

Every point, year by year

Where it is found

7

The features and places the reports found it in, most-reported first.

  1. Public package registries where internal names are unclaimed.

    Seen in 7 reports
  2. Internal Node.js libraries referenced by name but not claimed on the public npm registry.

    Seen in 5 reports
  3. Project documentation and developer machines that install gems by name without pinning the internal source.

    Seen in 3 reports
  4. Build configuration files that reference dependency repositories over HTTP.

    Seen in 2 reports
  5. Build servers configured to resolve Python packages from the public registry.

    Seen in 1 report
View all 7

Root causes

8

The mistakes in the code or configuration behind the reports.

  1. Internal package names were left unclaimed on public registries.

    Seen in 4 reports
  2. Build configuration referenced dependency repositories over HTTP without integrity checks.

    Seen in 2 reports
  3. Documentation referenced a gem name without ensuring it was registered on the public gem server.

    Seen in 2 reports
  4. A test script contained a dangling reference to a decommissioned storage bucket name, combined with unsafe unzipping.

    Seen in 1 report
  5. The package manager resolved dependencies from the public registry rather than only the internal one.

    Seen in 1 report
View all 8

Things to try

The most-reported tests in the largest contexts. Tick what you have tried; ticks stay in this browser and carry over to the full checklist. Test only what a program's scope allows.

ticked in this lesson

Build pipeline dependency sources

of 3 ticked

Language ecosystem installers

of 3 ticked

Package registry name resolution

of 2 ticked

Other

of 1 ticked
View more things to try

Bypasses and variations

2

How reports got past filters, encoders and other defences.

  1. Publish a higher version number under the same package name so it shadows the internal package.

    Seen in 1 report
  2. Add a backdoor and increase the version number so the update is offered.

    Seen in 1 report

Payouts

10 paid

Public bounties in US dollars, from the data. 10 of 106 reports show an amount.

a quarter paid up to
$625
median
$1,919
three quarters paid up to
$5,000
highest
$12k

One in ten paid reports was paid $9,250 or more.

SeverityReportsPaidMedianHighest
Critical 9 2 $10k $12k
High 5 2 $2,640 $5,000
Medium 3 1 $1,000 $1,000
Low 2 1 $200 $200
Informational 2 0 None paid None
Unrated 85 4 $1,919 $5,000

Typical fixes

6

How programs fixed it, as the reports describe.

  1. Register internal package names on public registries, or scope them so they cannot be shadowed.

    Seen in 6 reports
  2. Fetch dependencies over HTTPS and verify their checksums.

    Seen in 2 reports
  3. Configure the build server to resolve dependencies only from the internal registry.

    Seen in 1 report
  4. Restrict the default gem source to the internal repository.

    Seen in 1 report
  5. Do not rely on slug matching for plugins that are absent from the official directory.

    Seen in 1 report
View all 6

Guides and techniques

The best explainers, cheat sheets and technique posts on Dependency confusion and supply chain, from around the web.

Keep learning

Where this lesson fits, and what to read next.

How this is made: our model read every listed Dependency confusion and supply chain report in the index (our own summary where we have one, otherwise the title and the platform's label), listed the patterns, and merged them. Each point was kept only if the reports it cites exist, are listed and belong here; payouts are computed from the data, not written by the model. Read the originals before relying on a point. Generated 26 Nov 2026 from 56 reports. All Dependency confusion and supply chain reports.