CVE-2026-44496: Axios XSRF Cookie Regex DoS Vulnerability – Security Patch Guidance
Axios, a widely-used HTTP client library for JavaScript applications, contains a vulnerability in how it processes XSRF (cross-site request forgery) cookie names. When building a security check, the library doesn't properly escape special characters used in regular expressions, allowing an attacker to craft a malicious cookie name that triggers expensive computational operations. In browser environments, this causes the application to freeze or become unresponsive while processing requests. The vulnerability does not affect Node.js server applications, React Native, or web workers. Versions 0.32.0 and later on the 0.x line and 1.16.0 and later on the 1.x line resolve this issue.
Source data · NVD / CISA · public domain
- CVSS
- 3.1 · 7.5 HIGH · CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
- Weaknesses (CWE)
- CWE-1333, CWE-400
- Affected products
- 1 configuration(s)
- Published / Modified
- 2026-06-11 / 2026-07-17
NVD description (verbatim)
Axios is a promise based HTTP client for the browser and Node.js. Axios versions before 0.32.0 on the 0.x line and before 1.16.0 on the 1.x line build a regular expression from the configured XSRF cookie name without escaping regex metacharacters. In standard browser environments, an attacker who can influence the cookie name passed to axios can cause expensive regex backtracking while axios reads document.cookie. The practical impact is client-side availability degradation, such as freezing the affected browser tab while axios prepares a request. The issue does not affect ordinary Node.js HTTP adapter usage, React Native, or web workers, where axios does not read document.cookie. This vulnerability is fixed in 0.32.0 and 1.16.0.
33 reference(s) · View on NVD →
SEC.co analysis · AI-assisted, reviewed against source
Technical summary
The vulnerability stems from unsafe construction of a regular expression using the XSRF cookie name parameter without metacharacter escaping. When axios prepares an HTTP request in a browser environment, it reads document.cookie and applies this unescaped regex pattern. An attacker controlling the cookie name can inject regex metacharacters that cause catastrophic backtracking, where the regex engine consumes exponential CPU resources attempting to match the input. This denial-of-service condition affects only browser contexts where axios reads cookies; server-side Node.js HTTP adapter usage is unaffected because it does not access document.cookie. The issue maps to CWE-1333 (Inefficient Regular Expression Complexity) and CWE-400 (Uncontrolled Resource Consumption), both resource exhaustion weaknesses.
Business impact
Client-side availability is the primary impact. Users accessing web applications built with vulnerable axios versions may experience browser tab freezes, slowdowns, or require manual tab closure and reload. For applications handling sensitive operations (financial transactions, form submissions, API calls), this disruption degrades user experience and could interrupt critical workflows. However, the vulnerability does not leak data or enable unauthorized access. Affected organizations should prioritize patches for customer-facing web applications where user experience directly impacts revenue or satisfaction. Internal tools and APIs may face lower business priority unless they support time-sensitive operations.
Affected systems
This vulnerability affects browser-based JavaScript applications using axios before version 0.32.0 on the 0.x release line or before version 1.16.0 on the 1.x release line. Any web application, single-page application (SPA), or progressive web app (PWA) that includes axios and relies on its XSRF protection is potentially exposed if running in a standard browser environment. Node.js server applications, React Native mobile apps, and web worker contexts are not affected. The severity correlates with how much direct end-user exposure the application has; internal dashboards or B2B tools may have lower blast radius than public-facing consumer applications.
Exploitability
Exploitation requires an attacker to influence the XSRF cookie name passed to axios. In typical configurations, the cookie name is hardcoded in application source code or set by the server, making direct exploitation difficult. However, in scenarios where cookie names are user-controllable or derived from untrusted input (e.g., configuration endpoints, local storage, URL parameters), the risk increases. The attack requires no authentication, no special privileges, and no user interaction beyond normal browsing. The CVSS score of 7.5 reflects a high-severity availability impact across network boundaries. Practical exploitation depends on the specific application architecture and whether any input vectors to the cookie name configuration exist.
Remediation
Update axios to version 0.32.0 or later on the 0.x line, or version 1.16.0 or later on the 1.x line. Most organizations should prioritize the 1.x line, as it is the actively maintained version. Review application manifests and lock files to identify all direct and transitive dependencies on axios. For large applications, test the updated version in a staging environment to confirm compatibility, though these patch releases are designed to be drop-in replacements. If immediate patching is infeasible, assess whether your application's cookie name configuration is exposed to any untrusted input; if the cookie name is strictly hardcoded, risk is mitigated.
Patch guidance
Patching is straightforward: update axios in your package.json or equivalent dependency manager to the fixed versions (0.32.0+ or 1.16.0+), then reinstall dependencies. For npm: `npm install axios@latest` or specify a version constraint like `^1.16.0`. For yarn: `yarn upgrade axios`. Verify the update is reflected in your lock file (package-lock.json or yarn.lock). Re-run your application's test suite and conduct basic smoke testing of XSRF-protected endpoints to ensure the patch does not introduce regressions. Consider automated dependency scanning tools (e.g., Dependabot, Snyk) to flag future vulnerable versions and reduce manual tracking overhead.
Detection guidance
Identify instances of axios in your codebase using static analysis: search package.json files, inspect node_modules, and review transitive dependencies via `npm ls axios` or `yarn list axios`. Compare installed versions against the fixed thresholds (0.32.0 for 0.x, 1.16.0 for 1.x). At runtime, monitor browser console errors or performance degradation that could indicate exploitation attempts, though detection is challenging without application-specific logging. If you have control over the server, verify that XSRF cookie names are hardcoded and not derived from user input. Web Application Firewalls (WAFs) cannot meaningfully detect this client-side issue, as the malicious payload resides in cookies, not in HTTP requests themselves.
Why prioritize this
This vulnerability should be addressed with moderate-to-high priority. The CVSS score of 7.5 and high severity reflect direct user impact. Unlike remote code execution vulnerabilities, the practical harm is limited to availability, not confidentiality or integrity. Customer-facing web applications should be patched within 1–2 weeks. Internal tools and APIs may tolerate slightly longer timelines if operational risk is low. The low barrier to patching (a dependency update) makes this a good candidate for early remediation before more complex vulnerabilities.
Risk score, explained
The CVSS v3.1 score of 7.5 (HIGH) reflects the following factors: (1) the attack vector is Network with no authentication or privileges required, making it broadly exploitable; (2) the attack complexity is Low, meaning a standard browser environment and cookie control suffice; (3) the impact is limited to Availability (denial of service via CPU exhaustion), not Confidentiality or Integrity, which reduces severity below Critical; (4) the User Interaction field is None, indicating the user does not need to click a link or take special action for the freeze to occur. The score appropriately reflects a significant but containable risk that should not delay critical security work on more impactful vulnerabilities.
Frequently asked questions
Does this vulnerability affect my Node.js server-side axios usage?
No. The vulnerability is specific to browser environments where axios reads document.cookie. Server-side Node.js applications using axios's HTTP adapter do not access cookies via document.cookie and are not affected. If you use axios exclusively on the backend, you do not need to patch for this issue, though upgrading is still recommended for general maintainability.
What if I use axios but don't configure XSRF protection?
By default, axios includes XSRF protection mechanisms that build the vulnerable regex. If you have explicitly disabled XSRF handling or do not configure an XSRF cookie name in your axios instance, the code path that triggers this bug may not be reached. However, verify your configuration; if you are uncertain, patching is the safest option and carries no downside.
Can a WAF or CDN protect me from this vulnerability?
No. Web Application Firewalls and CDNs operate at the network level and cannot intercept or modify JavaScript execution inside the browser. This is a client-side vulnerability; the protection must come from updating the axios library itself. Server-side security controls are not an effective mitigation.
How long does the browser freeze last if this is exploited?
The duration depends on the malicious cookie name's complexity and the browser's regex engine performance. Freezes could range from a few seconds to tens of seconds, causing the tab to become unresponsive and potentially requiring the user to force-close or refresh the tab. The exact duration is not specified in public reports, but any freeze significantly impacts user experience.
This analysis is based on CVE-2026-44496 as published and may not reflect vendor advisories or ongoing threat intelligence updates. Readers should verify patch availability and compatibility with their specific application environment before deploying updates. SEC.co provides this information for risk assessment purposes; actual remediation decisions should incorporate your organization's security policies, operational constraints, and testing protocols. No exploit code or weaponized proof-of-concept details are provided herein. Source: NVD (public-domain), retrieved 2026-07-20. Analysis generated by SEC.co (claude-haiku-4-5).
Related vulnerabilities
- CVE-2026-10291MEDIUMReDoS in Enderfga claw-orchestrator validateRegex—Security Update
- CVE-2026-10691MEDIUMReDoS Vulnerability in DesktopCommanderMCP Search Manager
- CVE-2026-10692MEDIUMReDoS Vulnerability in code-index-mcp Up to 2.14.0 – Patch Available
- CVE-2026-11478LOWInefficient Regex Complexity in kokke tiny-regex-c
- CVE-2026-44796MEDIUMNautobot Denial of Service via ReDoS in Bulk-Rename Endpoints
- CVE-2024-14036HIGHDräger Core Denial of Service via Malformed SDC Messages
- CVE-2025-52293HIGHGPAC MP4Box HEVC Parser Denial of Service (CVSS 7.5)
- CVE-2026-10069HIGHShibby Tomato miniupnpd Resource Exhaustion Vulnerability