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

7.7 CVSS

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.

Classification

CVE ID: CVE-2025-27152

CVSS Base Severity: HIGH

CVSS Base Score: 7.7

CVSS 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

Problem Types

CWE-918: Server-Side Request Forgery (SSRF)

Affected Products

Vendor: axios

Product: axios

Exploit Prediction Scoring System (EPSS)

EPSS Score: 0.05% (probability of being exploited)

EPSS Percentile: 13.29% (scored less or equal to compared to others)

EPSS Date: 2025-04-05 (when was this score calculated)

References

https://nvd.nist.gov/vuln/detail/CVE-2025-27152
https://github.com/axios/axios/security/advisories/GHSA-jr5f-v2jv-69x6
https://github.com/axios/axios/issues/6463

Timeline