CVE-2026-42038: Medium Severity Flaw Detected in Axios npm Packages 0.25.0 and 0.21.4
A medium-severity vulnerability, tracked as CVE-2026-42038, has been identified in two widely-used versions of Axios, the popular promise-based HTTP client library for browser and Node.js environments. Security scanning detected the flaw in axios-0.25.0.tgz and axios-0.21.4.tgz, both of which remain embedded in active project dependencies. The vulnerable packages were located within standard npm dependency structures at /node_modules/axios/package.json, suggesting that any project declaring these versions in their package.json configurations is currently exposed.
Axios serves as a fundamental building block across the JavaScript ecosystem, powering HTTP request handling in countless web applications, APIs, and server-side services. The detection of a medium-severity CVE in two older but still-commonly-referenced versions raises concerns about supply chain exposure, as developers frequently pin or continue operating with legacy library versions. The library home pages point to the official npm registry entries for both affected versions, indicating these are the canonical distribution points.
Organizations relying on Axios for frontend or backend HTTP communication should audit their dependency trees for axios-0.25.0 and axios-0.21.4 usage and assess upgrade paths to patched releases. The medium severity classification signals that exploitation is feasible and could yield meaningful impact, though not at the critical level associated with remote code execution or full system compromise. Security teams are advised to monitor for subsequent patches and CVE detail releases that will clarify the exact attack vector and remediation requirements.