fix: add npm override for axios (CVE-2025-58754)#3097
Conversation
Axios versions prior to 1.9.1 are vulnerable to Denial of Service via massive data schemas (CVE-2025-58754). The vulnerable version is pulled as a transitive dependency from @edx/frontend-platform. Adding an npm override forces resolution to a patched version without changing the frontend-platform version, avoiding breaking changes.
|
Thanks for the pull request, @jignaciopm! This repository is currently maintained by Once you've gone through the following steps feel free to tag them in a comment and let them know that your changes are ready for engineering review. 🔘 Get product approvalIf you haven't already, check this list to see if your contribution needs to go through the product review process.
🔘 Provide contextTo help your reviewers and other members of the community understand the purpose and larger context of your changes, feel free to add as much of the following information to the PR description as you can:
🔘 Get a green buildIf one or more checks are failing, continue working on your changes until this is no longer the case and your build turns green. DetailsWhere can I find more information?If you'd like to get more details on all aspects of the review process for open source pull requests (OSPRs), check out the following resources: When can I expect my changes to be merged?Our goal is to get community contributions seen and reviewed as efficiently as possible. However, the amount of time that it takes to review and merge a PR can vary significantly based on factors such as:
💡 As a result it may take up to several weeks or months to complete a review and merge your PR. |
Summary
Add npm
overridesfor axios to address CVE-2025-58754 (Denial of Service via massive data schemas in Node.js).CVSS: 7.5 (High)
Why npm overrides instead of bumping frontend-platform?
The vulnerable axios version (1.9.0) is a transitive dependency of
@edx/frontend-platform. The fix was shipped infrontend-platformv8.5.5+ (axios ≥1.13.5), but this MFE's release branch pinsfrontend-platform ^8.3.1.Bumping
frontend-platformfrom 8.3.x to 8.5.x on a frozen release branch carries risk of breaking changes that were not tested against this release. The npm overrides mechanism is the standard npm approach to force a transitive dependency to a safe version without changing the parent package version.Note:
release/verawoodalready ships withfrontend-platform ^8.7.0(axios 1.15.0) and is not affected by this vulnerability.frontend-platform → axios version timeline
Change
This forces npm to resolve axios to ≥1.9.1 across the entire dependency tree, including the copy bundled by
@edx/frontend-platform.Test plan
References