Repository navigation
chore(deps): update dependency basic-ftp to v6 [security] - #293
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
renovate
Bot
force-pushed
the
renovate/npm-basic-ftp-vulnerability
branch
from
October 26, 2026 15:08
13a380a to
3767827
Compare
renovate
Bot
force-pushed
the
renovate/npm-basic-ftp-vulnerability
branch
from
October 27, 2026 11:44
3767827 to
6a7fe9e
Compare
renovate
Bot
force-pushed
the
renovate/npm-basic-ftp-vulnerability
branch
from
October 27, 2026 11:49
6a7fe9e to
d6cc658
Compare
renovate
Bot
force-pushed
the
renovate/npm-basic-ftp-vulnerability
branch
from
October 28, 2026 12:02
d6cc658 to
004520d
Compare
renovate
Bot
force-pushed
the
renovate/npm-basic-ftp-vulnerability
branch
from
October 29, 2026 09:04
004520d to
24513ed
Compare
GigaHierz
approved these changes
Oct 30, 2026
GigaHierz
left a comment
Collaborator
There was a problem hiding this comment.
Reviewed: basic-ftp is a transitive dependency only (via get-uri); no first-party usage. Security bump, CI green.
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
renovate
Bot
force-pushed
the
renovate/npm-basic-ftp-vulnerability
branch
from
October 30, 2026 10:03
ff61e95 to
0bd0fdc
Compare
This branch was successfully deployed
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.0→^6.0.0basic-ftp: Quadratic-time CPU denial of service in Client.list() Unix directory-listing parser (RE_LINE backtracking)
CVE-2026-102990 / GHSA-c475-qrg2-pj4r
More information
Details
Summary
Client.list()parses the server's directory listing with the Unix-style parser inparseListUnix.js. ItsRE_LINEregex has two adjacent(\S+(?:\s\S+)*)groups (owner name, then group name) followed by a required numeric size group. When a line starts with a valid listing prefix but the tokens after it never satisfy the size and date fields, the engine backtracks over every way of splitting those tokens between the two groups before it can fail, so matching one line costs roughly O(n²) in the line's length.The server whose directory a client lists controls that listing, so it can return one line that pins the Node.js event loop for as long as it likes.
parseList()picks the parser from the last non-blank line only, then runs it on every line, so a normal line placed last selects the Unix parser and a crafted line earlier hits the quadratic match.Proof of concept
npm i basic-ftp && node repro.js:Prints
list() blocked 39.75s; heartbeats fired: 0, versus ~0.06s for a normal listing. The event loop is frozen the whole time. Cost is quadratic: 32 KB ≈ 2.4s, 64 KB ≈ 9.6s, 128 KB ≈ 39s.maxListingBytesdefaults to 40 MB, so a single line can be far larger, and ~1 MB already blocks for tens of minutes.Impact
One directory listing freezes the whole process, under default options, through the primary API. This is the same "malicious FTP server causes client-side denial of service" shape as GHSA-rp42-5vxx-qpwr, also in
Client.list()and rated high. The byte cap added there bounds memory, not the parser's CPU cost.Severity
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:NReferences
This data is provided by the GitHub Advisory Database (CC-BY 4.0).
basic-ftp: Quadratic-time CPU denial of service in Client.list() Unix directory-listing parser (RE_LINE backtracking)
CVE-2026-102990 / GHSA-c475-qrg2-pj4r
More information
Details
Summary
Client.list()parses the server's directory listing with the Unix-style parser inparseListUnix.js. ItsRE_LINEregex has two adjacent(\S+(?:\s\S+)*)groups (owner name, then group name) followed by a required numeric size group. When a line starts with a valid listing prefix but the tokens after it never satisfy the size and date fields, the engine backtracks over every way of splitting those tokens between the two groups before it can fail, so matching one line costs roughly O(n²) in the line's length.The server whose directory a client lists controls that listing, so it can return one line that pins the Node.js event loop for as long as it likes.
parseList()picks the parser from the last non-blank line only, then runs it on every line, so a normal line placed last selects the Unix parser and a crafted line earlier hits the quadratic match.Proof of concept
npm i basic-ftp && node repro.js:Prints
list() blocked 39.75s; heartbeats fired: 0, versus ~0.06s for a normal listing. The event loop is frozen the whole time. Cost is quadratic: 32 KB ≈ 2.4s, 64 KB ≈ 9.6s, 128 KB ≈ 39s.maxListingBytesdefaults to 40 MB, so a single line can be far larger, and ~1 MB already blocks for tens of minutes.Impact
One directory listing freezes the whole process, under default options, through the primary API. This is the same "malicious FTP server causes client-side denial of service" shape as GHSA-rp42-5vxx-qpwr, also in
Client.list()and rated high. The byte cap added there bounds memory, not the parser's CPU cost.Severity
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:NReferences
This data is provided by OSV and the GitHub Advisory Database (CC-BY 4.0).
Release Notes
patrickjuchli/basic-ftp (basic-ftp)
v6.2.1Compare Source
v6.2.0Compare Source
v6.1.0Compare Source
v6.0.2Compare Source
v6.0.1Compare Source
v6.0.0Compare Source
allowSeparateTransferHost: truewhen instantiating aClient. (Thanks, @Jvr2022)Configuration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR is behind base branch, 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.