CVE-2025-27152: SSRF and credential leakage in Axios through absolute URLs
- Vendor
- Axios
CVE-2025-27152 is a server-side request forgery and credential leakage vulnerability in the Axios HTTP client. When an absolute URL is supplied to an Axios request method, it overrides the configured baseURL, allowing requests intended for a trusted destination to be sent elsewhere. Applications that pass attacker-controlled URLs or path parameters to Axios while relying on baseURL to restrict the destination can therefore issue requests to unintended hosts and disclose attached credentials. The issue affects both server-side and browser usage; server-side deployments can additionally expose internal resources reachable by the application.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation can redirect application requests to attacker-controlled hosts or internal network resources. Sensitive headers and credentials, including API keys attached to affected requests, may be disclosed to unintended recipients. Server-side exploitation can bypass application-level destination restrictions and access resources reachable from the application's network environment. Actual exposure depends on URL input handling, attached credentials, and network reachability.
Mitigation
If you can’t patch tonight, do this now.
Do not pass untrusted absolute URLs to Axios request methods when relying on baseURL. Validate user-controlled path parameters, reject absolute URLs and unexpected schemes or hosts, and verify that the resolved request destination remains within the intended baseURL before dispatch.
Remediation
Patch, then assume compromise.
Upgrade Axios to version 1.8.2 or later on the 1.x branch, or version 0.30.0 or later on the 0.x branch. Update affected dependencies and deployed application builds. For products bundling Axios, install the vendor release that incorporates the fix. Also validate application-supplied destinations so untrusted input cannot override the intended baseURL.
Exploits
2 exploits validated by Mallory's analysis. Hidden: 1 not yet analyzed, such as Exploit-DB entries.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
Frequently asked questions
- Is CVE-2025-27152 exploited in the wild?
- Yes. As of Oct 23, 2026, Mallory has reports of exploitation in the wild.
- Is there a public exploit for CVE-2025-27152?
- Yes. Mallory tracks 2 public exploits or proofs of concept for CVE-2025-27152, the earliest disclosed Mar 30, 2025.
- Is there a patch for CVE-2025-27152?
- Upgrade Axios to version 1.8.2 or later on the 1.x branch, or version 0.30.0 or later on the 0.x branch. Update affected dependencies and deployed application builds.
- What products are affected by CVE-2025-27152?
- Axios.
- How severe is CVE-2025-27152?
- CVE-2025-27152 has a CVSS v4 score of 7.7 (High) and an EPSS score of 0.75% (51st percentile) as of Oct 23, 2026.
Recent activity
17 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.