A denial of service (DoS) vulnerability exists in Axios, a widely used HTTP client library, due to inefficient regular expression handling of crafted data URLs with repeated slashes. This flaw can cause synchronous CPU exhaustion on Node.js services, freezing the event loop and making services unresponsive. The issue affects Red Hat Hardened Images RPMs that include Axios versions prior to the patched release. Red Hat has issued an update including grafana13.1-13.1.6-0.6.hum1 to address this vulnerability.
## Duplicate Advisory
This advisory has been withdrawn because it is a duplicate of GHSA-xj6q-8x83-jv6g. This link is maintained to preserve external references.
## Original Description
axios versions >=1.15.2 and <1.18.0 contain prototype-pollution read-side gadgets in Basic auth subfield handling (lib/adapters/http.js and lib/helpers/resolveConfig.js). When an application is already affected by a separate prototype-pollution primitive and makes an axios request with an own auth object that omits the username and/or password properties, axios reads the inherited Object.prototype.username and Object.prototype.password values and uses them to construct an outbound 'Authorization: Basic ...' header. axios itself does not pollute prototypes. The practical impact is outbound request tampering: an attacker who controls the polluted prototype values can inject attacker-chosen Basic auth credentials or replace an existing Authorization header. Credential disclosure is only possible under additional application-specific conditions.
axios versions from 0.28.0 before 0.33.0 and from 1.0.0 before 1.18.0 contain uncontrolled recursion in formDataToJSON (exposed as axios.formToJSON() and used internally when serializing FormData with Content-Type: application/json). When an application passes attacker-controlled FormData field names, a field name with thousands of nested bracket-delimited segments causes unbounded recursion in buildPath(), exhausting the JavaScript call stack (RangeError: Maximum call stack size exceeded) and causing denial of service for that request, or process termination in applications without appropriate error handling.
Axios versions 0.28.0 and later contain a vulnerability in the formDataToJSON helper function that causes uncontrolled recursion when processing FormData field names with deeply nested bracket segments. This can lead to a denial of service by exhausting the JavaScript call stack and throwing a RangeError. The issue affects applications that convert attacker-controlled FormData to JSON, particularly when using axios.formToJSON() or sending FormData with Content-Type application/json. Normal multipart FormData requests without JSON serialization are not affected. The vulnerability can cause request failures and potentially process termination if exceptions are not handled.
Axios versions from 1.15.2 up to but not including 1.18.0 contain a prototype pollution read-side vulnerability affecting Basic auth subfield handling. If an attacker can pollute Object.prototype with username or password properties and the host application makes an axios request with an auth object missing these own properties, axios will inherit and use the polluted values to construct the Authorization header. This can lead to outbound request tampering by injecting attacker-controlled Basic auth credentials or causing authorization failures. Exploitation requires a separate prototype pollution vulnerability in the host environment and specific axios usage patterns. The vulnerability does not directly leak credentials from axios itself. A fix is available for this issue.
Axios versions starting from 0.28.0 up to but not including 0.33.0, and versions from 1.0.0 up to but not including 1.18.0, contain an uncontrolled recursion vulnerability in the formDataToJSON function. This vulnerability occurs when attacker-controlled FormData key names with thousands of nested bracket segments cause excessive recursive calls, leading to a JavaScript call stack overflow and denial of service. The issue manifests as a RangeError that can crash the process if not properly handled. Normal multipart FormData submissions and axios versions prior to 0.28.0 are not affected.
Kiali 2.11.14, for Red Hat OpenShift Service Mesh 3.1, provides observability for the service mesh by offering a visual representation of the mesh topology and metrics, helping users monitor, trace, and manage efficiently.
Security Fix(es):
* CVE-2026-42264 openshift-service-mesh/kiali-rhel9: Axios: Prototype pollution allows information disclosure and request manipulation (OSSM-14595)
* CVE-2026-42264 openshift-service-mesh/kiali-ossmc-rhel9: Axios: Prototype pollution allows information disclosure and request manipulation (OSSM-14600)
For more details about the security issue(s), including the impact, a CVSS score, acknowledgments, and other related information, refer to the CVE page(s) listed in the References section.
Axios versions from 1.0.0 up to but not including 1.15.1 contain a CRLF injection vulnerability in the multipart/form-data body construction. The vulnerability arises because the value.type property of Blob/File-like objects is interpolated directly into the Content-Type header of each multipart part without sanitizing carriage return and line feed characters. This allows an attacker controlling the MIME type of an uploaded file to inject arbitrary headers into the multipart body, potentially bypassing server-side filters and confusing multipart parsers. The issue is fixed in version 1.15.1.
Axios versions prior to 1.15.1 and 0.31.1 contain a vulnerability in the no_proxy environment variable handling that allows bypassing proxy restrictions via IP aliasing. Specifically, when no_proxy=localhost is set, requests to 127.0.0.1 and [::1] do not bypass the proxy as intended, due to the shouldBypassProxy() function performing only string matching without resolving loopback IP aliases. This can lead to server-side request forgery (SSRF) risks where an attacker can route internal requests through a malicious proxy.
Axios versions prior to 1.15.1 and 0.31.1 have a vulnerability where streamed HTTP request bodies bypass the maxBodyLength limit when maxRedirects is set to 0. This allows oversized streamed uploads to be sent fully despite configured body size limits, potentially leading to denial of service or resource exhaustion in Node.js services using Axios for streamed uploads.
Axios versions prior to 1.15.1 and 0.31.1 have a vulnerability where the maxContentLength limit is bypassed when using responseType 'stream'. This allows applications to consume arbitrarily large streamed HTTP responses, potentially leading to denial of service due to unbounded resource consumption.
Axios versions from 1.0.0 up to 1.15.0 and versions below 0.31.1 are vulnerable to prototype pollution gadgets that allow attackers to tamper with JSON responses and hijack HTTP requests. This occurs when Object.prototype is polluted by a co-dependency, enabling attackers to intercept and modify JSON responses or hijack HTTP transport to access request credentials and data. The vulnerability arises because axios merges configuration objects without guarding against inherited properties, allowing polluted prototype properties to influence behavior such as JSON parsing via a malicious parseReviver function. A fix is available in versions 1.15.1 and 0.31.1.
Axios versions prior to 1.15.1 and 0.31.1 are vulnerable to a prototype pollution issue in the HTTP adapter that allows attackers to inject arbitrary HTTP headers into outgoing requests. This occurs because Axios misidentifies any plain object payload as a FormData instance if Object.prototype is polluted with certain properties, leading to attacker-controlled headers being merged into requests. The vulnerability requires an existing prototype pollution primitive in the application's dependency chain and usage of Axios with a data payload. The issue can lead to authentication bypass, session fixation, privilege escalation, and IP spoofing or WAF bypass.
Axios contains a vulnerability in its XSRF token protection logic where the `withXSRFToken` configuration property is coerced using JavaScript truthy/falsy semantics rather than strict boolean checks. This flaw allows prototype pollution or misconfiguration to cause the same-origin check to be bypassed, resulting in XSRF tokens being sent to cross-origin servers, potentially controlled by attackers. The vulnerability affects all Axios versions from 1.0.0 up to but not including 1.15.1, and all versions before 0.31.1. It is limited to browser environments and enables theft of anti-CSRF tokens, which can facilitate CSRF attacks but does not directly compromise session tokens. A fix is available in versions 1.15.1 and 0.31.1.
Axios versions prior to 1.15.1 and 0.31.1 are vulnerable to a prototype pollution attack that allows an attacker to bypass authentication by causing all HTTP error responses to be treated as successful. This occurs due to the use of the 'in' operator in the 'validateStatus' merge strategy, which traverses the prototype chain and can inherit a polluted 'validateStatus' function returning true. This vulnerability enables silent suppression of HTTP error codes such as 401, 403, and 500, leading to unauthorized access and bypass of application-level error handling.
Axios versions prior to 1.15.1 and 0.31.1 contain an incomplete fix for CVE-2025-62718, where the NO_PROXY environment variable protection can be bypassed via loopback addresses in the 127.0.0.0/8 subnet. The vulnerability arises because Axios only recognizes 127.0.0.1 as a loopback address, ignoring the full RFC 1122-defined 127.0.0.0/8 range. This allows an attacker controlling the target URL to bypass proxy exclusion rules by using other 127.x.x.x addresses, causing requests to be forwarded to a proxy despite NO_PROXY settings. The issue was patched in Axios 1.15.1 and 0.31.1.
Axios versions from 1.0.0 up to but not including 1.15.2 are vulnerable to a critical prototype pollution gadget in the parseReviver function used during JSON response parsing. This vulnerability allows an attacker who can pollute Object.prototype in the application's dependency tree to invisibly and selectively modify JSON API responses, enabling privilege escalation, balance manipulation, and authorization bypass without altering the overall response structure. The flaw arises because parseReviver is not validated or constrained and is called for every key-value pair in JSON responses. A fix is available in version 1.15.2.
Axios versions prior to 1.15.1 and 0.31.1 contain a low-severity vulnerability (CVE-2026-42040) in the AxiosURLSearchParams helper module. The internal encode function incorrectly reverses the percent-encoding of null bytes, converting the safe '%00' sequence back into a raw null byte. This defect can lead to null byte injection when using AxiosURLSearchParams directly without an external encoder, potentially causing issues such as URL truncation in downstream C-based parsers. The standard axios request flow using buildURL is not affected. A fix is available in versions 1.15.1 and 0.31.1.
Axios versions prior to 1.15.0 and 0.31.0 do not properly normalize hostnames when evaluating NO_PROXY rules. This allows requests to loopback addresses with trailing dots or IPv6 literals to bypass NO_PROXY protections and be sent through a configured proxy. This behavior can lead to SSRF vulnerabilities by forcing internal or loopback traffic through an attacker-controlled proxy, potentially exposing sensitive internal services.