Security Resilience

CVE-2026-42042

Info Disclosure in Axios ≤ 0.31.1

Public PoCInfo Disclosure
Published
24 April 2026
Modified
11 November 2026
Patch / advisory
CVSS Score v3.1 5.4
Click a component to see what it means
Raw vectorCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
EPSS Score 0.0034 20th percentile
Risk Priority 43 floored blend · peak EPSS

CVSS and EPSS are reproduced from their sources (NVD, FIRST EPSS). EPSS, Forum of Incident Response and Security Teams (FIRST), epss.first.org. Risk Priority is our own derived reading, not an NVD score.

Summary

CVE-2026-42042 is a medium-severity Permissive List of Allowed Inputs (CWE-183) vulnerability in Axios. Its CVSS base score is 5.4 (Medium).

Operationally, exploitation aligns with the MITRE ATT&CK technique File/Path Exclusions (T1564.012); ranked at the 20th percentile by exploit likelihood (below the median); it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.

The strongest mitigations our analysis identified map to AC-3 (Access Enforcement) and AC-4 (Information Flow Enforcement) — see the control section below for these in your framework.

OWASP Top 10 for Web (2025)

EU & UK References

Vulnerability Data

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…

more

property is set to any truthy non-boolean value (via prototype pollution or misconfiguration), the same-origin check (isURLSameOrigin) is short-circuited, causing XSRF tokens to be sent to all request targets including cross-origin servers controlled by an attacker. This vulnerability is fixed in 1.15.1 and 0.31.1.

CWE(s)

Related Threats

MITRE ATT&CK Enterprise Techniques

MITRE ATT&CK v20.0

T1078 Valid Accounts Stealth
Adversaries may obtain and abuse credentials of existing accounts as a means of gaining Initial Access, Persistence, Privilege Escalation, or Defense Evasion.
T1087 Account Discovery Discovery
Adversaries may attempt to get a listing of valid accounts, usernames, or email addresses on a system or within a compromised environment.
T1187 Forced Authentication Credential Access
Adversaries may gather credential material by invoking or forcing a user to automatically provide authentication information through a mechanism in which they can intercept.
T1552.007 Container API Credential Access
Adversaries may gather credentials via APIs within a containers environment.
T1564.012 File/Path Exclusions Stealth
Adversaries may attempt to hide their file-based artifacts by writing them to specific folders or file names excluded from antivirus (AV) scanning and other defensive capabilities.
T1589.001 Credentials Reconnaissance
Adversaries may gather credentials that can be used during targeting.
Derived from this CVE’s CWE(s) via the direct CWE→ATT&CK cross-walk.

CVEs Like This One

CVE-2026-44487Same product: Axios Axios
CVE-2026-44486Same product: Axios Axios
CVE-2026-42043Same product: Axios Axios
CVE-2026-25639Same product: Axios Axios
CVE-2025-62718Same product: Axios Axios
CVE-2026-40175Same product: Axios Axios
CVE-2026-42037Same product: Axios Axios
CVE-2026-42038Same product: Axios Axios
CVE-2025-27152Same product: Axios Axios
CVE-2026-44492Same product: Axios Axios

Affected Assets

axios
axios
≤ 0.31.1 · 1.0.0 — 1.15.1

Mitigating Controls

Control response

Prevent
Stop it (NIST 800-53)

—

Detect
Catch it (NIST detect / respond)

—

Harden
Shrink the surface (DISA STIG)
  • 1 hardening rule · 1 OS baseline
Validate
Prove the fix (OWASP ASVS)
  • V1.5.2
  • V4.4.2
  • V14.2.3

Mitigating Controls (NIST 800-53 r5)

Our mappings, made for this CVE.

Directly enforces policy-based information flow rules that block transmission of sensitive data to unauthorized actors.

Enforces authorizations on logical access so that sensitive data is not released to unauthorized recipients.

Strict validity checks on inputs directly stop overly permissive allow lists from being used as the protection mechanism.

Requires validation of outbound information to ensure sensitive content is not disclosed in responses or messages.

Mitigating Controls (NIST CSF 2.0)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→CSF cross-walk — links open the control.

PR.PS-06 mostly match
blocks

Secure SDLC practices directly require rigorous allow-list design and testing that prevents permissive input validation.

DE.CM-09 partial match
blocks

Monitoring runtime data flows and outputs can detect sensitive data being transmitted.

PR.DS-02 partial match
blocks

Protecting data-in-transit can include filtering or encrypting to avoid exposing sensitive content.

PR.DS-10 partial match
blocks

Protecting data-in-use includes removing confidential values before they are processed or sent.

Mitigating Controls (ISO/IEC 27001:2022 Annex A)

Our mappings, derived directly from the weakness types (CWEs) cited in the NVD entry via our CWE→ISO cross-walk — links open the control.

blocks

Data-masking techniques can prevent sensitive values from appearing in transmitted payloads.

finds

Security testing can detect overly broad allow-lists, but does not inherently prevent their creation.

prevents

Training helps developers understand allowlist risks and the need to vet each entry, but CWE-183 is a specific implementation defect where the developer includes unsafe inputs in the list — a detailed design choice that training alone does not fully prevent, mirroring the A.6.3 -> CWE-598 partial grade for developer-introduced weaknesses.

blocks

A.8.12's DLP tools can detect and block outbound transmissions containing sensitive data patterns (e.g., credentials in error messages, email addresses in API responses), masking the code defect during egress, but the application-level weakness remains and many instances — internal transmissions, novel data formats like heap addresses, legitimate API responses to authorized recipients within the trust boundary — fall outside DLP's monitored channels.

prevents

Secure coding standards enforce rigorous input validation and reject unsafe values, mitigating permissive allow-list weaknesses.

finds

A.8.30 is a governance/contractual control that mandates the outsourced developer follow secure practices (8.25–8.29) and provides oversight via acceptance testing and audit rights; the actual finding of a permissive allowlist is performed by the testing and code-review mechanisms that live in 8.28/8.29, which A.8.30 references but does not itself carry out — following the A.5.1 doctrine, a clause requiring another clause to be applied does not inherit its finding effect.

References