org.mvnpm:axios@1.16.0

  • latest version

    1.21.0

  • latest non vulnerable version

  • first published

    3 years ago

  • latest version published

    27 days ago

  • licenses detected

  • package registry

  • Direct Vulnerabilities

    Known vulnerabilities in the org.mvnpm:axios package. This does not include vulnerabilities belonging to this package’s dependencies.

    Fix vulnerabilities automatically

    Snyk's AI Trust Platform automatically finds the best upgrade path and integrates with your development workflows. Secure your code at zero cost.

    Fix for free
    VulnerabilityVulnerable Version
    • M
    Improper Isolation or Compartmentalization

    org.mvnpm:axios is a promise-based HTTP client for the browser and Node.js.

    Affected versions of this package are vulnerable to Improper Isolation or Compartmentalization in lib/helpers/shouldBypassProxy.js, which matches NO_PROXY entries by exact host or IP and has no parsing for CIDR notation, so an entry such as 127.0.0.0/8 or 10.0.0.0/8 never matches and the request is routed through the configured proxy. An attacker able to observe or operate that proxy can read internal hostnames, request URLs, headers, and any credentials those requests carry, by receiving traffic the deployment intended to keep direct. This requires a Node.js deployment with HTTP_PROXY or HTTPS_PROXY set, at least one NO_PROXY entry written in CIDR form, and a proxy sitting outside the intended trust boundary, and exact host or IP entries in NO_PROXY are matched correctly.

    Note: This is only exploitable when requests are configured with proxy: false.

    How to fix Improper Isolation or Compartmentalization?

    Upgrade org.mvnpm:axios to version 1.20.0 or higher.

    [1.15.0,1.20.0)
    • H
    Prototype Pollution

    org.mvnpm:axios is a promise-based HTTP client for the browser and Node.js.

    Affected versions of this package are vulnerable to Prototype Pollution via insufficient hardening of runtime option handling across multiple request-processing helpers (lib/helpers/resolveConfig.js, lib/helpers/toFormData.js, lib/adapters/fetch.js, and related files). An attacker can supply a manipulated configuration object that overrides internally owned fetch options (such as body, headers, method, signal) or bypasses the default formSerializer.maxDepth limit, leading to integrity violations in outgoing requests or a crash causing denial of service.

    Note: This is only exploitable when the caller does not explicitly set formSerializer.maxDepth, allowing a prototype-level or caller-supplied value to override the expected default.

    How to fix Prototype Pollution?

    Upgrade org.mvnpm:axios to version 1.20.0 or higher.

    [1.15.1,1.20.0)
    • M
    Prototype Pollution

    org.mvnpm:axios is a promise-based HTTP client for the browser and Node.js.

    Affected versions of this package are vulnerable to Prototype Pollution via insufficient hardening of runtime option handling in the fetch and HTTP adapters (lib/adapters/fetch.js, lib/adapters/http.js, and related helpers). An attacker who can influence request configuration options passed to axios can supply unsanitized values that bypass expected constraints, resulting in unintended modification of downstream system behavior (SI:H) such as request routing or proxy bypass, while leaving the client-side response unaffected (VC:N, VI:N, VA:N).

    How to fix Prototype Pollution?

    Upgrade org.mvnpm:axios to version 1.20.0 or higher.

    [1.7.0,1.20.0)
    • H
    Allocation of Resources Without Limits or Throttling

    org.mvnpm:axios is a promise-based HTTP client for the browser and Node.js.

    Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling via unsafe runtime option handling in the fetch and HTTP adapters, where user-supplied fetchOptions are merged into the resolved request options without sanitization. An attacker who can influence request configuration can trigger uncontrolled resource consumption, crashing the process.

    Note: This is only exploitable when requests follow redirects (i.e., maxRedirects is not set to 0), unless application code manually follows the malicious redirect and re-enters axios.

    How to fix Allocation of Resources Without Limits or Throttling?

    Upgrade org.mvnpm:axios to version 1.20.0 or higher.

    [1.15.0,1.20.0)
    • H
    Server-side Request Forgery (SSRF)

    org.mvnpm:axios is a promise-based HTTP client for the browser and Node.js.

    Affected versions of this package are vulnerable to Server-side Request Forgery (SSRF) via unsafe merging of user-supplied fetchOptions into the resolved request options object in lib/adapters/fetch.js. An attacker who controls request configuration can supply a fetchOptions object with prototype-polluting keys (e.g. __proto__ or constructor), which are spread directly into the options passed to the Fetch API without sanitization, allowing pollution of Object.prototype and affecting downstream system-level behaviour. The fix replaces the spread with Object.assign(Object.create(null), fetchOptions) to strip inherited properties and enforces an allowlist of safe Fetch API keys.

    Note: This is only exploitable when the attacker can influence the fetchOptions configuration passed to axios requests.

    How to fix Server-side Request Forgery (SSRF)?

    Upgrade org.mvnpm:axios to version 1.20.0 or higher.

    [1.13.0,1.20.0)
    • M
    Improper Input Validation

    org.mvnpm:axios is a promise-based HTTP client for the browser and Node.js.

    Affected versions of this package are vulnerable to Improper Input Validation via insufficient hardening of runtime option handling in the fetch and HTTP adapters, where user-supplied fetchOptions are merged into the resolved request options without sanitization. An attacker who can influence request configuration can inject or override internal Axios-owned options (such as body, headers, method, signal, credentials), leading to integrity impact on the downstream system receiving the request.

    How to fix Improper Input Validation?

    Upgrade org.mvnpm:axios to version 1.20.0 or higher.

    [1.12.0,1.20.0)
    • M
    Prototype Pollution

    org.mvnpm:axios is a promise-based HTTP client for the browser and Node.js.

    Affected versions of this package are vulnerable to Prototype Pollution via insufficiently hardened runtime option handling in the fetch and HTTP adapters (lib/adapters/fetch.js, lib/adapters/http.js, and related helpers), where user-controlled or prototype-polluted properties on request configuration objects are merged into fetch/request options without sanitization. An attacker who can introduce a prototype-pollution gadget elsewhere in the application can inject arbitrary properties into the resolved fetch options, leading to integrity violations on outbound requests.

    Note: This is only exploitable if an existing prototype-pollution path is present in the application.

    How to fix Prototype Pollution?

    Upgrade org.mvnpm:axios to version 1.20.0 or higher.

    [1.3.6,1.20.0)
    • H
    Unintended Proxy or Intermediary ('Confused Deputy')

    org.mvnpm:axios is a promise-based HTTP client for the browser and Node.js.

    Affected versions of this package are vulnerable to Unintended Proxy or Intermediary ('Confused Deputy') via insufficient hardening of runtime option handling in the fetch and HTTP adapters (lib/adapters/fetch.js, lib/adapters/http.js, and related helpers). An authenticated attacker can supply malicious request options that are passed through without sanitization, allowing them to override Axios-controlled fetch properties such as body, headers, method, signal, duplex, and credentials, leading to a full compromise of request confidentiality and integrity.

    How to fix Unintended Proxy or Intermediary ('Confused Deputy')?

    Upgrade org.mvnpm:axios to version 1.20.0 or higher.

    [1.15.2,1.20.0)
    • H
    Improper Validation of Specified Quantity in Input

    org.mvnpm:axios is a promise-based HTTP client for the browser and Node.js.

    Affected versions of this package are vulnerable to Improper Validation of Specified Quantity in Input via unsafe runtime option handling in the fetch and HTTP adapters, where user-supplied fetchOptions are merged into the resolved request options without sanitization or allowlist enforcement. An attacker who can influence request configuration can supply option values that override Axios-owned fields (such as signal, method, headers, or body) or inject unexpected fetch option keys, causing the request pipeline to crash and producing a denial of service.

    How to fix Improper Validation of Specified Quantity in Input?

    Upgrade org.mvnpm:axios to version 1.20.0 or higher.

    [1.13.0,1.20.0)
    • H
    Improper Validation of Specified Quantity in Input

    org.mvnpm:axios is a promise-based HTTP client for the browser and Node.js.

    Affected versions of this package are vulnerable to Improper Validation of Specified Quantity in Input via unsafe runtime option handling in the fetch and HTTP adapters, where user-supplied fetchOptions are merged into the resolved request options without sanitization or allowlist enforcement. An attacker who can influence request configuration can supply option values that override Axios-owned fields (such as signal, method, headers, or body) or inject unexpected fetch option keys, causing the request pipeline to crash and producing a denial of service.

    How to fix Improper Validation of Specified Quantity in Input?

    Upgrade org.mvnpm:axios to version 1.20.0 or higher.

    [1.13.0,1.20.0)
    • M
    Prototype Pollution

    org.mvnpm:axios is a promise-based HTTP client for the browser and Node.js.

    Affected versions of this package are vulnerable to Prototype Pollution via unsafe merging of user-supplied fetchOptions in lib/adapters/fetch.js. When a caller passes a fetchOptions object, axios spreads it directly into the resolved request options without sanitizing prototype-inherited properties, allowing an attacker who controls request configuration to pollute Object.prototype and influence downstream system behavior such as request routing or security-sensitive option values.

    Note: This is only exploitable when the attacker can influence the fetchOptions configuration object passed to axios requests.

    How to fix Prototype Pollution?

    Upgrade org.mvnpm:axios to version 1.20.0 or higher.

    [1.3.6,1.20.0)
    • M
    Permissive List of Allowed Inputs

    org.mvnpm:axios is a promise-based HTTP client for the browser and Node.js.

    Affected versions of this package are vulnerable to Permissive List of Allowed Inputs in the isLoopback() and isIPv4Loopback() functions of lib/helpers/shouldBypassProxy.js, which require the first IPv4 octet to be 127 and therefore do not recognize 0.0.0.0 as a loopback address. An attacker who controls the request URL or a redirect target can bypass the NO_PROXY policy for local addresses and route requests to http://0.0.0.0:<port>/ through the configured proxy, reaching internal services, cloud IMDS endpoints, or microservice APIs. Exploitation requires the Node HTTP adapter with HTTP_PROXY or HTTPS_PROXY set and NO_PROXY listing local addresses, attacker control over the URL or redirect target, and a proxy able to reach the local destinations.

    How to fix Permissive List of Allowed Inputs?

    Upgrade org.mvnpm:axios to version 1.18.0 or higher.

    [1.15.0,1.18.0)
    • M
    Prototype Pollution

    org.mvnpm:axios is a promise-based HTTP client for the browser and Node.js.

    Affected versions of this package are vulnerable to Prototype Pollution in the bodyless method aliases in lib/core/Axios.js, the proxy handling in lib/adapters/http.js, and the paramsSerializer read in lib/helpers/resolveConfig.js, which read data, proxy, and paramsSerializer off the config without own-property checks, so polluted Object.prototype values are picked up. An attacker who can pollute Object.prototype can attach body data to a bodyless request such as axios.get(), route requests through an attacker-controlled proxy, or execute an attacker-supplied paramsSerializer during URL serialization, by setting Object.prototype.data, Object.prototype.proxy, or Object.prototype.paramsSerializer. Exploitation requires a separate component to have already polluted Object.prototype, commonly through a transitive dependency.

    Note: This is a bypass of the fix for the vulnerability described in CVE-2026-42264.

    How to fix Prototype Pollution?

    Upgrade org.mvnpm:axios to version 1.18.0 or higher.

    [,1.18.0)
    • M
    Allocation of Resources Without Limits or Throttling

    org.mvnpm:axios is a promise-based HTTP client for the browser and Node.js.

    Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling in the getBodyLength() and resolveBodyLength() functions of lib/adapters/fetch.js, which lack a branch for WHATWG ReadableStream bodies, so the resolved length is undefined and the pre-dispatch maxBodyLength check is skipped. An attacker who controls a streamed request body can transmit uploads that exceed the configured maxBodyLength, causing unexpected outbound egress and consuming upstream API quota or bandwidth, by supplying a ReadableStream without a reliable Content-Length to a fetch-adapter request. Exploitation requires the fetch adapter, a body-bearing method such as POST, PUT, or PATCH, request data supplied as a ReadableStream without a reliable Content-Length, and a finite maxBodyLength, while the Node HTTP adapter and known-length bodies are unaffected.

    How to fix Allocation of Resources Without Limits or Throttling?

    Upgrade org.mvnpm:axios to version 1.18.0 or higher.

    [1.7.0,1.18.0)
    • M
    Prototype Pollution

    org.mvnpm:axios is a promise-based HTTP client for the browser and Node.js.

    Affected versions of this package are vulnerable to Prototype Pollution in the Node HTTP adapter (lib/adapters/http.js), which reads config.proxy through the prototype chain after a request interceptor returns a plain-object clone that lib/core/dispatchRequest.js dispatches without re-applying the null-prototype hardening. An attacker who can pollute Object.prototype.proxy can route a victim's outbound plaintext HTTP requests through an attacker-controlled proxy, disclosing Authorization headers, Basic credentials, request metadata, and POST bodies and enabling forged responses, when the application uses an interceptor that returns a spread or Object.assign copy of the config. Exploitation requires the Node HTTP adapter, a separately polluted Object.prototype.proxy, a request interceptor that returns a plain-object copy of the config, and no own proxy value on the request, and HTTPS under normal TLS validation does not disclose the headers or body.

    How to fix Prototype Pollution?

    Upgrade org.mvnpm:axios to version 1.18.0 or higher.

    [1.3.6,1.18.0)
    • M
    Prototype Pollution

    org.mvnpm:axios is a promise-based HTTP client for the browser and Node.js.

    Affected versions of this package are vulnerable to Prototype Pollution n the getMergedValue() function of lib/core/mergeConfig.js, which clones nested option objects such as auth and paramsSerializer into plain {} containers that inherit from Object.prototype, so downstream reads in lib/helpers/resolveConfig.js, lib/adapters/http.js, and lib/helpers/buildURL.js pick up polluted values without own-property checks. An attacker who can pollute Object.prototype can inject an Authorization: Basic header or fully override query-string serialization through paramsSerializer.serialize, enabling request tampering, cache poisoning, or signature-check bypass, on axios calls that pass placeholder nested objects like auth: {} or paramsSerializer: {}. Exploitation requires a separate component to have already polluted Object.prototype and the application to pass empty or partial nested option objects.

    How to fix Prototype Pollution?

    Upgrade org.mvnpm:axios to version 1.18.0 or higher.

    [0.21.1,1.18.0)
    • M
    Allocation of Resources Without Limits or Throttling

    org.mvnpm:axios is a promise-based HTTP client for the browser and Node.js.

    Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling in the HTTP/2 stream handling of lib/adapters/http.js, which does not enforce maxBodyLength on streamed uploads because the byte-counting wrapper is gated on config.maxBodyLength > -1 && config.maxRedirects === 0 and the HTTP/2 path bypasses follow-redirects with default redirect settings. An attacker who controls the upload stream can force the application to transmit arbitrarily large outbound payloads, exhausting egress, upstream quota, or connection and memory budgets, by feeding stream contents into an HTTP/2 request with a finite maxBodyLength that the limit check never inspects. Exploitation requires the Node HTTP adapter with httpVersion: 2, request data supplied as a stream, and a finite maxBodyLength, while HTTP/1.1 requests through follow-redirects, buffered String/Buffer/ArrayBuffer bodies, and the default unlimited maxBodyLength: -1 are unaffected.

    How to fix Allocation of Resources Without Limits or Throttling?

    Upgrade org.mvnpm:axios to version 1.18.0 or higher.

    [1.13.0,1.18.0)
    • M
    Uncontrolled Recursion

    org.mvnpm:axios is a promise-based HTTP client for the browser and Node.js.

    Affected versions of this package are vulnerable to Uncontrolled Recursion in the defaultVisitor function of lib/helpers/toFormData.js, which calls JSON.stringify() on a value when its top-level key ends in {}, before the maxDepth guard can inspect the nested structure. An attacker can crash the process by supplying an object with a top-level key ending in {} and thousands of levels of nesting, which native JSON.stringify() recurses through until the call stack overflows with a RangeError. Exploitation requires the application to pass untrusted input through axios as data or params, with a top-level key ending in {} and nesting beyond roughly 2500 to 3000 levels.

    Note: This is a bypass of the fix for the vulnerability described in CVE-2026-42039.

    How to fix Uncontrolled Recursion?

    Upgrade org.mvnpm:axios to version 1.18.0 or higher.

    [,1.18.0)
    • M
    Prototype Pollution

    org.mvnpm:axios is a promise-based HTTP client for the browser and Node.js.

    Affected versions of this package are vulnerable to Prototype Pollution in the Basic authentication header construction in lib/adapters/http.js and lib/helpers/resolveConfig.js, which read the username and password from the auth object without own-property checks, so the reads traverse the prototype chain. An attacker who can pollute Object.prototype.username or Object.prototype.password can inject or override the Basic auth header on axios requests that pass an empty or partial own auth object, enabling credential exfiltration or outbound request tampering. Exploitation requires a separate prototype pollution primitive already present in the host process and an axios call pattern that supplies an empty or partial auth object, such as auth: opts.auth || {}.

    Note: This is a bypass of the fix for the vulnerability described in CVE-2026-42264.

    How to fix Prototype Pollution?

    Upgrade org.mvnpm:axios to version 1.18.0 or higher.

    [1.3.6,1.18.0)
    • M
    Uncontrolled Recursion

    org.mvnpm:axios is a promise-based HTTP client for the browser and Node.js.

    Affected versions of this package are vulnerable to Uncontrolled Recursion in the buildPath() function of lib/helpers/formDataToJSON.js, which recurses once per FormData key path segment without enforcing a maximum depth. An attacker can crash the process by supplying a FormData field name with thousands of nested bracket segments, such as a[x][x][x]..., which drives formDataToJSON() into recursion that exhausts the JavaScript call stack with a RangeError. Exploitation requires the application to process untrusted FormData through formToJSON() or by sending it with a JSON content type.

    How to fix Uncontrolled Recursion?

    Upgrade org.mvnpm:axios to version 1.18.0 or higher.

    [1.3.6,1.18.0)
    • M
    Allocation of Resources Without Limits or Throttling

    org.mvnpm:axios is a promise-based HTTP client for the browser and Node.js.

    Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling in the buildPath() function of lib/helpers/formDataToJSON.js, which recurses over bracket-delimited FormData key segments without a depth limit. An attacker can crash the Node.js process by supplying a FormData field name with tens of thousands of nested bracket segments, such as a[x][x][x]..., which exhausts the JavaScript call stack with a RangeError. Exploitation requires the application to pass attacker-controlled FormData into formDataToJSON, either by calling axios.formToJSON() on it or by sending it through axios with a JSON content type.

    How to fix Allocation of Resources Without Limits or Throttling?

    Upgrade org.mvnpm:axios to version 1.18.0 or higher.

    [1.3.6,1.18.0)