Skip to main content
Mallory
MediumPublic exploitVulnerability

CVE-2026-40175: Axios HTTP Header Injection via Prototype Pollution Gadget Chain

Published Apr 10, 2026 · Updated 6 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days1 mention · peak 1 in a dayToday
CVSS4.8Medium · v3.1
EPSS1.7%78th percentile
CISA KEVNoNot listed
In the wildNonePublic exploit, no exploitation reported
Vendor
Axios
IdentifiersCVE-2026-40175CWE-113 · Improper Neutralization of CRLF…

CVE-2026-40175 is an HTTP header sanitization vulnerability in Axios that can act as a gadget for prototype pollution originating in another dependency. Attacker-controlled inherited properties can enter request configuration and outbound header values without adequate rejection of carriage return and line feed characters. This can enable header injection and, in susceptible request-processing environments, further request manipulation. Axios 1.x releases before 1.15.0 are affected. The vulnerability does not itself establish the initial prototype pollution primitive.

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 compromise the integrity of outbound HTTP requests by injecting malicious header values. Depending on runtime validation, intermediary behavior, and network reachability, the chain may enable HTTP request smuggling, SSRF, or disclosure of sensitive internal service and cloud metadata. Remote code execution and cloud compromise are potential downstream outcomes in susceptible deployments, not unconditional capabilities of the Axios flaw. Practical exploitability in standard Node.js environments is disputed.

Mitigation

If you can’t patch tonight, do this now.

Reject outbound header values containing carriage return or line feed characters before request dispatch, including values introduced through inherited configuration properties. Prevent prototype pollution in the application dependency tree. Restrict application egress to cloud metadata services and sensitive internal endpoints to reduce downstream exposure. For Siemens gWAP, restrict application and network access to authorized users; no product-specific workaround is identified.

Remediation

Patch, then assume compromise.

Upgrade Axios 1.x to version 1.15.0 or a later supported release, and update transitive copies through the applications that bundle them. The legacy 0.x fixed-version information is inconsistent: 0.3.1 and 0.31.0 are both identified; confirm the correct release with the upstream maintainer or product vendor before selecting a legacy update. Apply vendor-supported backports where appropriate. Product-specific fixes include Siemens gWAP V3.1.1 or later, HCL BigFix Inventory 11.0.8.0 or later, and Splunk Enterprise Security 8.7.0, which bundles Axios 1.18.0. Remediate the separate prototype pollution weakness required to initiate the chain.

Public exploits

Exploits

1 exploit validated by Mallory's analysis. Hidden: 3 rejected by Mallory's analysis as not a working exploit; 1 not yet analyzed, such as Exploit-DB entries.

View more in app →
CVE-2026-40175-pocThis repository is a self-contained JavaScript PoC environment for CVE-2026-40175, described as an Axios CRLF injection issue in vulnerable Axios versions. It is not a framework module; it is a standalone exploit lab built around Node.js, Docker, nginx, and a mock AWS IMDSv2 service. Structure and purpose: - README.md explains the vulnerability, attack chain, prerequisites, and test scenarios. - docker-compose.yml plus Dockerfile.backend and Dockerfile.imds build a multi-container lab with three services: backend, nginx, and a mock IMDS service. - poc/backend-server.js provides a backend HTTP server on port 3001 that logs requests and exposes /last-request, plus a static server on port 3003 for the browser PoC. - poc/nginx-container.conf configures nginx as an intentionally unsafe open proxy using proxy_pass http://$http_host with resolver 127.0.0.11 and ignore_invalid_headers on, which is central to the SSRF demonstration. - poc/mock-imds.js simulates AWS IMDSv2, including token issuance and fake credential retrieval. - poc/test-axios-adapter-backend.js and poc/test-axios-adapter-nginx.js are Node-based PoCs that use a custom rawSocketAdapter built on net.Socket to bypass normal Node HTTP header validation and send raw HTTP containing CRLF-injected headers. - poc/test-axios-no-adapter.js demonstrates that standard Axios/Node behavior blocks the attack path without the custom adapter. - poc/test-prototype-pollution.js demonstrates a full chain: vulnerable recursive merge -> Object.prototype pollution -> inherited headers -> Axios header serialization -> raw socket transmission -> nginx routing -> SSRF to IMDS. - poc/exploit.html is a browser-facing demonstration comparing standard XHR behavior versus a custom adapter/relay concept; it loads axios 1.14.0 from jsDelivr and is intended to visualize success/failure paths. Main exploit capabilities: 1. CRLF header injection into Axios-managed headers. 2. Construction of raw HTTP requests that preserve embedded CRLF sequences. 3. HTTP request smuggling by appending a second request after the injected header block. 4. SSRF through nginx by controlling the Host header used in proxy_pass http://$http_host. 5. Access to internal metadata-style endpoints, specifically a mock IMDSv2 token endpoint and credential endpoint. 6. Demonstration of prototype pollution as an upstream primitive for injecting malicious headers into Axios configuration. Notable observations: - The exploit is operational rather than merely theoretical because it includes working code for raw socket transmission and a complete lab environment. - The repository is educational and intentionally uses a mock IMDS service with fake credentials rather than real cloud targets. - package.json references scripts for poc/vulnerable-app.js and poc/exploit.js, but those files are not present in the provided file list; the actual usable entry points are the test scripts under poc/. - The browser PoC references a relay on port 3004 in the README/UI, but the shown backend-server.js only implements ports 3001 and 3003; relay functionality may be incomplete or omitted from the provided content.pjt3591oo · Disclosed Apr 17, 2026 · javascript · html · network · web · browserOperational
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-2026-40175 exploited in the wild?
As of Nov 23, 2026, Mallory has no reports of CVE-2026-40175 being exploited in the wild. It is not listed in CISA KEV.
Is there a public exploit for CVE-2026-40175?
Yes. Mallory tracks 1 public exploit or proof of concept for CVE-2026-40175, the earliest disclosed Apr 17, 2026.
Is there a patch for CVE-2026-40175?
Upgrade Axios 1.x to version 1.15.0 or a later supported release, and update transitive copies through the applications that bundle them. The legacy 0.x fixed-version information is inconsistent: 0.3.1 and 0.31.0 are both identified; confirm the correct release with the upstream maintainer or product vendor before selecting a legacy update.
What products are affected by CVE-2026-40175?
Axios.
How severe is CVE-2026-40175?
CVE-2026-40175 has a CVSS v3.1 score of 4.8 (Medium) and an EPSS score of 1.7% (78th percentile) as of Nov 23, 2026.
Activity feed

Recent activity

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

View more in app →
+11 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 evidenceEvery 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 activity41Community discussion across Reddit, Mastodon, and other social sources.