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


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

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-9403194
  • published23 Mar 2025
  • disclosed11 Mar 2025
  • creditUnknown

Introduced: 11 Mar 2025

New CVE NOT AVAILABLE CWE-918  (opens in a new tab)

How to fix?

Upgrade axios to version 0.30.0, 1.8.3 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) due to not setting allowAbsoluteUrls to false by default when processing a requested URL in buildFullPath(). It may not be obvious that this value is being used with the less safe default, and URLs that are expected to be blocked may be accepted. This is a bypass of the fix for the vulnerability described in CVE-2025-27152.

CVSS Base Scores

version 4.0
version 3.1