Skip to content

fix(deps): override basic-ftp to 6.2.4 or later - #49

Merged
ChiragAgg5k merged 1 commit into
mainfrom
fix/basic-ftp-6
Dec 1, 2026
Merged

ChiragAgg5k merged 1 commit into
mainfrom
fix/basic-ftp-6

Conversation

@ChiragAgg5k

Copy link
Copy Markdown
Member

What

Adds "overrides": { "basic-ftp": "^6.2.4" } to package.json and relocks with Bun 1.4.5, the version the Dockerfile uses. The only change in bun.lock is basic-ftp 5.3.1 → 6.2.6.

Why

The daily Trivy scan on appwrite/helm-chart reports basic-ftp 5.3.1 in the appwrite/browser image: code-scanning alert 1662, GHSA-c475-qrg2-pj4r / CVE-2026-102990. It's rated high: listing an untrusted FTP directory can take quadratic CPU time. The fix landed in 6.2.1. I checked the 0.3.18 image, and it still ships 5.3.1.

basic-ftp comes in through this chain:

lighthouse → puppeteer-core → @puppeteer/browsers → proxy-agent → pac-proxy-agent → get-uri 6.0.5

get-uri 6 still asks for basic-ftp ^5, but get-uri 8 already depends on basic-ftp ^6.2.4. basic-ftp 6's only breaking change is that it refuses separate transfer hosts (FTP bounce) by default, and nothing here uses FTP.

After merge, a new browser release and a chart bump close the alert.

🤖 Generated with Claude Code

basic-ftp 5.3.1 has GHSA-c475-qrg2-pj4r (CVE-2026-102990, high:
quadratic-time CPU denial of service in the Unix directory-listing
parser), fixed in 6.2.1. It comes in through lighthouse, puppeteer-core,
@puppeteer/browsers, proxy-agent, pac-proxy-agent and get-uri 6, which
still asks for basic-ftp ^5. get-uri 8 already uses basic-ftp ^6.2.4.
The only breaking change in basic-ftp 6 is that separate transfer hosts
(FTP bounce) are refused by default.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@appwrite

appwrite Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

Code review

Commit Status Tier Verdict Details
39a0b2e Reviewed Reviewed 🟢 S · Ready to merge ✅ Approved View review

The manifest now overrides transitive basic-ftp dependencies to ^6.2.4. The Bun lockfile records the override and resolves basic-ftp to 6.2.6 instead of 5.3.1.

Walkthrough (2)
File Change
package.json Adds a basic-ftp version override.
bun.lock Records the override and updates the resolved package to 6.2.6.

Reviewed 39a0b2e

Tip

Comment @appwrite review to re-run, or mention @appwrite with a question.

@appwrite appwrite Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟢 Tier S · Looks good to merge. Summary

@github-actions

github-actions Bot commented Dec 1, 2026

Copy link
Copy Markdown

Docker Image Stats

Metric Value
Image Size 871MB
Memory Usage 110MiB
Cold Start Time 1.02s
Screenshot Time 1.26s

Screenshot benchmark: Average of 3 runs on https://appwrite.io

@ChiragAgg5k
ChiragAgg5k merged commit 3519225 into main Dec 1, 2026
5 checks passed
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