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

CVE-2026-40175: Axios has Unrestricted Cloud Metadata Exfiltration via Header Injection Chain

April 10, 2026 (updated April 16, 2026)

The Axios library is vulnerable to a specific “Gadget” attack chain that allows Prototype Pollution in any third-party dependency to be escalated into Remote Code Execution (RCE) or Full Cloud Compromise (via AWS IMDSv2 bypass).

While Axios patches exist for preventing check pollution, the library remains vulnerable to being used as a gadget when pollution occurs elsewhere. This is due to a lack of HTTP Header Sanitization (CWE-113) combined with default SSRF capabilities.

Severity: Critical (CVSS 9.9) Affected Versions: All versions (v0.x - v1.x) Vulnerable Component: lib/adapters/http.js (Header Processing)

References

  • github.com/advisories/GHSA-fvcv-3m26-pcqx
  • github.com/axios/axios
  • github.com/axios/axios/commit/03cdfc99e8db32a390e12128208b6778492cee9c
  • github.com/axios/axios/commit/363185461b90b1b78845dc8a99a1f103d9b122a1
  • github.com/axios/axios/pull/10660
  • github.com/axios/axios/pull/10660
  • github.com/axios/axios/pull/10688
  • github.com/axios/axios/releases/tag/v0.31.0
  • github.com/axios/axios/releases/tag/v1.15.0
  • github.com/axios/axios/security/advisories/GHSA-fvcv-3m26-pcqx
  • nvd.nist.gov/vuln/detail/CVE-2026-40175

Code Behaviors & Features

Detect and mitigate CVE-2026-40175 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.31.0, all versions starting from 1.0.0 before 1.15.0

Fixed versions

  • 1.15.0
  • 0.31.0

Solution

Upgrade to versions 0.31.0, 1.15.0 or above.

Impact 10 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-113: Improper Neutralization of CRLF Sequences in HTTP Headers ('HTTP Request/Response Splitting')
  • CWE-444: Inconsistent Interpretation of HTTP Requests ('HTTP Request/Response Smuggling')
  • CWE-918: Server-Side Request Forgery (SSRF)

Source file

npm/axios/CVE-2026-40175.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sat, 09 May 2026 12:20:25 +0000.