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


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.86% (60th 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-23776539
  • published5 Dec 2026
  • disclosed4 Dec 2026
  • creditZachariah Mithani

Introduced: 4 Dec 2026

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

How to fix?

Upgrade axios to version 0.36.0, 1.22.0 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) via combineURLs() in lib/helpers/combineURLs.js, which fails to sanitize backslash or tab-prefixed relative paths when the baseURL consists solely of slashes. An attacker who controls the start of a request path can cause the browser to treat the resulting URL as a protocol-relative reference, redirecting the request to an attacker-chosen host. This allows default credential headers such as bearer tokens to be sent to the attacker's server, and attacker-controlled responses to be returned to the application.

CVSS Base Scores

version 4.0
version 3.1