-
Notifications
You must be signed in to change notification settings - Fork 4.1k
fix: remove deprecated request package to fix critical form-data vulnerability #9531
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
…erability The deprecated `request` package was listed as a direct dependency in both `core/package.json` and `extensions/vscode/package.json`, but was never actually imported or used anywhere in the codebase. This package brought in a transitive dependency on `form-data@2.3.3` which has a Critical Severity vulnerability (SNYK-JS-FORMDATA-10841150: Predictable Value Range from Previous Values). By removing the unused `request` package and its `@types/request` type definitions, we eliminate this critical security vulnerability. Generated with [Continue](https://continue.dev) Co-Authored-By: Continue <noreply@continue.dev>
Learn moreAll Green is an AI agent that automatically: ✅ Addresses code review comments ✅ Fixes failing CI checks ✅ Resolves merge conflicts |
3 similar comments
Learn moreAll Green is an AI agent that automatically: ✅ Addresses code review comments ✅ Fixes failing CI checks ✅ Resolves merge conflicts |
Learn moreAll Green is an AI agent that automatically: ✅ Addresses code review comments ✅ Fixes failing CI checks ✅ Resolves merge conflicts |
Learn moreAll Green is an AI agent that automatically: ✅ Addresses code review comments ✅ Fixes failing CI checks ✅ Resolves merge conflicts |
|
✅ Review Complete Code Review Summary |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No issues found across 4 files

Summary
This PR removes the deprecated
requestpackage from the codebase to fix a Critical Severity security vulnerability.Vulnerability Details
The
requestpackage (which is deprecated and no longer maintained) was listed as a direct dependency in bothcore/package.jsonandextensions/vscode/package.json. This package brought in a transitive dependency onform-data@2.3.3which has a Critical Severity vulnerability:Investigation Findings
After scanning the codebase, I found that the
requestpackage was:grepforimport.*from.*'request'andrequire('request')returned no results)package.jsonfiles as a direct dependencyChanges Made
requestfromcore/package.json@types/requestfromcore/package.json(devDependencies)requestfromextensions/vscode/package.json@types/requestfromextensions/vscode/package.json(devDependencies)package-lock.jsonfilesVerification
After the fix, running
npx snyk testconfirms that the criticalform-datavulnerability has been eliminated from both thecoreandextensions/vscodepackages.Continue Tasks
Powered by Continue
Summary by cubic
Removed the deprecated request dependency (and types) to eliminate a critical form-data vulnerability. It was unused and only inflated the dependency tree.
Dependencies
Bug Fixes
Written for commit acab841. Summary will update on new commits.