Fix axios version in package.json#1
Conversation
Due to the latest vulnerability attack on Axios, we have decided to pin the current axios version on all projects to avoid potential issues in the future.
📝 WalkthroughWalkthroughThe Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Poem
🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Inline comments:
In `@package.json`:
- Line 80: The package.json pins "axios" to the vulnerable 0.16.2 release;
update the "axios" dependency value to a secure version (preferably "1.14.0", or
at minimum "0.30.3") in package.json, then regenerate the lockfile (npm install
/ yarn install) and run tests/CI to ensure nothing breaks; ensure any code using
axios is compatible with the new major version (check for breaking changes if
moving to 1.x) and update import/usage sites if necessary.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
| "dependencies": { | ||
| "@babel/core": "^7.0.0-beta.32", | ||
| "axios": "^0.16.2", | ||
| "axios": "0.16.2", |
There was a problem hiding this comment.
🧩 Analysis chain
🌐 Web query:
What is the latest Axios release on npm, and what are the minimum fixed Axios versions for all active GitHub/npm security advisories?
💡 Result:
The latest Axios release on npm is 1.14.0, published around March 27, 2026. Note that versions 1.14.1 and 0.30.4 were maliciously published but have been removed by npm. Active GitHub security advisories (as of 2026-04-01) and their minimum fixed versions: - GHSA-43fc-jf86-j433 (DoS via proto in mergeConfig, CVE-2026-25639): Fixed in 1.13.5 and 0.30.3 - GHSA-4hjh-wcwx-xvwj (DoS via data: URL decode, CVE-2025-58754): Fixed version not explicitly stated in snippets, but post-Sep 2025 releases like 1.13.x+ are safe. - GHSA-rm8p-cx58-hcvx (Transitive form-data vuln, CVE-2025-7783): Affected 1.10.0, fixed in 1.11.0 - GHSA-jr5f-v2jv-69x6 (SSRF/Credential Leakage): Fixed version not explicitly stated, but post-Mar 2025 releases safe. For all active advisories, upgrade to at least 1.14.0 (latest) or 0.30.3 for 0.x branch users. Both 0.x and 1.x are supported per SECURITY.md.
Citations:
- 1: https://www.npmjs.com/package/axios
- 2: https://www.npmjs.com/package/axios?activeTab=versions
- 3: https://github.com/axios/axios/security/advisories
- 4: https://github.com/axios/axios/releases/tag/v1.14.0
- 5: https://github.com/axios/axios/security
- 6: GHSA-rm8p-cx58-hcvx
- 7: https://github.com/advisories/GHSA-43fc-jf86-j433/dependabot
- 8: https://cveinfo.com/detail.php?id=CVE-2026-25639
Pinned version at Line 80 keeps Axios on an outdated, critically vulnerable release line.
This change locks axios to 0.16.2, which is extremely old and contains multiple unpatched CVEs including:
- GHSA-43fc-jf86-j433 (DoS via proto in mergeConfig, CVE-2026-25639)
- GHSA-4hjh-wcwx-xvwj (DoS via data: URL decode, CVE-2025-58754)
- GHSA-rm8p-cx58-hcvx (Transitive form-data vulnerability, CVE-2025-7783)
- GHSA-jr5f-v2jv-69x6 (SSRF/Credential Leakage)
This does not satisfy the PR's security objective. Upgrade to at least 0.30.3 for the 0.x branch, or preferably to 1.14.0 (latest).
Suggested change
- "axios": "0.16.2",
+ "axios": "1.14.0",🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.
In `@package.json` at line 80, The package.json pins "axios" to the vulnerable
0.16.2 release; update the "axios" dependency value to a secure version
(preferably "1.14.0", or at minimum "0.30.3") in package.json, then regenerate
the lockfile (npm install / yarn install) and run tests/CI to ensure nothing
breaks; ensure any code using axios is compatible with the new major version
(check for breaking changes if moving to 1.x) and update import/usage sites if
necessary.
tkidd77
left a comment
There was a problem hiding this comment.
Instead of a static pin, trail latest by 7 days as this release is very old
Due to the latest vulnerability attack on Axios, we have decided to pin the current axios version on all projects to avoid potential issues in the future.
Summary by CodeRabbit