Advisory Database
  • Advisories
  • Dependency Scanning
  1. npm
  2. ›
  3. axios
  4. ›
  5. CVE-2025-27152

CVE-2025-27152: axios Requests Vulnerable To Possible SSRF and Credential Leakage via Absolute URL

March 7, 2025 (updated March 28, 2025)

A previously reported issue in axios demonstrated that using protocol-relative URLs could lead to SSRF (Server-Side Request Forgery). Reference: axios/axios#6463

A similar problem that occurs when passing absolute URLs rather than protocol-relative URLs to axios has been identified. 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.

References

  • github.com/advisories/GHSA-jr5f-v2jv-69x6
  • github.com/axios/axios
  • github.com/axios/axios/commit/02c3c69ced0f8fd86407c23203835892313d7fde
  • github.com/axios/axios/commit/fb8eec214ce7744b5ca787f2c3b8339b2f54b00f
  • github.com/axios/axios/issues/6463
  • github.com/axios/axios/pull/6829
  • github.com/axios/axios/releases/tag/v1.8.2
  • github.com/axios/axios/security/advisories/GHSA-jr5f-v2jv-69x6
  • nvd.nist.gov/vuln/detail/CVE-2025-27152

Code Behaviors & Features

Detect and mitigate CVE-2025-27152 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.30.0, all versions starting from 1.0.0 before 1.8.2

Fixed versions

  • 1.8.2
  • 0.30.0

Solution

Upgrade to versions 0.30.0, 1.8.2 or above.

Weakness

  • CWE-918: Server-Side Request Forgery (SSRF)

Source file

npm/axios/CVE-2025-27152.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:55 +0000.