Axios 1.21 Security Fixes for Proxy Redirect and DoS Bugs
Seventeen Axios advisories published in late November 2026, which ones need attacker input to matter, and why upgrading to 1.21 or 0.35 is the fix.

Between 24 and 28 November 2026 the Axios maintainers published seventeen security advisories on the Axios repository: eight High, eight Medium and one Low. None is a remote code execution bug, and none can be triggered by installing the package. Each one needs your code to pass attacker-influenced input into a specific Axios feature, or to sit behind a specific proxy setup. The fixes had already shipped: Axios 1.21.0 on 26 October 2026 and 0.35.0 on 2 November 2026 contain all but one of them. So the work is mostly an upgrade, plus a scheme check that Axios itself says is your job.
Find every copy of Axios in the tree
Axios is a transitive dependency of a long list of SDKs, so the version in your own package.json is rarely the only one. Ask npm for every copy:
npm ls axios --allA typical service with one SDK that pins an older range shows two copies. The project and package names here will be your own:
[email protected] /srv/billing-service
├── [email protected]
└─┬ @example/[email protected]
└── [email protected]Both copies are in range for most of the advisories. Upgrading the direct dependency fixes the first line only. For the second, either upgrade the SDK to a release that accepts Axios 1.21, or force the resolution with an override until it does:
{
"dependencies": {
"axios": "^1.21.1"
},
"overrides": {
"axios": "^1.21.1"
}
}After npm install, the same npm ls axios --all should show one version, deduplicated:
[email protected] /srv/billing-service
├── [email protected]
└─┬ @example/[email protected]
└── [email protected] dedupedAn override is a promise that the SDK works with a newer minor. Axios 1.x follows semver, so a minor bump is the safe kind, but run the SDK's own calls in your tests before you ship it.
The advisories that leak data or credentials
These matter most because their impact is confidentiality, not availability.
| Advisory | Severity | Affected | Fixed | What leaks |
|---|---|---|---|---|
| GHSA-96x6-9jq2-jqcp | High | 0.25.0 to 0.34.x, 1.0.0 to 1.20.x | 0.35.0, 1.21.0 | Authorization and Cookie sent to a subdomain on redirect |
| GHSA-wwgw-vggh-5g74 | High | 0.17.0 to 0.34.x, 1.0.0 to 1.20.x | 0.35.0, 1.21.0 | A proxy: false request routed through Node's environment proxy |
| GHSA-g987-ghpm-49w8 | High | 0.19.0 to 0.34.x, 1.0.0 to 1.20.x | 0.35.0, 1.21.0 | NO_PROXY ignored for IDN and expanded IPv6 hosts |
| GHSA-37m8-qm4g-gxcg | High | 0.31.0 to 0.34.x | 0.35.0 | npm_config_no_proxy ignored while npm_config_http_proxy is honored |
| GHSA-hff3-76v2-562j | Medium | 1.16.1 to 1.20.x | 1.21.0 | A NO_PROXY redirect target reusing the previous hop's proxy tunnel |
| GHSA-v2qg-6486-r9rf | Low | 1.7.8 to 1.20.x | 1.21.0 | XSRF token attached when a <base> element points cross-origin |
The redirect one, GHSA-96x6-9jq2-jqcp, is the easiest to fall into. Axios documents that it strips credentials on cross-host redirects, but on Node.js it hands redirects to follow-redirects, which treats a strict subdomain as credential-safe. If api.example.test can be made to redirect to uploads.api.example.test, and someone else controls or can observe that subdomain, your bearer token goes with the request. The advisory lists the cases that are not affected: maxRedirects: 0, sibling or unrelated domains, HTTPS to HTTP downgrades, and the browser XHR and fetch adapters.
The proxy: false bypass, GHSA-wwgw-vggh-5g74, is new because Node.js is new. Node.js 22.21 and 24.5 added native environment proxy support through NODE_USE_ENV_PROXY=1 or --use-env-proxy. When Axios was told proxy: false and no custom agent was set, it left options.agent undefined, Node.js fell back to its global agent, and that agent honored the environment proxy anyway. For plain HTTP the proxy then sees the URL, headers, cookies and body. If you turned on native proxy support in a service that also uses Axios, this is the advisory to read in full.
The advisories that crash or stall a process
The other eleven are denial of service or resource limits that do not hold. All of them need attacker-shaped input to reach a particular serializer or adapter path.
GHSA-hxh7-q3v4-r388 (High): a top-level key ending in
[]with a huge numericlengthmakestoFormDataallocate an array of that size before the request leaves. It coverspostForm, objectparams, and URL-encoded bodies.GHSA-2m9r-3c99-8x45 (High): a FormData field name such as
a[1000000]makes JSON conversion build a sparse array of that length and stringify it.GHSA-r7r7-378m-mqq3 (High): a
maxRatebelow 2 bytes per second spinsprocess.nextTick()forever on any chunk of 101 bytes or more. The advisory calls such rates unusual, and they are.GHSA-6746-99mh-37fc (High): with a polluted
Object.prototype.unsubscribe, fetch signal cleanup throws an uncaughtTypeError.GHSA-mw39-9473-h7mr, GHSA-w7cm-vp9h-3qp4, GHSA-rxwm-8xgm-85qq (Medium): deep
paramsthat overflow the stack before a Promise exists, and two more prototype-pollution gadgets onfetchandallowAbsoluteUrls.GHSA-v49q-r8gq-mv24, GHSA-pf25-585g-9hp2, GHSA-h3x3-jpp4-wjp8, GHSA-5gxj-9r28-x6r4 (Medium):
maxContentLengthandmaxBodyLengththat can be exceeded with crafteddata:URLs, FormData in the fetch adapter, or string streams.
Three of these are gadgets. They do nothing unless some other bug in your process has already polluted Object.prototype. That does not make them harmless, because prototype pollution bugs in parsers and merge helpers turn up regularly, but it does tell you where to look first if you are triaging rather than patching.
The one without a fix
GHSA-5gxj-9r28-x6r4 is still open. In 1.16.0 and later, the fetch adapter checks for data: URLs with a case-sensitive startsWith('data:'), so DATA: and some data:// forms skip the upfront maxContentLength check and the body is materialized before Axios rejects it. Version 1.21.0 closed part of it and, per the advisory, reopened the lowercase data:// form. At publication the advisory states "No fixed release exists yet", and the 1.22.0 release on 2 December 2026 does not list it.
The advisory is also clear about whose job the defense is: "Applications should validate permitted URL schemes themselves." If any URL you pass to Axios comes from a user, a webhook configuration or a database row someone else can write, check the scheme before the request:
const ALLOWED = new Set(['https:', 'http:']);
export function assertHttpUrl(input) {
const url = new URL(input);
if (!ALLOWED.has(url.protocol)) {
throw new Error(`blocked scheme ${url.protocol}`);
}
return url.href;
}
for (const candidate of [
'https://api.example.test/v1',
'DATA:text/plain,hello',
'data:text/plain,hi',
]) {
try {
console.log('ok', assertHttpUrl(candidate));
} catch (err) {
console.log(err.message);
}
}The WHATWG URL parser lowercases the scheme, so the uppercase variant is caught by the same comparison:
ok https://api.example.test/v1
blocked scheme data:
blocked scheme data:This check is worth keeping after the fix lands. It also stops file: and other schemes from reaching adapters that might one day support them.
Upgrade order
Upgrade services that send credentials through Axios on Node.js first, especially ones that follow redirects or run behind an environment proxy. Then services that forward user-shaped objects into params, postForm or FormData. Then everything else, including browser bundles, which are affected by the serializer and XSRF issues but not by the Node.js redirect and proxy ones. On the 1.x line, 1.21.1 is the release to target; on 0.x, 0.35.0 or the newer 0.36.0. Neither line got a CVE id for these advisories at publication, so a scanner that keys on CVE ids may stay quiet. Check by version.


