Skip to content

fix(security): bump basic-ftp to close 4 Dependabot alerts (1 critical) - #229

Merged
github-actions[bot] merged 1 commit into
mainfrom
fix/basic-ftp-path-traversal
Aug 28, 2026
Merged

fix(security): bump basic-ftp to close 4 Dependabot alerts (1 critical)#229
github-actions[bot] merged 1 commit into
mainfrom
fix/basic-ftp-path-traversal

Conversation

@catomean

Copy link
Copy Markdown
Collaborator

Summary

basic-ftp 5.1.0 → 5.3.1, closing 4 open Dependabot alerts including the one critical alert on this repo:

basic-ftp is a deep transitive dependency (puppeteer → @puppeteer/browsers → proxy-agent → pac-proxy-agent → get-uri → basic-ftp), never imported directly — it only matters if get-uri resolves a proxy auto-config file over ftp://, which this backend doesn't configure. Low real-world exposure, but free to fix: get-uri's own package.json already permits ^5.0.2, so npm update basic-ftp resolves to 5.3.1 within the range the parent already allows. No new direct dependency, no package.json change, no code touched.

Verified

get-uri, proxy-agent, and puppeteer all require() cleanly after the bump.

Not fixed here (flagged, not forced)

The remaining ~16 alerts (extract-zip, jws, lodash, minimatch, path-to-regexp, @trpc/server, picomatch, uuid, plus three frontend @opentelemetry packages) are blocked from npm audit fix by a pre-existing, unrelated peer-dependency conflict: this repo runs zod v4, but openai@5.10.2 peer-requires zod v3. Forcing through with --force risks silently breaking whatever depends on openai's zod-validated schemas — not safe to do without review, so left as a separate item.

Co-Authored-By: Claude Opus 5 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_01Y9rKLxddothnXEtY6KDziN

…itical

basic-ftp 5.1.0 → 5.3.1, closing:
  #44 critical — path traversal in downloadToDir()
  #96 high — unbounded multiline control response buffering DoS
  #89 high — incomplete CRLF injection protection (arbitrary FTP command exec)
  #91 high — unbounded memory consumption in Client.list()

basic-ftp is a deep transitive dependency (puppeteer -> @puppeteer/browsers
-> proxy-agent -> pac-proxy-agent -> get-uri -> basic-ftp), never imported
directly in this codebase — it's used only if get-uri resolves a proxy
auto-config file over an ftp:// URL, which this backend does not configure.
Low real-world exposure, but the fix costs nothing: get-uri's own
package.json already accepts ^5.0.2, so `npm update basic-ftp` resolves to
5.3.1 (the latest 5.x) within the range the parent package already permits —
no new direct dependency, no package.json change, no code touched.

Verified: get-uri/proxy-agent/puppeteer all require() cleanly after the bump.

NOT fixed here: `npm audit fix` for the remaining ~16 open alerts
(extract-zip, jws, lodash, minimatch, path-to-regexp, @trpc/server,
picomatch, uuid, and three frontend/@opentelemetry packages) is blocked by
a pre-existing, unrelated peer-dependency conflict — this repo runs zod v4
but openai@5.10.2 peer-requires zod v3, so `npm audit fix` refuses to
resolve anything without --force. Forcing through that risks silently
breaking whatever depends on openai's zod-validated schemas, and isn't safe
to do blind. Left as a separate, flagged item rather than forced through.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Y9rKLxddothnXEtY6KDziN
@github-actions
github-actions Bot merged commit 1a6f243 into main Aug 28, 2026
1 check passed
@github-actions
github-actions Bot deleted the fix/basic-ftp-path-traversal branch August 28, 2026 18:37
github-actions Bot pushed a commit that referenced this pull request Sep 2, 2026
Three separate sessions have now opened this repo, found the working copy
silently wrong, and spent part of the run repairing it before any real work
could start:

  2026-08-29  local main held a commit origin never got, so `git pull --ff-only`
              failed for every run entering the repo.
  2026-08-31  local main was 2 commits behind origin (#232, #233).
  2026-09-02  local main was 3 commits behind (#234-#236), two squash-merged
              worktrees were still checked out, and frontend/node_modules
              predated the prettier devDependency from #233 — so the first gate
              of `npm run verify` died on "prettier: not found".

A bare `git status` reports "clean" in all three cases, which is why each run
rediscovers it the hard way instead of inheriting the last one's fix. Per the
never-twice rule, the third instance gets the automation, not a fourth repair.

`npm run preflight` checks the three invisible ones — divergence from origin
(after an explicit fetch), merged worktree branches still checked out (compared
by patch id via `git cherry`, since `git branch --merged` cannot see a squash),
and node_modules older than its lockfile. Read-only by default, exit 1 on drift;
`npm run preflight -- --fix` repairs what it finds and refuses to touch a
worktree with uncommitted changes.

Both paths exercised on this branch: the read-only run caught backend/
node_modules as stale against the #229/#230 security bumps, and --fix
reinstalled it to clean.


Claude-Session: https://claude.ai/code/session_01PtVWdxno5WtK9zYLkrBz3P

Co-authored-by: Mao Nakamoto <41178744+maonakamoto@users.noreply.github.com>
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant