axios Supply Chain Attack (March 2026) + Complete CVE History
Last updated: April 1, 2026 · Data: OSV Database
axios is the most popular HTTP client for JavaScript. It has had several CVEs across its version history, mostly related to SSRF, credential exposure on redirect, and prototype pollution.
CVE history — all 4 known vulnerabilities
🔴 1 CVE on CISA KEV — actively exploited in real attacks
| CVE ID | Year | Severity | Description | Fix |
|---|---|---|---|---|
| CVE-2020-28168 | 2020 | MEDIUM | SSRF via server-side request with crafted URL | Fixed in 0.21.1 |
| CVE-2021-3749 | 2021 | HIGH | Regular expression DoS in axios headers | Fixed in 0.21.2 |
| CVE-2022-1214 | 2022 | MEDIUM | Exposure of confidential data via logs in debug mode | Fixed in 0.26.0 |
| CVE-2023-45857 | 2023 | 🔴HIGH | SSRF via protocol-relative URL — CISA KEV | Fixed in 1.6.0 |
Current safe version
The latest safe version addresses all 4 known CVEs listed above.
Before and after
Vulnerable:
"axios": "0.21.1"
Fixed:
"axios": "1.7.4"
Then run: npm install
Which packages pull in axios?
axios appears as a transitive dependency in many popular frameworks and SDKs:
| Package | Downloads | Why |
|---|---|---|
@octokit/rest | varies | GitHub API client — uses axios for HTTP |
firebase | varies | Some Firebase packages use axios internally |
stripe | varies | Stripe SDK HTTP requests |
twilio | varies | Twilio SDK — uses axios for API calls |
If axios is transitive and you installed axios@1.14.1 between March 31 00:21–03:30 UTC, assume compromise. Force safe version:
axios 0.x to 1.x breaking changes
axios 1.0 introduced several breaking changes from the 0.x series. These are the changes that affect most projects migrating from 0.x to 1.x:
| Change | 0.x | 1.x |
|---|---|---|
| TypeScript types | Separate @types/axios | Built-in — remove @tes/axios |
| Error handling | axios.isAxiosError() untyped | Fully typed AxiosError |
| FormData | Manual serialization | Automatic serialization |
| ESM support | CommonJS only | ESM + CommonJS dual package |
# Remove old types package if present npm uninstall @types/axios # Install safe axios version npm install axios@1.7.4 # Verify npm list axios
Paste your manifest — see your exact installed version against this full CVE list.
Scan with PackageFix →Free · No signup · No CLI · Runs in your browser