4.8 CVE-2026-40175

Enriched by CISA Patch Exploit
 

Axios is a promise based HTTP client for the browser and Node.js. Prior to 1.15.0 and 0.3.1, the Axios library is vulnerable to a specific "Gadget" attack chain that allows Prototype Pollution in any third-party dependency to be escalated into Remote Code Execution (RCE) or Full Cloud Compromise (via AWS IMDSv2 bypass). This vulnerability is fixed in 1.15.0 and 0.3.1.
https://nvd.nist.gov/vuln/detail/CVE-2026-40175

Categories

CWE-113 : Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Request/Response Splitting')
The product receives data from an HTTP agent/component (e.g., web server, proxy, browser, etc.), but it does not neutralize or incorrectly neutralizes CR and LF characters before the data is included in outgoing HTTP headers. Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.) Construct HTTP headers very carefully, avoiding the use of non-validated input data. Use and specify an output encoding that can be handled by the downstream component that is reading the output. Common encodings include ISO-8859-1, UTF-7, and UTF-8. When an encoding is not specified, a downstream component may choose a different encoding, either by assuming a default encoding or automatically inferring which encoding is being used, which can be erroneous. When the encodings are inconsistent, the downstream component might treat some character or byte sequences as special, even if they are not special in the original encoding. Attackers might then be able to exploit this discrepancy and conduct injection attacks; they even might be able to bypass protection mechanisms that assume the original encoding is also being used by the downstream component. Inputs should be decoded and canonicalized to the application's current internal representation before being validated (CWE-180). Make sure that the application does not decode the same input twice (CWE-174). Such errors could be used to bypass allowlist validation schemes by introducing dangerous inputs after they have been checked. Chain: Proxy uses a substring search instead of parsing the Transfer-Encoding header (CWE-697), allowing request splitting (CWE-113) and cache poisoning Scala-based HTTP interface allows request splitting and response splitting through header names, header values, status reasons, and URIs Javascript-based framework allows request splitting through a path option of an HTTP request Application accepts CRLF in an object ID, allowing HTTP response splitting. Shopping cart allows HTTP response splitting to perform HTML injection via CRLF in a parameter for a url Bulletin board allows response splitting via CRLF in parameter. Response splitting via CRLF in PHPSESSID. e-commerce app allows HTTP response splitting using CRLF in object id parameters

References


 

AFFECTED (from MITRE)


Vendor Product Versions
axios axios
  • >= 1.0.0, < 1.15.0 [affected]
  • < 0.31.0 [affected]
© 2022 The MITRE Corporation. This work is reproduced and distributed with the permission of The MITRE Corporation.

CPE

cpe start end
Configuration 1
cpe:2.3:a:axios:axios:*:*:*:*:*:node.js:*:* < 1.15.0


REMEDIATION


Patch

Url
https://github.com/axios/axios/pull/10660#issuecomment-4224168081
https://github.com/axios/axios/commit/03cdfc99e8db32a390e12128208b6778492cee9c
https://github.com/axios/axios/commit/363185461b90b1b78845dc8a99a1f103d9b122a1
https://github.com/axios/axios/pull/10660
https://github.com/axios/axios/pull/10688


EXPLOITS


Exploit-db.com

id description date
No known exploits

POC Github

Url
No known exploits

Other Nist (github, ...)

Url
https://github.com/axios/axios/security/advisories/GHSA-fvcv-3m26-pcqx


CAPEC


Common Attack Pattern Enumerations and Classifications

id description severity
105 HTTP Request Splitting
High
31 Accessing/Intercepting/Modifying HTTP Cookies
High
34 HTTP Response Splitting
High
85 AJAX Footprinting
Low


MITRE


Techniques

id description
T1539 Steal Web Session Cookie
© 2022 The MITRE Corporation. This work is reproduced and distributed with the permission of The MITRE Corporation.

Mitigations

id description
M1017 Train users to identify aspects of phishing attempts where they're asked to enter credentials into a site that has the incorrect domain for the application they are logging into. Additionally, train users not to run untrusted JavaScript in their browser, such as by copying and pasting code or dragging and dropping bookmarklets.
© 2022 The MITRE Corporation. Esta obra se reproduce y distribuye con el permiso de The MITRE Corporation.