REDHAT-BUG-2542584: High severity npm/axios vulnerability

Published Sep 28, 2026
·
Updated

Axios is a promise-based HTTP client for the browser and Node.js. From 1.15.2 until 1.20.0, the Node HTTP adapter in lib/adapters/http.js supplies request options without an own createConnection value. A separate same-process prototype-pollution flaw places a function on Object.prototype.createConnection. Node resolves and invokes the inherited createConnection socket factory, allowing the attacker-controlled function to select the transport endpoint. The attacker endpoint can receive request headers and bodies, including credentials, and return attacker-controlled responses while the URL appears legitimate. This issue is fixed in version 1.20.0.

Affected Software

1 affected component
npm/axios>=1.15.2<1.20.0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade axios to a version that resolves this vulnerability.

    Fixed in 1.20.0

Event History

Sep 28, 2026
Data Sourced
via Red Hat·05:46 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

Which deployments are exposed?

The issue affects Axios usage through its Node.js HTTP adapter. Browser-only Axios use is not described as affected.

2

What must an attacker be able to do to exploit this?

An attacker needs a separate same-process prototype-pollution condition that can place a function on Object.prototype.createConnection. That inherited function is then invoked as the socket factory for Axios requests.

3

What is the impact of successful exploitation?

The attacker-controlled socket factory can redirect requests to an attacker endpoint, exposing request headers and bodies, including credentials. It can also return attacker-controlled responses even though the request URL appears legitimate.

4

How can this be remediated?

Upgrade Axios to version 1.20.0, which fixes this issue. The affected versions begin at 1.15.2 and extend until the fixed release.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203