Skip to content

Update dependency axios to v0.30.3 [SECURITY] - #48

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/npm-axios-vulnerability
Open

Update dependency axios to v0.30.3 [SECURITY]#48
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/npm-axios-vulnerability

Conversation

@renovate

@renovate renovate Bot commented Feb 11, 2026

Copy link
Copy Markdown

This PR contains the following updates:

Package Change Age Confidence
axios (source) 0.30.20.30.3 age confidence

Axios is Vulnerable to Denial of Service via proto Key in mergeConfig

CVE-2026-25639 / GHSA-43fc-jf86-j433

More information

Details

Denial of Service via proto Key in mergeConfig
Summary

The mergeConfig function in axios crashes with a TypeError when processing configuration objects containing __proto__ as an own property. An attacker can trigger this by providing a malicious configuration object created via JSON.parse(), causing complete denial of service.

Details

The vulnerability exists in lib/core/mergeConfig.js at lines 98-101:

utils.forEach(Object.keys({ ...config1, ...config2 }), function computeConfigValue(prop) {
  const merge = mergeMap[prop] || mergeDeepProperties;
  const configValue = merge(config1[prop], config2[prop], prop);
  (utils.isUndefined(configValue) && merge !== mergeDirectKeys) || (config[prop] = configValue);
});

When prop is '__proto__':

  1. JSON.parse('{"__proto__": {...}}') creates an object with __proto__ as an own enumerable property
  2. Object.keys() includes '__proto__' in the iteration
  3. mergeMap['__proto__'] performs prototype chain lookup, returning Object.prototype (truthy object)
  4. The expression mergeMap[prop] || mergeDeepProperties evaluates to Object.prototype
  5. Object.prototype(...) throws TypeError: merge is not a function

The mergeConfig function is called by:

  • Axios._request() at lib/core/Axios.js:75
  • Axios.getUri() at lib/core/Axios.js:201
  • All HTTP method shortcuts (get, post, etc.) at lib/core/Axios.js:211,224
PoC
import axios from "axios";

const maliciousConfig = JSON.parse('{"__proto__": {"x": 1}}');
await axios.get("https://httpbin.org/get", maliciousConfig);

Reproduction steps:

  1. Clone axios repository or npm install axios
  2. Create file poc.mjs with the code above
  3. Run: node poc.mjs
  4. Observe the TypeError crash

Verified output (axios 1.13.4):

TypeError: merge is not a function
    at computeConfigValue (lib/core/mergeConfig.js:100:25)
    at Object.forEach (lib/utils.js:280:10)
    at mergeConfig (lib/core/mergeConfig.js:98:9)

Control tests performed:

Test Config Result
Normal config {"timeout": 5000} SUCCESS
Malicious config JSON.parse('{"__proto__": {"x": 1}}') CRASH
Nested object {"headers": {"X-Test": "value"}} SUCCESS

Attack scenario:
An application that accepts user input, parses it with JSON.parse(), and passes it to axios configuration will crash when receiving the payload {"__proto__": {"x": 1}}.

Impact

Denial of Service - Any application using axios that processes user-controlled JSON and passes it to axios configuration methods is vulnerable. The application will crash when processing the malicious payload.

Affected environments:

  • Node.js servers using axios for HTTP requests
  • Any backend that passes parsed JSON to axios configuration

This is NOT prototype pollution - the application crashes before any assignment occurs.

Severity

  • CVSS Score: 7.5 / 10 (High)
  • Vector String: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

References

This data is provided by the GitHub Advisory Database (CC-BY 4.0).


Release Notes

axios/axios (axios)

v0.30.3: Release notes - v0.30.3

Compare Source

This is a critical security maintenance release for the v0.x branch. It addresses a high-priority vulnerability involving prototype pollution that could lead to a Denial of Service (DoS).

Recommendation: All users currently on the 0.x release line should upgrade to this version immediately to ensure environment stability.

🛡️ Security Fixes

  • Backport: Fix DoS via proto key in merge config
    • Patched a vulnerability where specifically crafted configuration objects using the proto key could cause a Denial of Service during the merge process. - by @​FeBe95 in PR #​7388

⚙️ Maintenance & CI

  • CI Infrastructure Update
    • Updated Continuous Integration workflows for the v0.x branch to maintain long-term support and build reliability. - by @​jasonsaayman in PR #​7407

⚠️ Breaking Changes

Configuration Merging Behavior:

As part of the security fix, Axios now restricts the merging of the proto key within configuration objects. If your codebase relies on unconventional deep-merging patterns that target the object prototype via Axios config, those operations will now be blocked. This is a necessary change to prevent prototype pollution.

Full Changelog: v0.30.2...v0.30.3


Configuration

📅 Schedule: (in timezone Europe/Oslo)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Enabled.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot added the security label Feb 11, 2026
@renovate
renovate Bot force-pushed the renovate/npm-axios-vulnerability branch from 4e16c1c to 947834d Compare February 17, 2026 17:44
@renovate renovate Bot changed the title Update dependency axios to v1 [SECURITY] Update dependency axios to v1 [SECURITY] - autoclosed Feb 18, 2026
@renovate renovate Bot closed this Feb 18, 2026
@renovate
renovate Bot deleted the renovate/npm-axios-vulnerability branch February 18, 2026 19:49
@renovate renovate Bot changed the title Update dependency axios to v1 [SECURITY] - autoclosed Update dependency axios to v0.30.3 [SECURITY] Feb 20, 2026
@renovate renovate Bot reopened this Feb 20, 2026
@renovate
renovate Bot force-pushed the renovate/npm-axios-vulnerability branch 2 times, most recently from 947834d to 66266b7 Compare February 20, 2026 22:42
@renovate
renovate Bot force-pushed the renovate/npm-axios-vulnerability branch from 66266b7 to 6a05805 Compare March 5, 2026 16:39
@renovate
renovate Bot force-pushed the renovate/npm-axios-vulnerability branch from 6a05805 to cf36284 Compare March 13, 2026 12:35
@renovate renovate Bot changed the title Update dependency axios to v0.30.3 [SECURITY] Update dependency axios to v0.30.3 [SECURITY] - autoclosed Mar 27, 2026
@renovate renovate Bot closed this Mar 27, 2026
@renovate renovate Bot changed the title Update dependency axios to v0.30.3 [SECURITY] - autoclosed Update dependency axios to v0.30.3 [SECURITY] Mar 30, 2026
@renovate renovate Bot reopened this Mar 30, 2026
@renovate
renovate Bot force-pushed the renovate/npm-axios-vulnerability branch 3 times, most recently from add8206 to 32b4e93 Compare April 1, 2026 15:48
@renovate
renovate Bot force-pushed the renovate/npm-axios-vulnerability branch from 32b4e93 to cf32584 Compare April 8, 2026 15:55
@renovate renovate Bot changed the title Update dependency axios to v0.30.3 [SECURITY] Update dependency axios to v0.30.3 [SECURITY] - autoclosed Apr 27, 2026
@renovate renovate Bot closed this Apr 27, 2026
@renovate renovate Bot changed the title Update dependency axios to v0.30.3 [SECURITY] - autoclosed Update dependency axios to v0.30.3 [SECURITY] Apr 27, 2026
@renovate renovate Bot reopened this Apr 27, 2026
@renovate
renovate Bot force-pushed the renovate/npm-axios-vulnerability branch 3 times, most recently from b23cb55 to 8ee892a Compare April 29, 2026 17:51
@renovate
renovate Bot force-pushed the renovate/npm-axios-vulnerability branch 2 times, most recently from 62ec38c to 863adf3 Compare May 18, 2026 13:32
@renovate
renovate Bot force-pushed the renovate/npm-axios-vulnerability branch 2 times, most recently from e371bef to 3bcafb6 Compare June 2, 2026 00:00
@renovate
renovate Bot force-pushed the renovate/npm-axios-vulnerability branch from 3bcafb6 to a7fa9c4 Compare June 11, 2026 10:05
@renovate
renovate Bot force-pushed the renovate/npm-axios-vulnerability branch 2 times, most recently from 04c2752 to 7e971a8 Compare July 17, 2026 03:14
@renovate
renovate Bot force-pushed the renovate/npm-axios-vulnerability branch 2 times, most recently from f29a76e to f1e3c81 Compare July 24, 2026 22:49
@renovate
renovate Bot force-pushed the renovate/npm-axios-vulnerability branch from f1e3c81 to 6453f00 Compare July 30, 2026 19:17
@renovate
renovate Bot force-pushed the renovate/npm-axios-vulnerability branch from 6453f00 to 6c3860c Compare August 12, 2026 02:51
@renovate
renovate Bot force-pushed the renovate/npm-axios-vulnerability branch from 6c3860c to a6f7209 Compare August 16, 2026 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants