-
-
Notifications
You must be signed in to change notification settings - Fork 9.9k
Zed downloads NodeJS binary and npm packages from Internet without user’s consent #12589
Copy link
Copy link
Open
Copy link
Labels
area:networkNetwork connectivity issues, protocols and services supportNetwork connectivity issues, protocols and services supportarea:security & privacyData privacy issue, security vulnerabilities, etcData privacy issue, security vulnerabilities, etcmeta:enterpriseFeedback for Enterprise related featuresFeedback for Enterprise related featuresreach:many usersBugs that happen for at least a third of the users across all platforms and kinds of usageBugs that happen for at least a third of the users across all platforms and kinds of usageseverity:S1Security holes w/o exploit, crash, install/update, sign-in, badly broken big featuresSecurity holes w/o exploit, crash, install/update, sign-in, badly broken big featuresstate:reproducibleVerified steps to reproduce included or someone on the team managed to reproduceVerified steps to reproduce included or someone on the team managed to reproduce
Description
Metadata
Metadata
Assignees
Labels
area:networkNetwork connectivity issues, protocols and services supportNetwork connectivity issues, protocols and services supportarea:security & privacyData privacy issue, security vulnerabilities, etcData privacy issue, security vulnerabilities, etcmeta:enterpriseFeedback for Enterprise related featuresFeedback for Enterprise related featuresreach:many usersBugs that happen for at least a third of the users across all platforms and kinds of usageBugs that happen for at least a third of the users across all platforms and kinds of usageseverity:S1Security holes w/o exploit, crash, install/update, sign-in, badly broken big featuresSecurity holes w/o exploit, crash, install/update, sign-in, badly broken big featuresstate:reproducibleVerified steps to reproduce included or someone on the team managed to reproduceVerified steps to reproduce included or someone on the team managed to reproduce
Type
Projects
StatusShow more project fields
In progress
Check for existing issues
Describe the bug / provide steps to reproduce it
I noticed that Zed automatically downloads the NodeJS binary from https://nodejs.org without asking or even informing the user about it. Right after starting it and opening a file, without doing anything else. And there’s no option to disable it.
This is completely unacceptable!
Not just for security reasons but also from a usability point of view. I’m currently connected via metered LTE, and Zed has just eaten up 14 MiB of my plan. Moreover, I already have node installed and on PATH. Also, the downloaded binary is somehow corrupted and it wouldn’t work on my system anyway because it’s built against glibc (that’s how I noticed it in the first place).
And to make matters worse, if it did work, it would start installing arbitrary packages from npmjs.com via npm and running their scripts. This represents a huge attack vector.
This approach is completely unacceptable for anyone who’s concerned about cybersecurity and for virtually all companies, at least in the EU, because of cybersecurity laws, related certifications and audits.
EDIT: Now I found that it downloads (here) even some proprietary binary from https://supermaven.com, i.e. unaudited and unauditable code, without any verification (except TLS)! At least this is not downloaded by default… I hope…
EDIT2: Zed also automatically downloads and executes prebuilt language servers for C#, Clojure, Deno, Elixir, Gleam, GLSL, Lua, Terraform, Toml and Zig. It automatically resolves the latest version available on GitHub and downloads it, again, without any verification.
Environment
N/A
If applicable, add mockups / screenshots to help explain present your vision of the feature
No response
If applicable, attach your
~/Library/Logs/Zed/Zed.logfile to this issue.No response
Somehow related issues