Menu

Dependency confusion is a config bug: what dep-vet 0.17.0 checks
πŸ“°

Dependency confusion is a config bug: what dep-vet 0.17.0 checks

DEV Community: rustΒ·yassine nassihΒ·6 days ago
#Ny10oahL
#devtorust#devto#dev#registry#name
Long article (763 words) β€” no AI summary yet.
Reading 0:00
15s threshold

Most supply-chain tools assume every package comes from the public registry. That assumption is wrong for any company with an internal registry, and it is exactly where dependency confusion lives: a package named @acme/billing that nobody published publicly, and someone else eventually does.

dep-vet 0.17.0 reads private npm and PyPI registries instead of pretending they don't exist, and it reports the confusion condition rather than leaving it to a wiki page.

The check

When a name is routed to a private registry, dep-vet asks the public registry once whether that name exists there:

HIGH when the public copy is the same or a newer version β€” the copy an unpinned resolver would install

WARN when only older versions exist β€” the next public bump would shadow the private one

INFO when the probe fails β€” never silence

The probe is unauthenticated, asks the public registry directly (never a mirror that configuration could point somewhere else), and its answer is never cached.…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.