CVE-2026-25639
📋 TL;DR
This vulnerability in Axios allows attackers to cause denial of service by providing malicious configuration objects containing __proto__ as an own property. When processed by the mergeConfig function, this triggers a TypeError that crashes the application. Any application using vulnerable versions of Axios for HTTP requests is affected.
💻 Affected Systems
- axios
📦 What is this software?
Axios by Axios
⚠️ Risk & Real-World Impact
Worst Case
Complete application crash and denial of service, potentially affecting all users of the vulnerable service.
Likely Case
Application crashes when processing malicious requests, causing service disruption until restart.
If Mitigated
Minimal impact with proper input validation and updated Axios version.
🎯 Exploit Status
Exploitation requires sending malicious configuration objects to endpoints using Axios. The advisory includes proof-of-concept details.
🛠️ Fix & Mitigation
✅ Official Fix
Patch Version: 1.13.5
Vendor Advisory: https://github.com/axios/axios/security/advisories/GHSA-43fc-jf86-j433
Restart Required: Yes
Instructions:
1. Update package.json to specify axios version 1.13.5 or higher. 2. Run npm update axios or yarn upgrade axios. 3. Restart your application.
🔧 Temporary Workarounds
Input validation for configuration objects
allValidate and sanitize configuration objects before passing to Axios to remove __proto__ properties.
// JavaScript example: delete config.__proto__; before using axios
🧯 If You Can't Patch
- Implement strict input validation to reject configuration objects containing __proto__ property.
- Use web application firewall rules to block requests containing suspicious __proto__ patterns.
🔍 How to Verify
Check if Vulnerable:
Check package.json or run npm list axios to see if version is below 1.13.5.
Check Version:
npm list axios | grep axios
Verify Fix Applied:
Confirm axios version is 1.13.5 or higher using npm list axios and test with known malicious configuration.
📡 Detection & Monitoring
Log Indicators:
- TypeError crashes in application logs related to mergeConfig function
- Unusual HTTP requests containing __proto__ in payload
Network Indicators:
- HTTP requests with JSON payloads containing __proto__ property
SIEM Query:
source="application.logs" AND "TypeError" AND "mergeConfig"
🔗 References
- https://github.com/axios/axios/commit/28c721588c7a77e7503d0a434e016f852c597b57
- https://github.com/axios/axios/commit/d7ff1409c68168d3057fc3891f911b2b92616f9e
- https://github.com/axios/axios/pull/7369
- https://github.com/axios/axios/pull/7388
- https://github.com/axios/axios/releases/tag/v0.30.3
- https://github.com/axios/axios/releases/tag/v1.13.5
- https://github.com/axios/axios/security/advisories/GHSA-43fc-jf86-j433