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.
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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | node-axios | no fix listed | DEBIAN-CVE-2025-27152 |
| Debian:13 | node-axios | 1.8.4+dfsg-1 | DEBIAN-CVE-2025-27152 |
| Debian:14 | node-axios | 1.8.4+dfsg-1 | DEBIAN-CVE-2025-27152 |
| Ubuntu:25.10 | node-axios | no fix listed | UBUNTU-CVE-2025-27152 |
| Ubuntu:26.10 | node-axios | no fix listed | UBUNTU-CVE-2025-27152 |
| npm | axios | 0.30.0 | GHSA-jr5f-v2jv-69x6 |
| npm | axios | 1.8.2 | GHSA-jr5f-v2jv-69x6 |
Affected products (as reported)
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
- https://github.com/axios/axios/security/advisories/GHSA-jr5f-v2jv-69x6 x_refsource_CONFIRM
- https://github.com/axios/axios/issues/6463 x_refsource_MISC