What’s Vulnerable › Vulnerabilities
CVE-2025-27152: Possible SSRF and Credential Leakage via Absolute URL in axios Requests
- Severity: medium (CVSS 5.3 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.8% probability of exploitation in the next 30 days
- Public exploit or detection template: yes
- Published: 2025-03-07 · updated 2026-06-17
- Weakness: CWE-918
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 products
- axios: before 0.30.0; from 1.0.0 through 1.7.9 — fixed in 0.30.0
- Npm Axios: from 1.0.0 before 1.8.2; before 0.30.0 — fixed in 1.8.2, 0.30.0
How to fix
Upgrade to a fixed version: axios 0.30.0; Npm Axios 1.8.2, 0.30.0. Check the vendor advisory for mitigations.
References
- https://github.com/axios/axios/issues/6463
- https://github.com/axios/axios/security/advisories/GHSA-jr5f-v2jv-69x6
- https://github.com/axios/axios/security/advisories/GHSA-jr5f-v2jv-69x6
Get alerted when CVE-2025-27152 or the next vulnerability affects your stack