r/javascript • u/iApexxx • 24d ago
We stopped installing npm packages less than a week old
https://brunoj.com/nothing-installs-at-our-company-until-its-a-week-old/
126
Upvotes
r/javascript • u/iApexxx • 24d ago
35
u/iApexxx 24d ago
Author here :) Did this at work after watching axios and TanStack get hijacked this year. Both were pulled within hours, so we just wait a week now. Curious what delay people here run, if any.
57
u/ouralarmclock 24d ago
Ya'll are updating your packages? Next you'll tell me you're updating your node versions too!
8
u/jvrevo 24d ago edited 24d ago
7 days, adding exceptions only if there are critical updates or similar and we try to verify they are safe when we do those as much as possible. This is for npm, Python, GitHub actions etc.
8
u/Due_Ad_2994 24d ago
We have been doing this for over a decade to much ridicule from colleagues who are now acting like they discovered stability lol
5
u/tsteuwer 24d ago
We decided on a 14 days. Typical things are caught within 48 hours but with AI it will start getting harder to spot so our enterprise started waiting a bit longer.
4
u/tidwell 24d ago
Yep, enforcing the same 7 day policy at work and now on my personal stuff. 0 day supply chain attacks are way way way too easy now. If you arenât doing a delay already itâs a matter of âwhenâ not âifâ youâre going to get hit with a supply chain attack.
2
u/ldn-ldn 24d ago
I do one month old plus cross reference security releases. For example, NodeJs 24.22.0 was updated to 24.22.1 on the release day instead of waiting.
2
u/ksskssptdpss 24d ago edited 24d ago
One week, weak testing
3
u/RICHUNCLEPENNYBAGS Mostly angular 1.x 24d ago
Most conservative JavaScript developers
1
u/jeremyStover 24d ago
This is the same rule I tell every org I work for. Mor importantly, no version less than 2 weeks old.
1
u/ohlaph 24d ago
I've been doing this for years.Â
1
u/Past_Squirrel_9568 23d ago
You should have been doing that for years.
1
u/Temporary_Job_3406 7d ago
Very important to keep packages up to date and secure, but always worth it to be critical and check the changes!
1
u/r-chris_38 5d ago
A week can catch quick takedowns; does it cover every update? Established packages can be compromised too.
0
u/WICKER-shadow 23d ago
Supply chain security: now with a mandatory aging process
0
u/Caved 24d ago
Be aware that in the current security landscape, 7 days is an eon. At most I'd go for 1 day. And that's for regular updates.
Critical security fixes need to go out ASAP, to the point we've started diffing those updates and running security checks on them ourselves to get them out fast enough.
We've seen exploits being actively used to attack us for CVEs announced less than an hour ago.