I can't even imagine the scale of the impact with Axios being compromised, nearly every other project uses it for some reason instead of fetch (I never understood why). Also from the report: > Neither malicious version contains a single line of malicious code inside axios itself. Instead, both inject a fake dependency, plain-crypto-js@4.2.1, a package that is never imported anywhere in the axios source, whose only pu…
Axios compromised on NPM – Malicious versions drop remote access trojan
61–70 of 894 posts
Re: Axios compromised on NPM – Malicious versions drop remote access trojan
#62PSA: npm/bun/pnpm/uv now all support setting a minimum release age for packages. I also have `ignore-scripts=true` in my ~/.npmrc. Based on the analysis, that alone would have mitigated the vulnerability. bun and pnpm do not execute lifecycle scripts by default. Here's how to set global configs to set min release age to 7 days: ~/.config/uv/uv.toml exclude-newer = "7 days" ~/.npmrc min-release-age=7 # days ignore-scr…
If everyone avoids using packages released within the last 7 days, malicious code is more likely to remain dormant for 7 days.
Re: Axios compromised on NPM – Malicious versions drop remote access trojan
#63Re: Axios compromised on NPM – Malicious versions drop remote access trojan
#64PSA: npm/bun/pnpm/uv now all support setting a minimum release age for packages. I also have `ignore-scripts=true` in my ~/.npmrc. Based on the analysis, that alone would have mitigated the vulnerability. bun and pnpm do not execute lifecycle scripts by default. Here's how to set global configs to set min release age to 7 days: ~/.config/uv/uv.toml exclude-newer = "7 days" ~/.npmrc min-release-age=7 # days ignore-scr…
If everyone avoids using packages released within the last 7 days, malicious code is more likely to remain dormant for 7 days.
Re: Axios compromised on NPM – Malicious versions drop remote access trojan
#65PSA: npm/bun/pnpm/uv now all support setting a minimum release age for packages. I also have `ignore-scripts=true` in my ~/.npmrc. Based on the analysis, that alone would have mitigated the vulnerability. bun and pnpm do not execute lifecycle scripts by default. Here's how to set global configs to set min release age to 7 days: ~/.config/uv/uv.toml exclude-newer = "7 days" ~/.npmrc min-release-age=7 # days ignore-scr…
If everyone avoids using packages released within the last 7 days, malicious code is more likely to remain dormant for 7 days.
Re: Axios compromised on NPM – Malicious versions drop remote access trojan
#66PSA: npm/bun/pnpm/uv now all support setting a minimum release age for packages. I also have `ignore-scripts=true` in my ~/.npmrc. Based on the analysis, that alone would have mitigated the vulnerability. bun and pnpm do not execute lifecycle scripts by default. Here's how to set global configs to set min release age to 7 days: ~/.config/uv/uv.toml exclude-newer = "7 days" ~/.npmrc min-release-age=7 # days ignore-scr…
If everyone avoids using packages released within the last 7 days, malicious code is more likely to remain dormant for 7 days.
Re: Axios compromised on NPM – Malicious versions drop remote access trojan
#67Re: Axios compromised on NPM – Malicious versions drop remote access trojan
#68PSA: npm/bun/pnpm/uv now all support setting a minimum release age for packages. I also have `ignore-scripts=true` in my ~/.npmrc. Based on the analysis, that alone would have mitigated the vulnerability. bun and pnpm do not execute lifecycle scripts by default. Here's how to set global configs to set min release age to 7 days: ~/.config/uv/uv.toml exclude-newer = "7 days" ~/.npmrc min-release-age=7 # days ignore-scr…
If everyone avoids using packages released within the last 7 days, malicious code is more likely to remain dormant for 7 days.
Which will never even come close to happening, unless npm decides to make it the default, which they won't.
Re: Axios compromised on NPM – Malicious versions drop remote access trojan
#69Min release age sucks, but we’ve been here before. Email attachments used to just run wild too, then everyone added quarantine delays and file blocking and other frictions... and it eventually kinda/sorta worked. This does feel worse, though, with fewer chokepoints and execution as a natural part of the expectation. Edit: bottom line is installs are gonna get SOOO much more complicated. You can already see the soluti…
Re: Axios compromised on NPM – Malicious versions drop remote access trojan
#70Not to beat a dead horse but I see this again and again with dependencies. Each time I get more worried that the same will happen with rust. I understand the fat std library approach won’t work but I really still want a good solution where I can trust packages to be safe and high quality.