CVE-2026-42042 — Axios is a promise based HTTP client for the browser and
CVE-2026-42042 — 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's XSRF token protection logic uses JavaScript truthy/falsy semantics instead of strict boolean comparison for the withXSRFToken config property. When this property is set
What This Means For You
- If your environment is affected by CWE-183, CWE-201, review your exposure and prioritize patching based on your environment. Monitor vendor advisories for CVE-2026-42042 updates and patches.
Related ATT&CK Techniques
🛡️ Detection Rules
3 rules · 6 SIEM formats3 detection rules auto-generated for this incident, mapped to MITRE ATT&CK. Sigma YAML is free — export to any SIEM format via the Intel Bot.
Potential XSRF Token Leakage via Axios Misconfiguration — CVE-2026-42042
title: Potential XSRF Token Leakage via Axios Misconfiguration — CVE-2026-42042
id: scw-2026-04-24-ai-1
status: experimental
level: medium
description: |
This rule detects potential exploitation of CVE-2026-42042. The vulnerability occurs when the Axios library's XSRF token protection is bypassed due to non-strict boolean comparison for the 'withXSRFToken' configuration property. This can lead to XSRF tokens being sent to unintended cross-origin servers. This detection looks for the presence of 'withXSRFToken' in the URI query, which is a strong indicator of the vulnerable configuration being triggered.
author: SCW Feed Engine (AI-generated)
date: 2026-04-24
references:
- https://shimiscyberworld.com/posts/nvd-CVE-2026-42042/
tags:
- attack.initial_access
- attack.t1190
logsource:
category: webserver
detection:
selection:
cs-uri-query|contains:
- 'withXSRFToken'
condition: selection
falsepositives:
- Legitimate administrative activity
Source: Shimi's Cyber World · License & reuse
Indicators of Compromise
| ID | Type | Indicator |
|---|---|---|
| CVE-2026-42042 | vulnerability | CVE-2026-42042 |
| CWE-183 | weakness | CWE-183 |
| CWE-201 | weakness | CWE-201 |
Source & Attribution
| Source Platform | NVD |
| Channel | National Vulnerability Database |
| Published | April 24, 2026 at 21:16 UTC |
This content was curated and summarized by Shimi's Cyber World for informational purposes. It is not copied or republished in full. All intellectual property rights remain with the original author and source.
Believe this infringes your rights? Submit a takedown request.