Skip to main content
Mallory
HighPublic exploitVulnerability

CVE-2025-27152: SSRF and credential leakage in Axios through absolute URLs

Published Mar 7, 2025 · Updated 1 month ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 daysNo mention activity in the last 30 days.
CVSS7.7High · v4
EPSS0.75%51st percentile
CISA KEVNoNot listed
In the wildReported2 exploitation records in Mallory
Vendor
Axios
IdentifiersCVE-2025-27152CWE-918 · Server-Side Request Forgery (SSRF)

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.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

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.

Public exploits

Exploits

2 exploits validated by Mallory's analysis. Hidden: 1 not yet analyzed, such as Exploit-DB entries.

View more in app →
axios-ssrfThis repository is a full-stack demonstration application (Angular frontend, NestJS backend) designed to showcase two specific vulnerabilities: SSRF (Server-Side Request Forgery) and Path Traversal, specifically in the context of the axios library (version 1.8.1, vulnerable to CVE-2025-27152). The backend exposes API endpoints for movie data, using axios to interact with the external TMDB API. The SSRF vulnerability is present in the backend's search functionality, where user-supplied input is used in requests to external URLs via axios. The Path Traversal vulnerability is present in the downloads middleware, which allows crafted URLs to access files outside the intended directory (e.g., '/api/downloads/linda/..%2f..%2f..%2fdist%2fmain.ts'). The README provides explicit instructions for exploiting both vulnerabilities. The repository is structured into 'backend' (NestJS API) and 'frontend' (Angular app) directories, with supporting configuration and test files. The main entry points for exploitation are the backend API endpoints, which can be accessed directly or via the frontend. The code is intended for educational and demonstration purposes, not as a weaponized exploit.andreglock · Disclosed Mar 30, 2025 · typescript · javascript · networkPoCaxios-CVE-2025-27152-PoCThis repository contains two HTML/JavaScript proof-of-concept files demonstrating CVE-2025-27152, a credential leak vulnerability in Axios v1.6.8 when used in a browser context. Both files create an Axios client with a preset baseURL, and in the case of 'axios-credsteal.html', also set an Authorization header and enable withCredentials. The user is prompted to enter an absolute URL, which is then used as the target for an Axios GET request. This allows an attacker to supply a malicious endpoint (such as a webhook or controlled server) and receive sensitive credentials (headers and cookies) from the victim's browser. The exploit demonstrates how improper handling of absolute URLs in Axios can lead to credential leakage across origins. The repository is structured as two standalone HTML files, each serving as an independent PoC for the vulnerability.davidblakecoe · Disclosed Jun 6, 2025 · html · javascript · browserPoC
Exposure surface

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.

VendorProductType
AxiosAxiosapplication
FAQ

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.
Activity feed

Recent activity

17 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
+3 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidence2Every report linking this CVE to a named adversary.
Associated malwareMalware families linked to this CVE, with evidence and IOCs.
Detection signaturesYARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity5Community discussion across Reddit, Mastodon, and other social sources.