Vulnerability · Published Mar 7, 2025 · Assigned by GitHub_M

CVE-2025-27152Possible SSRF and Credential Leakage via Absolute URL in axios Requests

High 7.7

In plain English

A high-severity server-side request forgery in axios from axios. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.8% (higher than 56% of all known vulnerabilities). Ready-made attack tooling exists: public proof-of-concept code. Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)7.7High
Exploit odds (30 days)0.8%top 43.5% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack tooling1Public PoC

Official description

axios is a promise based HTTP client for the browser and node.js. The issue occurs when passing absolute URLs rather than protocol-relative URLs to axios. Even if ⁠baseURL is set, axios sends the request to the specified absolute URL, potentially causing SSRF and credential leakage. This issue impacts both server-side and client-side usage of axios. This issue is fixed in 1.8.2.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Debian:12node-axiosno fix listedDEBIAN-CVE-2025-27152
Debian:13node-axios1.8.4+dfsg-1DEBIAN-CVE-2025-27152
Debian:14node-axios1.8.4+dfsg-1DEBIAN-CVE-2025-27152
Ubuntu:25.10node-axiosno fix listedUBUNTU-CVE-2025-27152
Ubuntu:26.10node-axiosno fix listedUBUNTU-CVE-2025-27152
npmaxios0.30.0GHSA-jr5f-v2jv-69x6
npmaxios1.8.2GHSA-jr5f-v2jv-69x6

Affected products (as reported)

VendorProductVersions
axios axios < 1.8.2

Weakness: CWE-918 · Vector: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:P

References