chore(deps): update dependency basic-ftp to v5.3.0 [security]#26
Open
renovate[bot] wants to merge 1 commit intomainfrom
Open
chore(deps): update dependency basic-ftp to v5.3.0 [security]#26renovate[bot] wants to merge 1 commit intomainfrom
renovate[bot] wants to merge 1 commit intomainfrom
Conversation
ed65fa4 to
cd3d35a
Compare
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.
This PR contains the following updates:
5.2.2→5.3.0basic-ftp vulnerable to denial of service via unbounded memory consumption in Client.list()
CVE-2026-41324 / GHSA-rp42-5vxx-qpwr
More information
Details
Summary
basic-ftp@5.2.2is vulnerable to denial of service through unbounded memory growth while processing directory listings from a remote FTP server. A malicious or compromised server can send an extremely large or never-ending listing response toClient.list(), causing the client process to consume memory until it becomes unstable or crashes.Details
The issue is in the package's default directory listing flow.
Client.list()reachesdist/Client.js, where the full listing response is downloaded into aStringWriterbefore parsing:File:
dist/Client.js:516-527The vulnerable sink is
StringWriter, which grows an in-memoryBufferwith no limit:File:
dist/StringWriter.js:5-20The critical operation is:
There is no maximum size check, no truncation, and no streaming parser. Because the remote FTP server controls the listing response, it can force the client to keep allocating memory until the process is terminated.
How it happens:
client.list().basic-ftpbuffers the full response inStringWriter.Buffer.concat(...)calls.PoC
The following PoC exercises the vulnerable buffering primitive directly:
Observed output:
This demonstrates sustained memory growth in the same code path used to buffer directory listing data.
Supporting files saved alongside this report:
poc.jspoc_output.txtImpact
This is a denial-of-service vulnerability affecting applications that use
basic-ftpto list directories from remote FTP servers.Client.list()basic-ftp@5.2.2against untrusted FTP endpointsRecommended remediation:
Example defensive check:
Severity
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
Release Notes
patrickjuchli/basic-ftp (basic-ftp)
v5.3.0Compare Source
Configuration
📅 Schedule: (UTC)
🚦 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 this update again.
This PR was generated by Mend Renovate. View the repository job log.