Axios
Possible SSRF and Credential Leakage via Absolute URL in axios Requests
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 versions and mitigation
From the CVE record and the vendor's references.Affected
- < 1.8.2
Fixed in 1.8.2
Mitigation
Upgrade axios to 1.8.2 or later.
References
- Vendor advisory github.com/axios/axios/security/advisories/GHS…
Timeline
Days relative to CVE publicationFirst public PoC 4.3 days after publication; not in CISA KEV. First PoC: backuardo/exploit-workbench (created 11 Mar 2025, found by us: backfilled).
PoC repositories
Found on GitHub.1 PoCs · 1 pending · 2 informational
PoCs 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| backuardo/exploit-workbench | 11 Mar 2025 +4.3 d | 2 | PoC |
Pending 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| WillFortMadeTech/axiosVulnExample | 19 Feb 2026 +349 d | 0 | Pending · repository unavailable (HTTP 404) |
Informational 2
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| andreglock/axios-ssrf | 30 Mar 2025 +23 d | 0 | Informational · write-up |
| davidblakecoe/axios-CVE-2025-27152-PoC | 6 Jun 2025 +91 d | 0 | Informational · write-up |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
PoC characteristics
What to hunt for in your logs · from 1 PoC repoGET /fetch-url
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/fetch-url\?(?:.*&)?url=
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [3000] (msg:"GG PoC-Monitor CVE-2025-27152 axios axios exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/fetch-url"; http.uri; content:"url="; reference:url,poc.griffinguard.io/cve/CVE-2025-27152; classtype:web-application-attack; sid:9180540; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: axios axios exploit attempt (CVE-2025-27152)
id: gg-pocmon-cve-2025-27152-9180540
status: experimental
description: Request pattern taken from public PoCs for CVE-2025-27152. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2025-27152
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/fetch-url'
cs-uri-query|contains|all:
- 'url='
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2025.27152