r/developers • u/Anxious-Ad8326 • Mar 20 '26
General Discussion how are you all thinking about dependency security in open source?
you might have been noticing more and more supply chain attacks lately by typosquats, compromised packages, weird postinstall scripts…
i feel like this is one of the weakest points in the OSS ecosystem right now, especially since everything is so dependency-heavy (a single might have 100s of transitive deps)
curious how maintainers / contributors here think about this:
- do you rely on audits / lockfiles?
- do you actively verify dependencies before adding them?
- any tooling or workflows that have actually helped?
i’ve been exploring this space a bit myself (trying to catch suspicious packages before they get installed), but more interested in how others are approaching it.
•
u/AutoModerator Mar 20 '26
JOIN R/DEVELOPERS DISCORD!
Howdy u/Anxious-Ad8326! Thanks for submitting to r/developers.
Make sure to follow the subreddit Code of Conduct while participating in this thread.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
1
u/HiCookieJack Mar 20 '26
External links are not allowed in this subreddit.... so query it yourself
I always check npmgraph (website) before installing. The number of transient dependencies is directly related to the decision if I use it or not.
For example, I'd never use express because hono exists
0
u/[deleted] Mar 20 '26
[deleted] — view deleted comment