fix: pin axios to 1.14.0 — supply chain attack mitigation#879
Open
paulonasc wants to merge 2 commits intoapify:masterfrom
Open
fix: pin axios to 1.14.0 — supply chain attack mitigation#879paulonasc wants to merge 2 commits intoapify:masterfrom
paulonasc wants to merge 2 commits intoapify:masterfrom
Conversation
axios 1.14.1 and 0.30.4 were compromised with a malicious dependency (plain-crypto-js@4.2.1) that deploys a RAT via postinstall hook. This pins the direct dependency to 1.14.0 to prevent npm from resolving to the compromised versions. Advisory: https://www.aikido.dev/blog/axios-npm-compromised-maintainer-hijacked-rat
Regenerated lockfile so npm ci installs the pinned safe version deterministically. Without this, the lockfile still resolved to a different axios version, making the package.json pin ineffective in CI pipelines.
Member
I don't think this is necessary, the vulnerable version is no longer available on NPM. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
axiosdirect dependency from^1.6.7to exact1.14.0Context
axios@1.14.1andaxios@0.30.4were compromised with a malicious dependency (plain-crypto-js@4.2.1) that deploys a Remote Access Trojan (RAT) via a postinstall hook. The RAT targets macOS, Linux, and Windows and phones home to a C2 server.Anyone running
npm installwithapify-clientcurrently resolvesaxios@^1.6.7to the compromised1.14.1.Advisory: https://www.aikido.dev/blog/axios-npm-compromised-maintainer-hijacked-rat
Changes
package.json: pin axios to exact1.14.0