r/javascript • u/iApexxx • Nov 01 '26
We stopped installing npm packages less than a week old
https://brunoj.com/nothing-installs-at-our-company-until-its-a-week-old/
127
Upvotes
r/javascript • u/iApexxx • Nov 01 '26
35
u/iApexxx Nov 01 '26
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 Nov 01 '26
Ya'll are updating your packages? Next you'll tell me you're updating your node versions too!
8
u/jvrevo Nov 02 '26 edited Nov 02 '26
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 29d 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 Nov 02 '26
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 Nov 01 '26
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 Nov 02 '26
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 Nov 02 '26 edited Nov 02 '26
One week, weak testing
3
u/RICHUNCLEPENNYBAGS Mostly angular 1.x Nov 02 '26
Most conservative JavaScript developers
1
u/jeremyStover Nov 02 '26
This is the same rule I tell every org I work for. Mor importantly, no version less than 2 weeks old.
1
u/ohlaph Nov 02 '26
I've been doing this for years.Ā
1
u/Past_Squirrel_9568 28d ago
You should have been doing that for years.
1
u/Temporary_Job_3406 12d 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 10d ago
A week can catch quick takedowns; does it cover every update? Established packages can be compromised too.
0
u/WICKER-shadow 29d ago
Supply chain security: now with a mandatory aging process
0
u/Caved 29d 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.