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
- median public bounty
- $1,919
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.
Seen in these reports12
-
$11,500 Critical -
$9,000 Critical -
$200 Low
Show 5 moreShow fewer
-
$5,000 High -
$2,500
-
$1,000 Medium -
$280 High -
Medium
Year by year
6 yearsWhat each year's disclosed reports show, newest first. A year with few reports says less.
| 2018 | 2 |
|---|---|
| 2019 | 4 |
| 2020 | 2 |
| 2021 | 9 |
| 2022 | 7 |
| 2023 | 2 |
| 2024 | 18 |
| 2025 | 13 |
| 2026 | 30 |
-
2026
Turned up less1
- The npm unclaimed name and install script checks seen in 2024 did not recur in the 2026 reports.
-
2024
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.
-
2023
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
-
Info
Earlier years3
Where it is found
7The features and places the reports found it in, most-reported first.
-
Public package registries where internal names are unclaimed.
Seen in 7 reports
-
Internal Node.js libraries referenced by name but not claimed on the public npm registry.
Seen in 5 reports
-
Project documentation and developer machines that install gems by name without pinning the internal source.
Seen in 3 reports
-
Build configuration files that reference dependency repositories over HTTP.
Seen in 2 reports
-
Build servers configured to resolve Python packages from the public registry.
Seen in 1 report
Technologies in these reports16
Root causes
8The mistakes in the code or configuration behind the reports.
-
Internal package names were left unclaimed on public registries.
Seen in 4 reports
-
Build configuration referenced dependency repositories over HTTP without integrity checks.
Seen in 2 reports
-
Documentation referenced a gem name without ensuring it was registered on the public gem server.
Seen in 2 reports
-
A test script contained a dangling reference to a decommissioned storage bucket name, combined with unsafe unzipping.
-
The package manager resolved dependencies from the public registry rather than only the internal one.
Seen in 1 report
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-
Seen in 2 reports
-
Seen in 2 reports
-
Seen in 1 report
Language ecosystem installers
of 3 ticked-
Seen in 3 reports
-
Seen in 2 reports
-
Seen in 1 report
Package registry name resolution
of 2 ticked-
Seen in 3 reports
Other
of 1 tickedMore contexts
Bypasses and variations
2How reports got past filters, encoders and other defences.
-
Publish a higher version number under the same package name so it shadows the internal package.
Seen in 1 report
-
Add a backdoor and increase the version number so the update is offered.
Seen in 1 report
Payouts
10 paidPublic 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.
| Severity | Reports | Paid | Median | Highest |
|---|---|---|---|---|
| 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 |
Highest-paid reports5
-
$11,500 Critical -
$9,000 Critical -
$5,000
-
$5,000 High -
$2,500
Typical fixes
6How programs fixed it, as the reports describe.
-
Register internal package names on public registries, or scope them so they cannot be shadowed.
Seen in 6 reports
-
Fetch dependencies over HTTPS and verify their checksums.
Seen in 2 reports
-
Configure the build server to resolve dependencies only from the internal registry.
Seen in 1 report
-
Restrict the default gem source to the internal repository.
Seen in 1 report
-
Do not rely on slug matching for plugins that are absent from the official directory.
Seen in 1 report
Guides and techniques
The best explainers, cheat sheets and technique posts on Dependency confusion and supply chain, from around the web.
-
Practical Package Security: The Unofficial GuideWiz guide on securing software supply chains and package dependencies against common attack paths.
Explainer wiz.io
-
Connecting the Dots: Securing the Overlooked Corners of the Software Development Lifecycle (SDLC) Supply ChainUnit 42 details supply chain risks across the SDLC and how to harden overlooked stages.
Methodology unit42.paloaltonetworks.com
-
7 Ways to achieve remote code executionSurveys seven routes to remote code execution, from file uploads and deserialisation to SSRF escalation and dependency confusion.
Explainer intigriti.com
-
Supply chain attacks are exploiting our assumptionsTrail of Bits discusses how supply chain attacks exploit flawed trust assumptions in software ecosystems.
Explainer blog.trailofbits.com
-
Hacking plugin ecosystems: A complete guideExamines plugin and add-on ecosystems, listing weak sandboxing, broken access controls, over-permissive APIs and supply chain risks to test.
Explainer intigriti.com
Keep learning
Where this lesson fits, and what to read next.
Learning paths
The whole class
Related techniques
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.