4.8medium
Axios has Unrestricted Cloud Metadata Exfiltration via Header Injection Chain
- Severity
- 4.8medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 1.73% (higher than 78% of CVEs)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-fvcv-3m26-pcqx
Description
Axios is a promise based HTTP client for the browser and Node.js. Versions prior to 1.15.0 and 0.3.1 are vulnerable to a specific gadget-style attack chain in which prototype pollution in a third-party dependency may be leveraged to inject unsanitized header values into outbound requests. This vulnerability is fixed in 1.15.0 and 0.3.1.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| axios axios | >= 1.0.0, < 1.15.0, < 0.31.0, before 0.31.0, from 1.0.0 before 1.15.0 | CVE List, NVD |
| automation-platform-ui | Not specified Not affected: from 0:2.6.9-1.el9ap before * | CVE List |
| com.github.streamshub-console | Not specified | CVE List |
| multicluster-engine/console-mce-rhel9 | Not specified Not affected: from 1777128790 before *, from 1778511348 before *, from 1778383863 before *, from 1777301444 before * | CVE List |
| network-observability/network-observability-console-plugin-compat-rhel9 | Not specified Not affected: from 1778508956 before * | CVE List |
| network-observability/network-observability-console-plugin-rhel9 | Not specified Not affected: from 1778510461 before * | CVE List |
| rhacm2/console-rhel9 | Not specified Not affected: from 1783451729 before *, from 1776927126 before * | CVE List |
| advanced-cluster-security/rhacs-main-rhel8 | Not specified Not affected: from 1779371594 before * | CVE List |
| container-native-virtualization/kubevirt-console-plugin | Not specified Not affected: from 1786029653 before * | CVE List |
| container-native-virtualization/kubevirt-console-plugin-rhel9 | Not specified Not affected: from 1786327570 before *, from 1786328211 before *, from 1786328346 before *, from 1786328683 before *, from 1786327616 before *, from 1786328550 before * | CVE List |
| rhdh/rhdh-hub-rhel9 | Not specified Not affected: from 1776784286 before *, from 1777903262 before * | CVE List |
| discovery/discovery-ui-rhel9 | Not specified Not affected: from 1778156756 before * | CVE List |
| rhmtc/openshift-migration-ui-rhel8 | Not specified Not affected: from 1780590717 before * | CVE List |
| rhoai/odh-dashboard-rhel9 | Not specified Not affected: from 1779189627 before * | CVE List |
| rhoai/odh-mod-arch-gen-ai-rhel9 | Not specified Not affected: from 1778473763 before * | CVE List |
| rhoai/odh-mod-arch-maas-rhel9 | Not specified Not affected: from 1779189704 before * | CVE List |
| rhoai/odh-mod-arch-model-registry-rhel9 | Not specified Not affected: from 1778666987 before * | CVE List |
| openshift4/ose-console | Not specified Not affected: from 1777997704 before *, from 1777994748 before * | CVE List |
| openshift4/ose-console-rhel9 | Not specified Not affected: from 1776827996 before * | CVE List |
| openshift4/ose-monitoring-plugin-rhel9 | Not specified Not affected: from 1779249923 before *, from 1778638503 before *, from 1778539219 before * | CVE List |
| openshift4/ose-agent-installer-ui-rhel9 | Not specified Not affected: from 1778645099 before *, from 1778539338 before * | CVE List |
| devspaces/code-rhel9 | Not specified Not affected: from 1776744110 before * | CVE List |
| devspaces/dashboard-rhel9 | Not specified Not affected: from 1776795511 before * | CVE List |
| openshift-service-mesh/kiali-ossmc-rhel8 | Not specified Not affected: from 1776202125 before * | CVE List |
| openshift-service-mesh/kiali-rhel8 | Not specified Not affected: from 1776191302 before * | CVE List |
| openshift-service-mesh/kiali-ossmc-rhel9 | Not specified Not affected: from 1776151124 before *, from 1776151106 before *, from 1776155669 before *, from 1776151134 before * | CVE List |
| openshift-service-mesh/kiali-rhel9 | Not specified Not affected: from 1776151272 before *, from 1776151270 before *, from 1776149682 before *, from 1776151277 before * | CVE List |
| satellite/iop-advisor-frontend-rhel9 | Not specified Not affected: from 1776250950 before * | CVE List |
| satellite/iop-host-inventory-frontend-rhel9 | Not specified Not affected: from 1776216284 before * | CVE List |
| satellite/iop-vulnerability-frontend-rhel9 | Not specified Not affected: from 1776269713 before * | CVE List |
| rhtas/rhtas-console-rhel9 | Not specified Not affected: from 1776672801 before *, from 1776778645 before * | CVE List |
| io.cryostat-cryostat | Not specified | CVE List |
| gatekeeper/gatekeeper-rhel9 | Not specified | CVE List |
| openshift-logging/elasticsearch6-rhel9 | Not specified | CVE List |
| openshift-logging/elasticsearch-operator-bundle | Not specified | CVE List |
| openshift-logging/elasticsearch-proxy-rhel9 | Not specified | CVE List |
| openshift-logging/elasticsearch-rhel9-operator | Not specified | CVE List |
| openshift-logging/kibana6-rhel8 | Not specified | CVE List |
| openshift-logging/logging-curator5-rhel9 | Not specified | CVE List |
| mta/mta-ui-rhel9 | Not specified | CVE List |
| openshift-pipelines/pipelines-hub-ui-rhel8 | Not specified | CVE List |
| openshift-pipelines/pipelines-hub-ui-rhel9 | Not specified | CVE List |
| openshift-service-mesh/kiali-operator-bundle | Not specified | CVE List |
| openshift-service-mesh/kiali-rhel9-operator | Not specified | CVE List |
| 3scale-amp20/system | Not specified | CVE List |
| 3scale-amp21/system | Not specified | CVE List |
| 3scale-amp22/system | Not specified | CVE List |
| 3scale-amp24/system | Not specified | CVE List |
| 3scale-amp25/system | Not specified | CVE List |
| 3scale-amp26/system | Not specified | CVE List |
| 3scale-amp2/system-rhel7 | Not specified | CVE List |
| 3scale-amp2/system-rhel8 | Not specified | CVE List |
| 3scale-amp2/system-rhel9 | Not specified | CVE List |
| ansible-automation-platform-24/lightspeed-rhel8 | Not specified | CVE List |
| ansible-automation-platform-25/lightspeed-rhel8 | Not specified | CVE List |
| ansible-automation-platform-26/gateway-rhel9 | Not specified | CVE List |
| ansible-automation-platform-26/lightspeed-rhel9 | Not specified | CVE List |
| ansible-automation-platform/automation-dashboard-rhel9 | Not specified | CVE List |
| ansible-automation-platform-tech-preview/automation-dashboard-rhel9 | Not specified | CVE List |
| automation-controller | Not specified | CVE List |
| automation-gateway | Not specified | CVE List |
| automation-hub | Not specified | CVE List |
| python3.11-galaxy-ng | Not specified | CVE List |
| python3.12-galaxy-ng | Not specified | CVE List |
| python3x-galaxy-ng | Not specified | CVE List |
| python-galaxy-ng | Not specified | CVE List |
| io.hawt-project | Not specified | CVE List |
| io.apicurio-apicurio-registry | Not specified | CVE List |
| apicurio/apicurio-registry-ui-rhel8 | Not specified | CVE List |
| apicurio/apicurio-registry-ui-rhel9 | Not specified | CVE List |
| kueue/kueue-must-gather-rhel9 | Not specified | CVE List |
| kueue/kueue-operator-bundle | Not specified | CVE List |
| kueue/kueue-rhel9 | Not specified | CVE List |
| kueue/kueue-rhel9-operator | Not specified | CVE List |
| rhdesktop/rh-podman-desktop-ext-openshift-local-rhel10 | Not specified | CVE List |
| org.infinispan-infinispan-console | Not specified | CVE List |
| rhdh/backstage-community-plugin-catalog-backend-module-scaffolder-relation-processor | Not specified | CVE List |
| grafana | Not specified | CVE List |
| rhelai3/bootc-cuda-rhel9 | Not specified | CVE List |
| rhelai3/bootc-rocm-rhel9 | Not specified | CVE List |
| rhelai3/disk-image-cuda-rhel9 | Not specified | CVE List |
| io.apicurio-apicurito | Not specified | CVE List |
| rhoai/odh-dashboard-rhel8 | Not specified | CVE List |
| rhoai/odh-kf-notebook-controller-rhel8 | Not specified | CVE List |
| rhoai/odh-notebook-controller-rhel8 | Not specified | CVE List |
| org.kie-process-migration-service | Not specified | CVE List |
| quay/quay-rhel8 | Not specified | CVE List |
| quay/quay-rhel9 | Not specified | CVE List |
| rhtpa/rhtpa-trustification-service-rhel9 | Not specified | CVE List |
| ansible-automation-platform/automation-portal | Not specified | CVE List |
| axios (npm) | from 1.0.0 before 1.15.0, before 0.31.0 | GitHub Advisory Database |
All scores
| GitHub_M | 4.8medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N |
| redhat-SADP | 8.1high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 4.8medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N |
| NVD | 4.8medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N |
Classification
What each source says
CVE List
Axios is a promise based HTTP client for the browser and Node.js. Versions prior to 1.15.0 and 0.3.1 are vulnerable to a specific gadget-style attack chain in which prototype pollution in a third-party dependency may be leveraged to inject unsanitized header values into outbound requests. This vulnerability is fixed in 1.15.0 and 0.3.1.
GitHub Advisory Database
Vulnerability Disclosure: Unrestricted Cloud Metadata Exfiltration via Header Injection Chain
Summary
The Axios library is vulnerable to a specific gadget-style attack chain in which prototype pollution in a third-party dependency may be leveraged to inject unsanitized header values into outbound requests.
Axios can be used as a gadget after pollution occurs elsewhere because header values merged from attacker-controlled prototype properties are not sanitized for CRLF (\r\n) characters before being written to the request. In affected deployments, this may enable limited request manipulation or metadata access as part of a higher-complexity exploit chain.
Severity: Moderate (CVSS 3.1 Base Score: 4.8)
Affected Versions: All versions (v0.x - v1.x)
Vulnerable Component: lib/adapters/http.js (Header Processing)
Usage of "Helper" Vulnerabilities
This issue requires a separate prototype pollution vulnerability in another library in the application stack (for example, qs, minimist, ini, or body-parser). If an attacker can pollute Object.prototype, Axios may pick up the polluted properties during config merge.
Because Axios does not sanitise these merged header values for CRLF (\r\n) characters, the polluted property can alter the structure of an outbound HTTP request.
Proof of Concept
1. The Setup (Simulated Pollution)
Imagine a scenario where a known vulnerability exists in a query parser. The attacker sends a payload that sets:
Object.prototype['x-amz-target'] = \"dummy\r\n\r\nPUT /latest/api/token HTTP/1.1\r\nHost: 169.254.169.254\r\nX-aws-ec2-metadata-token-ttl-seconds: 21600\r\n\r\nGET /ignore\";
2. The Gadget Trigger (Safe Code)
The application makes a completely safe, hardcoded request:
// This looks safe to the developer
await axios.get('https://analytics.internal/pings');
3. The Execution
Axios merges the prototype property x-amz-target into the request headers. It then writes the header value directly to the socket without validation.
Resulting HTTP traffic:
GET /pings HTTP/1.1
Host: analytics.internal
x-amz-target: dummy
PUT /latest/api/token HTTP/1.1
Host: 169.254.169.254
X-aws-ec2-metadata-token-ttl-seconds: 21600
GET /ignore HTTP/1.1
...
4. The Impact
In environments where requests can reach cloud metadata endpoints or sensitive internal services, the injected header content may help bypass expected request constraints and expose limited credentials or modify request semantics. This impact depends on application context and a separate prototype-pollution primitive.
Impact Analysis
- Confidentiality: May expose limited sensitive information in affected network environments.
- Integrity: May allow modification of outbound request structure or injected headers.
- Attack Complexity: Exploitation requires a separate prototype-pollution vulnerability and a reachable target service.
Recommended Fix
Validate all header values in lib/adapters/http.js and xhr.js before passing them to the underlying request function.
Patch Suggestion:
// In lib/adapters/http.js
utils.forEach(requestHeaders, function setRequestHeader(val, key) {
if (/[\r\n]/.test(val)) {
throw new Error('Security: Header value contains invalid characters');
}
// ... proceed to set header
});
References
- OWASP: CRLF Injection (CWE-113)
This report was generated as part of a security audit of the Axios library.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-40175 changed 2026-09-09 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-fvcv-3m26-pcqx changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2026-40175 changed 2026-09-09 | Public domain |