Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-42041— Axios: Authentication Bypass via Prototype Pollution Gadget in `validateStatus` Merge Strategy

Quick assessment

Affected
axios axios
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Axios是Axios开源的一款基于Promise(异步编程的一种解决方案)的HTTP客户端。 Axios 1.15.1之前版本和0.31.1之前版本存在授权问题漏洞,该漏洞源于validateStatus使用mergeDirectKeys合并策略,该策略使用in运算符遍历原型链,导致Object.prototype.validateStatus被污染时所有HTTP状态码被视为成功。

CVSS 4.8 · Medium EPSS 0.66% · P51

Possible ATT&CK Techniques 1 AI

T1190 · Exploit Public-Facing Application

Affected Version Matrix 2

VendorProduct Version RangeStatus
axios axios >= 1.0.0, < 1.15.1 affected
< 0.31.1 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-42041

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Axios: Authentication Bypass via Prototype Pollution Gadget in `validateStatus` Merge Strategy
Source: CVE Program / CVE List V5
Vulnerability Description
Axios is a promise based HTTP client for the browser and Node.js. Prior to 1.15.1 and 0.31.1, the Axios library is vulnerable to a Prototype Pollution "Gadget" attack that allows any Object.prototype pollution to silently suppress all HTTP error responses (401, 403, 500, etc.), causing them to be treated as successful responses. This completely bypasses application-level authentication and error handling. The root cause is that validateStatus is the only config property using the mergeDirectKeys merge strategy, which uses JavaScript's in operator — an operator that inherently traverses the prototype chain. When Object.prototype.validateStatus is polluted with () => true, all HTTP status codes are accepted as success. This vulnerability is fixed in 1.15.1 and 0.31.1.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
认证机制不恰当
Source: CVE Program / CVE List V5
Vulnerability Title
Axios 授权问题漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Axios是Axios开源的一款基于Promise(异步编程的一种解决方案)的HTTP客户端。 Axios 1.15.1之前版本和0.31.1之前版本存在授权问题漏洞,该漏洞源于validateStatus使用mergeDirectKeys合并策略,该策略使用in运算符遍历原型链,导致Object.prototype.validateStatus被污染时所有HTTP状态码被视为成功。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
axios axios >= 1.0.0, < 1.15.1 -

II. Public POCs for CVE-2026-42041

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-42041

请登录查看更多情报信息。

Vendor Advisories for CVE-2026-42041 (1)

Same Patch Batch · axios · 2026-04-24 · 12 CVEs total

CVE-2026-42033 7.4 HIGH Axios: Prototype Pollution Gadgets - Response Tampering, Data Exfiltration, and Request Hi
CVE-2026-42035 7.4 HIGH Axios: Header Injection via Prototype Pollution
CVE-2026-42043 7.2 HIGH Axios: Incomplete Fix for CVE-2025-62718 — NO_PROXY Protection Bypassed via RFC 1122 Loop
CVE-2026-42039 6.9 MEDIUM Axios: unbounded recursion in toFormData causes DoS via deeply nested request data
CVE-2026-42038 6.8 MEDIUM Axios: no_proxy bypass via IP alias allows SSRF
CVE-2026-42044 6.5 MEDIUM Axios: Invisible JSON Response Tampering via Prototype Pollution Gadget in `parseReviver`
CVE-2026-42042 5.4 MEDIUM Axios: XSRF Token Cross-Origin Leakage via Prototype Pollution Gadget in `withXSRFToken` B
CVE-2026-42037 5.3 MEDIUM Axios: CRLF Injection in multipart/form-data body via unsanitized blob.type in formDataToS
CVE-2026-42034 5.3 MEDIUM Axios: HTTP adapter streamed uploads bypass maxBodyLength when maxRedirects: 0
CVE-2026-42036 5.3 MEDIUM Axios: HTTP adapter streamed responses bypass maxContentLength
CVE-2026-42040 3.7 LOW Axios: Null Byte Injection via Reverse-Encoding in AxiosURLSearchParams

IV. Related Vulnerabilities