chore(deps): Force basic-ftp >=5.3.0 to fix GHSA-rp42-5vxx-qpwr#6024
Open
chore(deps): Force basic-ftp >=5.3.0 to fix GHSA-rp42-5vxx-qpwr#6024
Conversation
Adds a yarn resolution to pull basic-ftp@5.3.0 (patched) in place of 5.2.2, which is vulnerable to a high-severity denial-of-service via unbounded memory growth in Client.list(). The package is a transitive dev dependency via @puppeteer/browsers and @wdio/utils. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Contributor
Semver Impact of This PR⚪ None (no version bump detected) 📋 Changelog PreviewThis is how your changes will appear in the changelog.
🤖 This preview updates automatically when you update the PR. |
Contributor
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.
📢 Type of change
📜 Description
Adds a yarn resolution forcing
basic-ftpto^5.3.0in place of the vulnerable5.2.2currently pulled in transitively. Uses the sameresolutionspattern already in use foraxios,tar-fs,lodash, and others.Dependency chain:
@puppeteer/browsers/@wdio/utils→proxy-agent→pac-proxy-agent→get-uri→basic-ftpBoth consumers are dev-only (e2e tooling).
get-urirequiresbasic-ftp: ^5.0.2, so5.3.0satisfies the existing constraint without API changes.💡 Motivation and Context
GHSA-rp42-5vxx-qpwr — high-severity (CVSS 7.5) denial-of-service in
basic-ftp <= 5.2.2via unbounded memory growth inClient.list(). TheStringWriterused to buffer the directory listing grows without limit, so a malicious or compromised FTP server can exhaust memory and crash the process.Patched in
basic-ftp@5.3.0.Closes the Dependabot alert: https://github.com/getsentry/sentry-react-native/security/dependabot/500
💚 How did you test it?
yarn installsucceeds;yarn.locknow resolvesbasic-ftp@5.3.0(old5.2.2artifact removed).basic-ftp— it is dev-only via puppeteer/webdriverio.📝 Checklist
sendDefaultPIIis enabled🔮 Next steps
🤖 Generated with Claude Code