Arguments that native fetch has been stable since Node 21, making axios unnecessary, though many legacy codebases and LLM-generated code still use it
← Back to Axios compromised on NPM – Malicious versions drop remote access trojan
While Node’s native `fetch` is now stable and theoretically makes Axios obsolete, many developers argue that the native API remains too "bare-bones," lacking essential built-in features like interceptors, automatic JSON handling, and robust upload progress tracking. This functional gap often forces teams to choose between the convenience of a mature library and the security of writing custom, "homegrown" wrappers that some view as an unnecessary reinvention of the wheel. Transitioning is further complicated by the library's deep entrenchment in legacy systems, transitive dependencies, and the training data of AI models that continue to propagate its usage. Ultimately, the debate centers on whether the "batteries-included" convenience of Axios justifies its use as a third-party dependency in an era where minimizing supply-chain attack surfaces is becoming a critical security priority.
75 comments tagged with this topic