{"id":"CVE-2025-27152","published":"2025-03-07T15:13:15Z","modified":"2025-03-07T19:32:17Z","title":"Possible SSRF and Credential Leakage via Absolute URL in axios Requests","vendor":"axios","product":"axios","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.7,"severity":"HIGH","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.0075,"percentile":0.51152,"provenance":"source"},"cwes":[{"id":"CWE-918","name":"Server-Side Request Forgery"}],"references":[{"url":"https://github.com/axios/axios/security/advisories/GHSA-jr5f-v2jv-69x6","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/axios/axios/issues/6463","tags":["x_refsource_MISC"]}],"priority":{"score":20.6,"factors":[{"name":"EPSS percentile","points":10.23},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":5.39}]},"exploitSources":{"pocGithub":{"count":2,"skipped":0,"earliest":"2025-03-30","earliestUrl":"https://github.com/andreglock/axios-ssrf","repos":[{"name":"andreglock/axios-ssrf","url":"https://github.com/andreglock/axios-ssrf","stars":0,"created":"2025-03-30"},{"name":"davidblakecoe/axios-CVE-2025-27152-PoC","url":"https://github.com/davidblakecoe/axios-CVE-2025-27152-PoC","stars":0,"created":"2025-06-06"}]},"first":{"date":"2025-03-30","source":"PoC-in-GitHub","url":"https://github.com/andreglock/axios-ssrf"},"provenance":"source"},"vendorSlug":"axios","affectedVersions":[{"vendor":"axios","product":"axios","versions":["< 1.8.2"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2025-03-07T19:32:00.779211Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"npm","package":"axios","vulnerableRanges":[">=1.0.0, <1.8.2","<0.30.0"],"patched":["1.8.2","0.30.0"],"from":["GHSA-jr5f-v2jv-69x6"],"provenance":"source"}],"summary":{"text":"The axios HTTP client for browsers and Node.js mishandles absolute URLs passed to its request methods: even when a baseURL is configured, requests are sent to the absolute URL supplied, which is a server-side request forgery flaw affecting both server-side and client-side use. An attacker who can influence the URL an application passes to axios can direct requests to destinations of their choosing and potentially leak credentials, with the attack requiring only network-level access and no authentication, user interaction, or special configuration.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:57:32Z"},"euvd":{"id":"EUVD-2025-7731","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-axios-cve-2023-45857","parents":[{"from":"CVE-2023-45857","to":"CVE-2025-27152","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["lib/adapters/xhr.js"],"commits":["https://github.com/axios/axios/commit/2755df562b9c194fba6d8b609a383443f6a6e967","https://github.com/axios/axios/commit/96ee232bd3ee4de2e657333d4d2191cd389e14d0","https://github.com/axios/axios/commit/02c3c69ced0f8fd86407c23203835892313d7fde","https://github.com/axios/axios/commit/fb8eec214ce7744b5ca787f2c3b8339b2f54b00f"],"basis":"shared function","functions":["xhrAdapter"]}]}],"children":[{"from":"CVE-2025-27152","to":"CVE-2026-101909","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["lib/adapters/http.js","lib/core/Axios.js"],"commits":["https://github.com/axios/axios/commit/02c3c69ced0f8fd86407c23203835892313d7fde","https://github.com/axios/axios/commit/fb8eec214ce7744b5ca787f2c3b8339b2f54b00f","https://github.com/axios/axios/commit/d19040bda7a8be2f82c3c6e1a5bc03917daee39a","https://github.com/axios/axios/commit/d29be181f85f6fe93397a07b1f69606d9622637b"],"basis":"shared function","functions":["request"]}]}],"packageHistory":[{"cve":"CVE-2021-3749","published":"2021-08-31","fixed":"0.21.2","kev":false},{"cve":"CVE-2023-45857","published":"2023-11-08","fixed":"1.6.0","kev":false},{"cve":"CVE-2024-39338","published":"2024-08-09","fixed":"1.7.4","kev":false,"link":{"from":"CVE-2024-39338","to":"CVE-2025-27152","relation":"successor","confidence":"high","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:axios","fromFixed":"1.7.4","toFixed":"1.8.2","daysApart":210},{"kind":"same-code","provenance":"machine","files":["lib/adapters/http.js"],"commits":["https://github.com/axios/axios/commit/6b6b605eaf73852fb2dae033f1e786155959de3a","https://github.com/axios/axios/commit/02c3c69ced0f8fd86407c23203835892313d7fde","https://github.com/axios/axios/commit/fb8eec214ce7744b5ca787f2c3b8339b2f54b00f"],"basis":"shared file"},{"kind":"similar","provenance":"machine","score":0.36,"basis":"same package + description similarity"}]}},{"cve":"CVE-2025-27152","published":"2025-03-07","fixed":"1.8.2","kev":false},{"cve":"CVE-2025-58754","published":"2025-09-12","fixed":"1.12.0","kev":false,"link":{"from":"CVE-2025-27152","to":"CVE-2025-58754","relation":"successor","confidence":"high","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"npm:axios","fromFixed":"1.8.2","toFixed":"1.12.0","daysApart":189},{"kind":"version-step","provenance":"source","package":"npm:axios","fromFixed":"0.30.0","toFixed":"0.30.2","daysApart":189},{"kind":"same-code","provenance":"machine","files":["lib/adapters/http.js"],"commits":["https://github.com/axios/axios/commit/02c3c69ced0f8fd86407c23203835892313d7fde","https://github.com/axios/axios/commit/fb8eec214ce7744b5ca787f2c3b8339b2f54b00f","https://github.com/axios/axios/commit/945435fc51467303768202250debb8d4ae892593","https://github.com/axios/axios/commit/a1b1d3f073a988601583a604f5f9f5d05a3d0b67"],"basis":"shared file"}]}},{"cve":"CVE-2026-39865","published":"2026-04-08","fixed":"1.13.2","kev":false},{"cve":"CVE-2026-25639","published":"2026-02-09","fixed":"1.13.5","kev":false}],"package":"npm:axios"}}