Server-side Request Forgery (SSRF) Affecting axios package, versions <0.31.1>=1.0.0 <1.15.1


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.03% (10th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Server-side Request Forgery (SSRF) vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JS-AXIOS-16298095
  • published26 Apr 2026
  • disclosed24 Apr 2026
  • creditsrisowmya2000

Introduced: 24 Apr 2026

NewCVE-2026-42038  (opens in a new tab)
CWE-918  (opens in a new tab)

How to fix?

Upgrade axios to version 0.31.1, 1.15.1 or higher.

Overview

axios is a promise-based HTTP client for the browser and Node.js.

Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) through the AxiosHeaders normalization path and shouldBypassProxy helper. An attacker can smuggle CRLF and other control characters into request header values by supplying crafted header input, causing injected header fields to be sent on outbound requests and potentially altering how downstream servers interpret the request; in proxy configurations, a request to localhost, 127.0.0.1, or ::1 can be routed differently depending on the no_proxy entry, allowing loopback traffic to bypass the intended proxy handling.

CVSS Base Scores

version 4.0
version 3.1