Skip to content

fix(deps): update dependency axios to v0.30.3 [security]#276

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

fix(deps): update dependency axios to v0.30.3 [security]#276
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/npm-axios-vulnerability

Conversation

@renovate
Copy link
Copy Markdown

@renovate renovate Bot commented Nov 11, 2023

This PR contains the following updates:

Package Change Age Confidence
axios (source) 0.30.00.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

v0.30.2

Compare Source

What's Changed

New Contributors

Full Changelog: axios/axios@v0.30.1...v0.30.2

v0.30.1

Compare Source

Release notes:

Bug Fixes
Contributors to this release

Full Changelog: axios/axios@v0.30.0...v0.30.1


Configuration

📅 Schedule: (UTC)

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

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

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

🔕 Ignore: Close this PR and you won't be reminded about these updates 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 changed the title fix(deps): update dependency axios to v1 [security] fix(deps): update dependency axios to v1 [security] - autoclosed Feb 20, 2024
@renovate renovate Bot closed this Feb 20, 2024
@renovate renovate Bot deleted the renovate/npm-axios-vulnerability branch February 20, 2024 22:53
@renovate renovate Bot changed the title fix(deps): update dependency axios to v1 [security] - autoclosed fix(deps): update dependency axios to v1 [security] Feb 21, 2024
@renovate renovate Bot reopened this Feb 21, 2024
@renovate renovate Bot restored the renovate/npm-axios-vulnerability branch February 21, 2024 22:47
@renovate renovate Bot force-pushed the renovate/npm-axios-vulnerability branch from 05d329f to 7f76e1a Compare February 21, 2024 22:51
@renovate renovate Bot changed the title fix(deps): update dependency axios to v1 [security] fix(deps): update dependency axios to v0.28.0 [security] Feb 21, 2024
@renovate renovate Bot force-pushed the renovate/npm-axios-vulnerability branch from 7f76e1a to 94bbb94 Compare March 14, 2024 15:20
@renovate renovate Bot changed the title fix(deps): update dependency axios to v0.28.0 [security] fix(deps): update dependency axios to v0.28.0 [security] - autoclosed Dec 8, 2024
@renovate renovate Bot closed this Dec 8, 2024
@renovate renovate Bot deleted the renovate/npm-axios-vulnerability branch December 8, 2024 18:37
@renovate renovate Bot changed the title fix(deps): update dependency axios to v0.28.0 [security] - autoclosed fix(deps): update dependency axios to v0.28.0 [security] Dec 8, 2024
@renovate renovate Bot reopened this Dec 8, 2024
@renovate renovate Bot force-pushed the renovate/npm-axios-vulnerability branch from fbee787 to 94bbb94 Compare December 8, 2024 22:24
@renovate renovate Bot force-pushed the renovate/npm-axios-vulnerability branch from 94bbb94 to 447a8ba Compare March 7, 2025 17:55
@renovate renovate Bot changed the title fix(deps): update dependency axios to v0.28.0 [security] fix(deps): update dependency axios to v1 [security] Mar 7, 2025
@renovate renovate Bot force-pushed the renovate/npm-axios-vulnerability branch from 447a8ba to eff7653 Compare March 28, 2025 16:43
@renovate renovate Bot changed the title fix(deps): update dependency axios to v1 [security] fix(deps): update dependency axios to v0.30.0 [security] Mar 28, 2025
@renovate renovate Bot force-pushed the renovate/npm-axios-vulnerability branch from eff7653 to 5f4c643 Compare August 10, 2025 12:28
@renovate renovate Bot force-pushed the renovate/npm-axios-vulnerability branch from 5f4c643 to fe72a10 Compare September 12, 2025 16:06
@renovate renovate Bot changed the title fix(deps): update dependency axios to v0.30.0 [security] fix(deps): update dependency axios to v1 [security] Sep 12, 2025
@renovate renovate Bot changed the title fix(deps): update dependency axios to v1 [security] fix(deps): update dependency axios to v0.30.2 [security] Sep 29, 2025
@renovate renovate Bot force-pushed the renovate/npm-axios-vulnerability branch from fe72a10 to c09c358 Compare September 29, 2025 21:50
@renovate renovate Bot force-pushed the renovate/npm-axios-vulnerability branch from c09c358 to d42c795 Compare October 21, 2025 11:11
@renovate renovate Bot force-pushed the renovate/npm-axios-vulnerability branch from d42c795 to 8fc69a4 Compare November 10, 2025 23:59
@renovate renovate Bot force-pushed the renovate/npm-axios-vulnerability branch from 8fc69a4 to a3be919 Compare November 19, 2025 00:00
@renovate renovate Bot changed the title fix(deps): update dependency axios to v0.30.2 [security] fix(deps): update dependency axios to v0.30.0 [security] Jan 16, 2026
@renovate renovate Bot force-pushed the renovate/npm-axios-vulnerability branch from a3be919 to 77a721f Compare January 16, 2026 17:58
@renovate renovate Bot force-pushed the renovate/npm-axios-vulnerability branch from 77a721f to 383723f Compare February 9, 2026 21:01
@renovate renovate Bot changed the title fix(deps): update dependency axios to v0.30.0 [security] fix(deps): update dependency axios to v1 [security] Feb 9, 2026
@renovate renovate Bot changed the title fix(deps): update dependency axios to v1 [security] fix(deps): update dependency axios to v0.30.0 [security] Feb 18, 2026
@renovate renovate Bot force-pushed the renovate/npm-axios-vulnerability branch from 383723f to e306dc7 Compare February 18, 2026 18:47
@renovate renovate Bot changed the title fix(deps): update dependency axios to v0.30.0 [security] fix(deps): update dependency axios to v0.30.0 [security] - autoclosed Mar 27, 2026
@renovate renovate Bot closed this Mar 27, 2026
@renovate renovate Bot changed the title fix(deps): update dependency axios to v0.30.0 [security] - autoclosed fix(deps): update dependency axios to v0.30.0 [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 a19b918 to 3958f82 Compare March 31, 2026 18:29
@renovate renovate Bot changed the title fix(deps): update dependency axios to v0.30.0 [security] fix(deps): update dependency axios to v0.30.3 [security] Mar 31, 2026
@renovate renovate Bot changed the title fix(deps): update dependency axios to v0.30.3 [security] fix(deps): 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 fix(deps): update dependency axios to v0.30.3 [security] - autoclosed fix(deps): 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 from 3958f82 to 28c85e9 Compare April 27, 2026 23:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants