by atom_arranger · 8y ago · 0 comments
- "event-stream": "1.8.4"
+ "event-stream": "1.8.5"
Looks completely innocuous, a patch version bump, but it can technically be a completely different package, it may not even have any relation to any open sourced code, people can push anything to npm.
People don't check in their dependencies. event-stream is hosted on npm and downloaded by people who download packages depending on it automatically. Given this situation there is no diff of it to view.
You have to weigh the risk of going out of business because you didn't deliver value fast enough vs. the risk of having a security incident.
In the Node ecosystem there are SAAS products (https://greenkeeper.io/) that will automatically update your dependencies, run your tests, and merge in the updates (that line change I showed is an example of what it would look like) if the tests pass. That shows you how much thought Node/JS developers put into upgrading their dependencies.
The event-stream update would be done automatically in this instance because the code still worked, although it was compromised.