Back to Devoured - June 08, 2026
DEVOURED
Every dependency you add is a supply chain attack waiting to happen

Every dependency you add is a supply chain attack waiting to happen

DevOps Ben Hoyt
Ben Hoyt argues that every dependency—including dev-only packages and automated updates—expands your supply chain attack surface and should be treated with extreme caution.
What: Recent supply chain incidents like the XZ backdoor and Trivy compromises highlight the danger of blind trust in automatic update pipelines and the hidden security risks of third-party libraries.
Why it matters: Security is shifting back to minimalism; the cost of maintaining small amounts of copied code is increasingly viewed as lower than the risk of compromised upstream dependencies.
Takeaway: Disable automatic dependency update bots like Dependabot and move to manual, vetted dependency management for your projects.
Original article

Every dependency you add is a supply chain attack waiting to happen

In my essay “The small web is beautiful”, I discussed how using fewer dependencies makes programs smaller. But it also makes them safer.

As we’ve seen recently, third-party libraries can and do get compromised. We saw this on a grand scale with the XZ backdoor, and we’ve seen it more recently with the Trivy incident and with LiteLLM being compromised (which was actually caused by Trivy).

The interesting thing about Trivy is that it’s not even a runtime dependency; it’s a dev dependency. But a compromise in a dev dependency can still steal credentials and take over projects.

The careful reader may note that my title is not quite accurate. It’s not every dependency you add that’s a problem; it’s every dependency you update. When you evaluated the dependency initially (and added its hash to your lockfile), you probably did your due diligence. But your project is using Dependabot, so the dependencies get updated automatically with little review.

You should probably turn off Dependabot. In my experience, we get more problems from automatic updates than we would by staying on the old versions until needed.

So, please think twice, or thrice, before adding a new dependency to your project. As the Go proverb says, “a little copying is better than a little dependency”.

I hope you enjoyed this LLM-free, hand-crafted article.

Explore all 68 articles in today's digest

Fresh dev news, AI-digested daily. Never miss a trend at devoured.fyi