News for hackers. Stuff that matters.
Re:Axios Compromised on NPM – Malicious Versions Drop Remote... by augusto-moura on Tuesday March 31, 2026 @09:43AM (#47587299)
Hm, I don't think axios would do much better here. `fetch` is the official replacement for axios. If both are flawed that's another topic
Re:Axios Compromised on NPM – Malicious Versions Drop Remote... by cyco130 on Tuesday March 31, 2026 @11:24AM (#47588736)
Axios has maxContentLength and maxBodyLength options. I would probably go with undici nowadays though (it also has maxResponseSize).
Re:Axios Compromised on NPM – Malicious Versions Drop Remote... by nailer on Tuesday March 31, 2026 @11:14AM (#47588559)
> `fetch` is the official replacement for axios.

No. Axios is still maintained. They have not deprecated the project in favor of fetch.

Re:Axios Compromised on NPM – Malicious Versions Drop Remote... by augusto-moura on Tuesday March 31, 2026 @12:21PM (#47589726)
I'm not saying that axios is unmaintained, I'm saying that if you want something like axios from the standard lib, fetch is the closest thing you get to official
Re:Axios Compromised on NPM – Malicious Versions Drop Remote... by nailer on Tuesday March 31, 2026 @04:59PM (#47593398)
Sure but Axios determine what the official replacement for Axios is.
Re:Axios Compromised on NPM – Malicious Versions Drop Remote... by kube-system on Tuesday March 31, 2026 @02:45PM (#47591719)
It's not deprecated, it's obsoleted.