Axios 1.21.0 and 0.35.0 fix five flaws: CVE-2026-139876 crash, three DoS bugs and a cross-subdomain credential leak
Matéria consolidada. Reúne 2 matérias que o Tifon tinha publicado separadamente sobre a mesma história. A IA reescreveu o relatório com o que as 2 fontes trouxeram em 03/12/2026 12:07; os links antigos trazem para cá.
Fontes: gbhackers.com ↗ securityonline.info ↗
Axios maintainers fixed several vulnerabilities in the Node.js HTTP client, shipped in 1.21.0 and, for the 0.x branch, 0.35.0. The flaws are a credential leak on redirects to subdomains, a crash tied to prototype pollution (CVE-2026-139876, GHSA-6746-99mh-37fc) and three denial-of-service bugs. The count differs between sources: securityonline.info reports five flaws with a fix date of November 28, 2026, while gbhackers.com reports four high-severity flaws. The securityonline.info article says each advisory ships a public PoC, and that GitHub, VulnCheck and Upwind confirm no exploitation in the wild. gbhackers.com gives no exploitation status. Both reports are secondary and were not checked against vendor advisories, fix PRs or CVSS vectors. Every flaw has prerequisites that limit real-world risk.
Entenda a falha
A vulnerabilidade
The CVE-listed flaw is CVE-2026-139876 (GHSA-6746-99mh-37fc) in the Axios fetch adapter. Its AbortSignal cleanup reads unsubscribe, and if Object.prototype.unsubscribe was polluted with a non-function value, Node.js crashes with an uncaught TypeError. The attacker needs a separate prototype-pollution bug in the app, and the result is denial of service. Affected: 1.7.6 to 1.20.0, fixed in 1.21.0. Four other flaws were fixed too: GHSA-96x6-9jq2-jqcp (Authorization and Cookie headers kept on redirects to a subdomain, 0.25.0-0.34.0 and 1.x before 1.21.0), and the DoS bugs GHSA-r7r7-378m-mqq3 (low maxRate), GHSA-hxh7-q3v4-r388 (multipart keys ending in [], 0.27.0+) and GHSA-2m9r-3c99-8x45 (FormData-to-JSON, 0.28.0+). The fixes are in 1.21.0 and 0.35.0. gbhackers.com counts only four flaws, and the CVSS 4.0 8.2 comes only from securityonline.info.
Como funciona
For CVE-2026-139876, an app using the Axios fetch adapter attaches an AbortSignal to a request and later runs cleanup for that signal. During cleanup Axios reads the unsubscribe property on the signal. Normally it is absent or a function. If another bug has already polluted Object.prototype.unsubscribe, the read returns the inherited value, Axios treats it as a method, and the resulting uncaught TypeError escapes the request handler and terminates the Node.js process. The default Node.js HTTP adapter and the browser XHR adapter do not use this cleanup logic.
Por que é vulnerável
The cleanup code trusts a property read on the signal without checking that it is a real callable method, so inherited, polluted values are accepted. gbhackers.com says the advisory does not establish that Axios alone allows arbitrary code execution. The other flaws share a pattern of missing validation: redirects keep credentials across hosts because a dependency treats subdomains as safe, maxRate allows a fractional cap, and the serializer trusts a declared length. Per securityonline.info, 1.21.0 guards prototype reads, strips credentials on cross-origin redirects and caps array-like inputs.
Onde está
The articles name the fetch adapter's AbortSignal cleanup (the unsubscribe read) and advisory GHSA-6746-99mh-37fc; no file, function or commit is given.
Como foi descoberta
securityonline.info credits Pranjali Thakur at depthfirst with the three DoS bugs (maxRate, multipart [] keys and FormData-to-JSON). The articles do not say who found CVE-2026-139876 or the credential leak; securityonline.info only says the CVE ID came via VulnCheck and Tenable. The fixes were released on November 28, 2026 with GitHub advisories. According to securityonline.info, GitHub, VulnCheck and Upwind report no exploitation in the wild; gbhackers.com is silent on this.
PoC pública
Only securityonline.info says each GitHub advisory ships full bug notes and a public PoC; gbhackers.com says nothing about it. The article does not say how mature the PoCs are and gives no direct link, so none is listed. No exploitation in the wild is confirmed, but public PoCs make patching to 1.21.0 or 0.35.0 urgent.
Explicação gerada por IA a partir da matéria e dos artigos, em 03/12/2026 12:23.
Detalhes técnicos
- GHSA-96x6-9jq2-jqcp (credential leak): the Node.js HTTP adapter uses follow-redirects. A redirect from a trusted host to a subdomain keeps the Authorization and Cookie headers, so an attacker controlling a subdomain can steal bearer tokens or API keys (securityonline.info). Affected: 0.25.0 to 0.34.0 and 1.x before 1.21.0 (securityonline.info). The attacker must be able to induce the redirect and control or observe the destination. The redirect must keep the same effective port and must not downgrade from HTTPS to HTTP. Only credentials the caller sets in Authorization or Cookie are at risk (gbhackers.com).
- CVE-2026-139876 / GHSA-6746-99mh-37fc (fetch adapter crash): the signal cleanup of the fetch adapter reads
unsubscribeon an AbortSignal. IfObject.prototype.unsubscribeis polluted with a non-function value, an uncaught TypeError crashes Node.js. It needs a separate prototype-pollution bug. Affected: 1.7.6 to 1.20.0 (securityonline.info, gbhackers.com). Switching adapters avoids the crash but does not fix the underlying prototype pollution (gbhackers.com). - GHSA-r7r7-378m-mqq3 (bandwidth limiter hang): a Node.js
maxRatebelow 2 bytes per second yields a fractional byte cap. A 101-byte chunk then loops through process.nextTick() forever and starves the event loop (securityonline.info). Recovery requires an external restart (gbhackers.com). - GHSA-hxh7-q3v4-r388 (multipart/form encoding memory exhaustion): a top-level key ending in
[]makes Axios trust an arbitrary length value and build a huge array until the host crashes. Affected: 0.27.0 and later (securityonline.info). Timeouts and response size limits do not help (gbhackers.com). - GHSA-2m9r-3c99-8x45 (FormData-to-JSON sparse array): a huge field index builds a sparse array that swells to megabytes of nulls in JSON.stringify(). Affected: 0.28.0 and later (securityonline.info).
- Pranjali Thakur at depthfirst found the three DoS bugs (securityonline.info).
- securityonline.info rates the set CVSS 4.0 8.2 (High); this is the article's own rating and was not checked against vendor vectors.
Remediação
- Upgrade to Axios 1.21.0, or to 0.35.0 on the 0.x line. Per securityonline.info, the fixes strip credentials on cross-origin redirects, guard prototype reads and cap array-like inputs.
- Interim: set
maxRedirects: 0or add authorization and cookie tosensitiveHeaders(securityonline.info). Disable automatic redirects on authenticated requests and verify each destination before forwarding credentials (gbhackers.com). - Keep any nonzero
maxRateat 2 bytes per second or higher (both sources). - Validate untrusted FormData keys, require real arrays and enforce length limits on user input before passing it to Axios (both sources).
Relatos divergentes
- Number of flaws: securityonline.info (published 2026-12-03 00:27 UTC) counts five flaws, including a separate FormData-to-JSON sparse array bug. gbhackers.com (published 2026-12-03 12:10 UTC, more recent) counts four high-severity flaws and does not list that bug separately. The difference may be due to how the flaws were grouped, which neither source explains.
- Identifiers and scoring: only securityonline.info provides the CVE and GHSA IDs and the CVSS 4.0 score. gbhackers.com gives none.
- Exploitation: only securityonline.info states there is no known exploitation in the wild and that public PoCs exist. gbhackers.com is silent on both.
- 0.35.0 scope: gbhackers.com says 0.35.0 fixes the redirect and serialization flaws on the 0.x branch. securityonline.info presents 0.35.0 as the fix for the 0.x line in general.
Linha do tempo
-
Axios 1.21.0 fixes four high-severity flaws: redirect credential leak and three Node.js denial-of-service bugs
ler a análise desta fonte ocultar
Maintainers of the Axios JavaScript HTTP client fixed four high-severity vulnerabilities, according to a gbhackers.com report. One flaw can leak bearer tokens or session cookies in the Node.js HTTP adapter. The other three cause denial of service in Node.js applications. Axios 1.21.0 fixes all four, and 0.35.0 fixes the redirect and serialization flaws on the 0.x branch. The article does not state CVE or GHSA IDs, CVSS scores or exploitation in the wild, and no independent research was done for this record. Each flaw has prerequisites that limit its real-world risk.
Technical Details
- Credential leak: a trusted server redirects the client to a subdomain, and a dependency treats that subdomain as safe even when someone else operates it. The attacker must be able to induce the redirect and control or observe the destination. The redirect must keep the same effective port and must not downgrade from HTTPS to HTTP. Only credentials the caller sets in the Authorization or Cookie header are at risk.
- Fetch adapter crash: affects versions 1.7.6 through 1.20.0 and requires a separate prototype pollution bug. It applies when the fetch adapter is used with an AbortSignal. During cleanup, Axios can mistake an inherited non-callable property for a method, and the resulting error can terminate the process.
- Bandwidth limiter hang: a positive upload or download rate below 2 bytes per second makes the Node.js HTTP adapter requeue the same data repeatedly. This stalls the event loop, and recovery needs an external restart.
- Serializer memory exhaustion: the serializer trusts an object's declared length without checking that the elements exist, so a small input can trigger a very large array allocation. Timeouts and response size limits do not help. Affected ranges on the 0.x branch begin at 0.25.0 and 0.27.0, depending on the flaw.
Remediation
- Upgrade to Axios 1.21.0, or to 0.35.0 on the 0.x branch.
- Until then, disable automatic redirects on authenticated requests and verify each destination before forwarding credentials.
- Keep every nonzero transfer rate at 2 bytes per second or higher.
- Require real arrays and enforce length limits on user-supplied input before passing it to Axios.
- Switching adapters avoids the fetch crash but does not fix the underlying prototype pollution bug.
-
Axios 1.21.0 and 0.35.0 fix five flaws: prototype-pollution crash (CVE-2026-139876), three DoS bugs and a cross-subdomain token leak
ler a análise desta fonte ocultar
Axios maintainers fixed five vulnerabilities, rated CVSS 4.0 8.2 (High) by the article, on November 28, 2026. The release lines 1.21.0 and 0.35.0 carry the fixes. The set has one crash bug with a CVE ID (CVE-2026-139876, GHSA-6746-99mh-37fc), three denial-of-service flaws and one token and cookie leak. The article says each advisory ships a public PoC. It also says GitHub, VulnCheck and Upwind confirm no exploitation in the wild. This research was based on the article alone, because no web research was performed. Vendor advisories, the fix PRs and the CVSS vectors were not checked.
Technical Details
- GHSA-96x6-9jq2-jqcp: the Node.js HTTP adapter uses follow-redirects. A redirect from a trusted host to a subdomain keeps the Authorization and Cookie headers, so an attacker who controls a subdomain can steal bearer tokens or API keys. Affected: 0.25.0 to 0.34.0 and the 1.x line before 1.21.0.
- CVE-2026-139876 / GHSA-6746-99mh-37fc: the fetch adapter's signal cleanup reads
unsubscribeon an AbortSignal. IfObject.prototype.unsubscribehas been polluted with a non-function value, an uncaught TypeError crashes Node.js. This needs a separate prototype-pollution bug. Affected: 1.7.6 to 1.20.0. - GHSA-r7r7-378m-mqq3: a Node.js
maxRatebelow 2 bytes per second produces a fractional byte cap. A 101-byte chunk then loops through process.nextTick() forever and starves the event loop. - GHSA-hxh7-q3v4-r388: in multipart and form encoding, a top-level key ending in
[]makes Axios trust an arbitrary length value. It builds a huge array in memory until the host crashes. Affected: 0.27.0 and later. - GHSA-2m9r-3c99-8x45: a FormData-to-JSON conversion with a huge field index builds a sparse array. It swells to megabytes of nulls in JSON.stringify(). Affected: 0.28.0 and later.
- Pranjali Thakur at depthfirst found the three DoS bugs.
Remediation
- Update to Axios 1.21.0, or to 0.35.0 on the 0.x line. The article says this strips credentials on cross-origin redirects, guards prototype reads and caps array-like inputs.
- Interim workarounds: set
maxRedirects: 0or add authorization and cookie tosensitiveHeaders. Keep a nonzeromaxRateat 2 bytes per second or higher. Validate untrusted FormData keys before passing them to Axios.